- Timestamp:
- Feb 24, 2011 7:47:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/videodev.c
r3395 r3420 425 425 unsigned i; 426 426 427 /* Allow shutdown() to be called multiple times as long as there is matching428 * number of init().427 /* Allow shutdown() to be called multiple times as long as there is 428 * matching number of init(). 429 429 */ 430 430 if (vid_subsys.init_count == 0) { … … 547 547 548 548 for (drv_idx=0; drv_idx<vid_subsys.drv_cnt; ++drv_idx) { 549 if (!pj_ansi_stricmp(drv_name, vid_subsys.drv[drv_idx].name)) { 549 if (!pj_ansi_stricmp(drv_name, vid_subsys.drv[drv_idx].name)) 550 { 550 551 f = vid_subsys.drv[drv_idx].f; 551 552 break; … … 556 557 return PJ_ENOTFOUND; 557 558 558 for (dev_idx=0; dev_idx<vid_subsys.drv[drv_idx].dev_cnt; ++dev_idx) { 559 for (dev_idx=0; dev_idx<vid_subsys.drv[drv_idx].dev_cnt; ++dev_idx) 560 { 559 561 pjmedia_vid_dev_info info; 560 562 pj_status_t status; … … 607 609 608 610 /* API: Open video stream object using the specified parameters. */ 609 PJ_DEF(pj_status_t) pjmedia_vid_stream_create(const pjmedia_vid_param *prm, 610 const pjmedia_vid_cb *cb, 611 void *user_data, 612 pjmedia_vid_stream **p_vid_strm) 611 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_create( 612 const pjmedia_vid_param *prm, 613 const pjmedia_vid_cb *cb, 614 void *user_data, 615 pjmedia_vid_dev_stream **p_vid_strm) 613 616 { 614 617 pjmedia_vid_dev_factory *cap_f=NULL, *rend_f=NULL, *f=NULL; … … 675 678 676 679 /* API: Get the running parameters for the specified video stream. */ 677 PJ_DEF(pj_status_t) pjmedia_vid_stream_get_param(pjmedia_vid_stream *strm, 678 pjmedia_vid_param *param) 680 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_get_param( 681 pjmedia_vid_dev_stream *strm, 682 pjmedia_vid_param *param) 679 683 { 680 684 pj_status_t status; … … 695 699 696 700 /* API: Get the value of a specific capability of the video stream. */ 697 PJ_DEF(pj_status_t) pjmedia_vid_stream_get_cap(pjmedia_vid_stream *strm, 698 pjmedia_vid_dev_cap cap, 699 void *value) 701 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_get_cap( 702 pjmedia_vid_dev_stream *strm, 703 pjmedia_vid_dev_cap cap, 704 void *value) 700 705 { 701 706 return strm->op->get_cap(strm, cap, value); … … 703 708 704 709 /* API: Set the value of a specific capability of the video stream. */ 705 PJ_DEF(pj_status_t) pjmedia_vid_stream_set_cap(pjmedia_vid_stream *strm, 706 pjmedia_vid_dev_cap cap, 707 const void *value) 710 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_set_cap( 711 pjmedia_vid_dev_stream *strm, 712 pjmedia_vid_dev_cap cap, 713 const void *value) 708 714 { 709 715 return strm->op->set_cap(strm, cap, value); … … 711 717 712 718 /* API: Start the stream. */ 713 PJ_DEF(pj_status_t) pjmedia_vid_ stream_start(pjmedia_vid_stream *strm)719 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_start(pjmedia_vid_dev_stream *strm) 714 720 { 715 721 return strm->op->start(strm); 716 722 } 717 723 718 PJ_DEF(pj_status_t) pjmedia_vid_stream_get_frame(pjmedia_vid_stream *strm, 719 pjmedia_frame *frame) 724 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_get_frame( 725 pjmedia_vid_dev_stream *strm, 726 pjmedia_frame *frame) 720 727 { 721 728 pj_assert(strm->op->get_frame); … … 723 730 } 724 731 725 PJ_DEF(pj_status_t) pjmedia_vid_stream_put_frame(pjmedia_vid_stream *strm, 726 const pjmedia_frame *frame) 732 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_put_frame( 733 pjmedia_vid_dev_stream *strm, 734 const pjmedia_frame *frame) 727 735 { 728 736 pj_assert(strm->op->put_frame); … … 731 739 732 740 /* API: Stop the stream. */ 733 PJ_DEF(pj_status_t) pjmedia_vid_ stream_stop(pjmedia_vid_stream *strm)741 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_stop(pjmedia_vid_dev_stream *strm) 734 742 { 735 743 return strm->op->stop(strm); … … 737 745 738 746 /* API: Destroy the stream. */ 739 PJ_DEF(pj_status_t) pjmedia_vid_stream_destroy(pjmedia_vid_stream *strm) 747 PJ_DEF(pj_status_t) pjmedia_vid_dev_stream_destroy( 748 pjmedia_vid_dev_stream *strm) 740 749 { 741 750 return strm->op->destroy(strm);
Note: See TracChangeset
for help on using the changeset viewer.