- 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/ios_dev.m
r3399 r3459 93 93 UIImageView *imgView; 94 94 void *buf; 95 96 pj_timestamp frame_ts; 97 unsigned ts_inc; 95 98 }; 96 99 … … 356 359 frame.size = stream->frame_size; 357 360 frame.bit_info = 0; 361 frame.timestamp.u64 = stream->frame_ts.u64; 362 358 363 if (stream->vid_cb.capture_cb) 359 364 (*stream->vid_cb.capture_cb)(&stream->base, stream->user_data, &frame); 360 365 366 stream->frame_ts.u64 += stream->ts_inc; 367 361 368 /* Unlock the pixel buffer */ 362 369 CVPixelBufferUnlockBaseAddress(imageBuffer,0); … … 386 393 pj_pool_t *pool; 387 394 struct ios_stream *strm; 388 pjmedia_video_format_detail *vfd;395 const pjmedia_video_format_detail *vfd; 389 396 const pjmedia_video_format_info *vfi; 390 397 pj_status_t status = PJ_SUCCESS; … … 419 426 strm->bytes_per_row = strm->size.w * strm->bpp / 8; 420 427 strm->frame_size = strm->bytes_per_row * strm->size.h; 428 strm->ts_inc = PJMEDIA_SPF2(param->clock_rate, &vfd->fps, 1); 421 429 422 430 /* Create capture stream here */
Note: See TracChangeset
for help on using the changeset viewer.