1 /*****************************************************************************
2 * video_parser.h : video parser thread
4 *****************************************************************************
5 *****************************************************************************
17 *****************************************************************************/
19 /*****************************************************************************
20 * vpar_thread_t: video parser thread descriptor
21 *****************************************************************************
23 *****************************************************************************/
24 typedef struct vpar_thread_s
26 /* Thread properties and locks */
27 boolean_t b_die; /* `die' flag */
28 boolean_t b_run; /* `run' flag */
29 boolean_t b_error; /* `error' flag */
30 boolean_t b_active; /* `active' flag */
31 vlc_thread_t thread_id; /* id for thread functions */
33 /* Thread configuration */
39 /* Input properties */
40 decoder_fifo_t fifo; /* PES input fifo */
42 /* The bit stream structure handles the PES stream at the bit level */
43 bit_stream_t bit_stream;
45 /* Output properties */
46 vout_thread_t * p_vout; /* video output thread */
47 int i_stream; /* video stream id */
49 /* Decoder properties */
50 struct vdec_thread_s * p_vdec[NB_VDEC];
52 video_buffer_t vbuffer;
54 /* Parser properties */
56 picture_parsing_t picture;
57 slice_parsing_t slice;
58 macroblock_parsing_t mb;
62 count_t c_loops; /* number of loops */
63 count_t c_idle_loops; /* number of idle loops */
64 count_t c_sequences; /* number of sequences */
65 count_t c_pictures; /* number of pictures read */
66 count_t c_i_pictures; /* number of I pictures read */
67 count_t c_p_pictures; /* number of P pictures read */
68 count_t c_b_pictures; /* number of B pictures read */
69 count_t c_decoded_pictures; /* number of pictures decoded */
70 count_t c_decoded_i_pictures; /* number of I pictures decoded */
71 count_t c_decoded_p_pictures; /* number of P pictures decoded */
72 count_t c_decoded_b_pictures; /* number of B pictures decoded */
76 /*****************************************************************************
78 *****************************************************************************/
80 /* Thread management functions */
81 vpar_thread_t * vpar_CreateThread ( /* video_cfg_t *p_cfg, */ input_thread_t *p_input /*,
82 vout_thread_t *p_vout, int *pi_status */ );
83 void vpar_DestroyThread ( vpar_thread_t *p_vpar /*, int *pi_status */ );
85 /* Time management functions */
88 /* Dynamic thread settings */