]> git.sesse.net Git - vlc/blob - include/spu_decoder.h
0a373320cca4f190392f373274e9240b221aeb16
[vlc] / include / spu_decoder.h
1 /*****************************************************************************
2  * spu_decoder.h : sub picture unit decoder thread interface
3  * (c)1999 VideoLAN
4  *****************************************************************************/
5
6 /*****************************************************************************
7  * spudec_thread_t : sub picture unit decoder thread descriptor
8  *****************************************************************************/
9 typedef struct spudec_thread_s
10 {
11     /*
12      * Thread properties and locks
13      */
14     boolean_t           b_die;                                 /* `die' flag */
15     boolean_t           b_run;                                 /* `run' flag */
16     boolean_t           b_active;                           /* `active' flag */
17     boolean_t           b_error;                             /* `error' flag */
18     vlc_thread_t        thread_id;                /* id for thread functions */
19
20     /*
21      * Input properties
22      */
23     decoder_fifo_t      fifo;                  /* stores the PES stream data */
24     /* The bit stream structure handles the PES stream at the bit level */
25     bit_stream_t        bit_stream;
26
27     /*
28      * Decoder properties
29      */
30     unsigned int        total_bits_read;
31     /* ... */
32
33 } spudec_thread_t;
34
35 /*****************************************************************************
36  * Prototypes
37  *****************************************************************************/
38 spudec_thread_t *       spudec_CreateThread( input_thread_t * p_input );
39 void                    spudec_DestroyThread( spudec_thread_t * p_spudec );
40