1 /*****************************************************************************
2 * vpar_synchro.h : video parser blocks management
4 *****************************************************************************
5 *****************************************************************************
16 *****************************************************************************/
18 /*****************************************************************************
19 * video_synchro_t and video_synchro_tab_s : timers for the video synchro
20 *****************************************************************************/
21 typedef struct video_synchro_tab_s
26 } video_synchro_tab_t;
28 typedef struct video_synchro_s
32 /* P images since the last I */
34 double p_count_predict;
35 /* B images since the last I */
37 double b_count_predict;
39 /* 1 for linear count, 2 for binary count, 3 for ternary count */
40 video_synchro_tab_t tab_p[6];
41 video_synchro_tab_t tab_b[6];
45 /*****************************************************************************
47 *****************************************************************************/
48 boolean_t vpar_SynchroChoose( struct vpar_thread_s * p_vpar, int i_coding_type,
50 void vpar_SynchroTrash( struct vpar_thread_s * p_vpar, int i_coding_type,
52 void vpar_SynchroDecode( struct vpar_thread_s * p_vpar, int i_coding_type,
54 void vpar_SynchroEnd( struct vpar_thread_s * p_vpar );
55 mtime_t vpar_SynchroDate( struct vpar_thread_s * p_vpar );