1 /*****************************************************************************
2 * video_decoder.h : video decoder thread
4 *****************************************************************************
5 *****************************************************************************
15 *****************************************************************************/
17 /*****************************************************************************
18 * vdec_thread_t: video decoder thread descriptor
19 *****************************************************************************
21 *****************************************************************************/
22 typedef struct vdec_thread_s
24 /* Thread properties and locks */
25 boolean_t b_die; /* `die' flag */
26 boolean_t b_run; /* `run' flag */
27 boolean_t b_error; /* `error' flag */
28 boolean_t b_active; /* `active' flag */
29 vlc_thread_t thread_id; /* id for thread functions */
31 /* Thread configuration */
37 /* Input properties */
38 video_parser_t * p_vpar; /* video_parser thread */
39 short int p_pre_idct[64*64]; /* initialization of sparse idct routines */
43 count_t c_loops; /* number of loops */
44 count_t c_idle_loops; /* number of idle loops */
45 count_t c_decoded_pictures; /* number of pictures decoded */
46 count_t c_decoded_i_pictures; /* number of I pictures decoded */
47 count_t c_decoded_p_pictures; /* number of P pictures decoded */
48 count_t c_decoded_b_pictures; /* number of B pictures decoded */
52 /*****************************************************************************
54 *****************************************************************************/
56 /* Thread management functions */
57 vdec_thread_t * vdec_CreateThread ( vpar_thread_t *p_vpar /*, int *pi_status */ );
58 void vdec_DestroyThread ( vdec_thread_t *p_vdec /*, int *pi_status */ );
60 /* Time management functions */
63 /* Dynamic thread settings */