ts,ps,mpeg2 decoder and analysis


  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  53 随笔 :: 0 文章 :: 168 评论 :: 0 Trackbacks


decoder is leaking pictures, resetting the heap

 * RunThread: video output thread
 * Video output thread. This function does only returns when the thread is
 * terminated. It handles the pictures arriving in the video heap and the
 * display device events.
static void RunThread( vout_thread_t *p_vout)

在这个函数里面,看到下列code, 很难理解了, 
!p_picture->b_force &&
                p_picture != p_last_picture &&
                display_date < current_date + p_vout->render_time &&
                b_drop_late )

这个p_vout->render_time ,到底是怎么算出来的。



vout_DatePicture ( vout_thread_t *p_vout, picture_t *p_pic ) : Gives the picture a presentation date. You can start working on a picture before knowing precisely at what time it will be displayed. For instance to date an I or P picture, you must wait until you have decoded all previous B pictures (which are indeed placed after - decoding order != presentation order).
  vout_DisplayPicture ( vout_thread_t *p_vout, picture_t *p_pic ) : Tells the video output that a picture has been completely decoded and is ready to be rendered. It can be called before or after vout_DatePicture.
   vout_DestroyPicture ( vout_thread_t *p_vout, picture_t *p_pic ) : Marks the picture as empty (useful in case of a stream parsing error).


posted on 2009-09-23 08:48 TS,MPEG2,dvbc专家 阅读(3493) 评论(1)  编辑 收藏 引用


# re: vlc 播放视频的过程分析 {7} pcr,pts 2009-09-30 15:29 richie
我分析VLC的pcr,好像是从pts变算过来的,知道vlc怎么算的吗  回复  更多评论