- Timestamp:
- Mar 15, 2011 11:22:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/v4l2_dev.c
r3392 r3447 91 91 typedef struct vid4lin_stream 92 92 { 93 pjmedia_vid_ streambase; /**< Base stream */93 pjmedia_vid_dev_stream base; /**< Base stream */ 94 94 pjmedia_vid_param param; /**< Settings */ 95 95 pj_pool_t *pool; /**< Memory pool. */ … … 132 132 const pjmedia_vid_cb *cb, 133 133 void *user_data, 134 pjmedia_vid_ stream **p_strm);135 136 static pj_status_t vid4lin_stream_get_param(pjmedia_vid_ stream *strm,134 pjmedia_vid_dev_stream **p); 135 136 static pj_status_t vid4lin_stream_get_param(pjmedia_vid_dev_stream *strm, 137 137 pjmedia_vid_param *param); 138 static pj_status_t vid4lin_stream_get_cap(pjmedia_vid_ stream *strm,138 static pj_status_t vid4lin_stream_get_cap(pjmedia_vid_dev_stream *strm, 139 139 pjmedia_vid_dev_cap cap, 140 140 void *value); 141 static pj_status_t vid4lin_stream_set_cap(pjmedia_vid_ stream *strm,141 static pj_status_t vid4lin_stream_set_cap(pjmedia_vid_dev_stream *strm, 142 142 pjmedia_vid_dev_cap cap, 143 143 const void *value); 144 static pj_status_t vid4lin_stream_get_frame(pjmedia_vid_ stream *strm,144 static pj_status_t vid4lin_stream_get_frame(pjmedia_vid_dev_stream *strm, 145 145 pjmedia_frame *frame); 146 static pj_status_t vid4lin_stream_start(pjmedia_vid_ stream *strm);147 static pj_status_t vid4lin_stream_stop(pjmedia_vid_ stream *strm);148 static pj_status_t vid4lin_stream_destroy(pjmedia_vid_ stream *strm);146 static pj_status_t vid4lin_stream_start(pjmedia_vid_dev_stream *strm); 147 static pj_status_t vid4lin_stream_stop(pjmedia_vid_dev_stream *strm); 148 static pj_status_t vid4lin_stream_destroy(pjmedia_vid_dev_stream *strm); 149 149 150 150 /* Operations */ … … 159 159 }; 160 160 161 static pjmedia_vid_ stream_op stream_op =161 static pjmedia_vid_dev_stream_op stream_op = 162 162 { 163 163 &vid4lin_stream_get_param, … … 390 390 param->flags = PJMEDIA_VID_DEV_CAP_FORMAT; 391 391 param->clock_rate = DEFAULT_CLOCK_RATE; 392 param->frame_rate.num = DEFAULT_FPS;393 param->frame_rate.denum = 1;394 392 pjmedia_format_copy(¶m->fmt, &cf->dev_info[index].info.fmt[0]); 395 393 … … 516 514 /* API: create stream */ 517 515 static pj_status_t vid4lin_factory_create_stream(pjmedia_vid_dev_factory *f, 518 519 520 521 pjmedia_vid_stream **p_vid_strm)516 const pjmedia_vid_param *param, 517 const pjmedia_vid_cb *cb, 518 void *user_data, 519 pjmedia_vid_dev_stream **p_vid_strm) 522 520 { 523 521 vid4lin_factory *cf = (vid4lin_factory*)f; … … 596 594 597 595 /* API: Get stream info. */ 598 static pj_status_t vid4lin_stream_get_param(pjmedia_vid_ stream *s,599 pjmedia_vid_param *pi)596 static pj_status_t vid4lin_stream_get_param(pjmedia_vid_dev_stream *s, 597 pjmedia_vid_param *pi) 600 598 { 601 599 vid4lin_stream *strm = (vid4lin_stream*)s; … … 609 607 610 608 /* API: get capability */ 611 static pj_status_t vid4lin_stream_get_cap(pjmedia_vid_ stream *s,612 613 609 static pj_status_t vid4lin_stream_get_cap(pjmedia_vid_dev_stream *s, 610 pjmedia_vid_dev_cap cap, 611 void *pval) 614 612 { 615 613 vid4lin_stream *strm = (vid4lin_stream*)s; … … 629 627 630 628 /* API: set capability */ 631 static pj_status_t vid4lin_stream_set_cap(pjmedia_vid_ stream *s,632 633 629 static pj_status_t vid4lin_stream_set_cap(pjmedia_vid_dev_stream *s, 630 pjmedia_vid_dev_cap cap, 631 const void *pval) 634 632 { 635 633 vid4lin_stream *strm = (vid4lin_stream*)s; … … 693 691 694 692 /* API: Get frame from stream */ 695 static pj_status_t vid4lin_stream_get_frame(pjmedia_vid_ stream *strm,693 static pj_status_t vid4lin_stream_get_frame(pjmedia_vid_dev_stream *strm, 696 694 pjmedia_frame *frame) 697 695 { … … 707 705 708 706 /* API: Start stream. */ 709 static pj_status_t vid4lin_stream_start(pjmedia_vid_ stream *strm)707 static pj_status_t vid4lin_stream_start(pjmedia_vid_dev_stream *strm) 710 708 { 711 709 vid4lin_stream *stream = (vid4lin_stream*)strm; … … 755 753 756 754 /* API: Stop stream. */ 757 static pj_status_t vid4lin_stream_stop(pjmedia_vid_ stream *strm)755 static pj_status_t vid4lin_stream_stop(pjmedia_vid_dev_stream *strm) 758 756 { 759 757 vid4lin_stream *stream = (vid4lin_stream*)strm; … … 776 774 777 775 /* API: Destroy stream. */ 778 static pj_status_t vid4lin_stream_destroy(pjmedia_vid_ stream *strm)776 static pj_status_t vid4lin_stream_destroy(pjmedia_vid_dev_stream *strm) 779 777 { 780 778 vid4lin_stream *stream = (vid4lin_stream*)strm;
Note: See TracChangeset
for help on using the changeset viewer.