- Timestamp:
- Mar 17, 2011 11:25:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/qt_dev.m
r3395 r3459 77 77 pj_pool_t *pool; /**< Memory pool. */ 78 78 79 pj_timestamp cap_frame_ts; /**< Captured frame tstamp */ 80 unsigned cap_ts_inc; /**< Increment */ 81 79 82 pjmedia_vid_cb vid_cb; /**< Stream callback. */ 80 83 void *user_data; /**< Application data. */ … … 322 325 frame.size = size; 323 326 frame.bit_info = 0; 327 frame.timestamp.u64 = stream->cap_frame_ts.u64; 328 324 329 if (stream->vid_cb.capture_cb) 325 330 (*stream->vid_cb.capture_cb)(&stream->base, stream->user_data, 326 331 &frame); 332 333 stream->cap_frame_ts.u64 += stream->cap_ts_inc; 327 334 } 328 335 @end … … 380 387 /* Create capture stream here */ 381 388 if (param->dir & PJMEDIA_DIR_CAPTURE) { 382 pjmedia_video_format_detail *vfd;389 const pjmedia_video_format_detail *vfd; 383 390 qt_fmt_info *qfi = get_qt_format_info(param->fmt.id); 384 391 … … 438 445 439 446 pj_assert(vfd->fps.num); 447 strm->cap_ts_inc = PJMEDIA_SPF2(&strm->param.clock_rate, &vfd->fps, 1); 448 440 449 [strm->video_output setMinimumVideoFrameInterval: 441 450 (1.0f * vfd->fps.denum / (double)vfd->fps.num)];
Note: See TracChangeset
for help on using the changeset viewer.