]> git.sesse.net Git - vlc/blob - include/ac3_decoder.h
* Rajout du d�but du d�codeur ac3 ;
[vlc] / include / ac3_decoder.h
1 /*****************************************************************************
2  * ac3_decoder.h : ac3 decoder thread interface
3  * (c)1999 VideoLAN
4  *****************************************************************************/
5
6 #define AC3DEC_FRAME_SIZE (2*256)
7
8 /*****************************************************************************
9  * ac3dec_frame_t
10  *****************************************************************************/
11 typedef s16 ac3dec_frame_t[ AC3DEC_FRAME_SIZE ];
12
13 /*****************************************************************************
14  * ac3dec_thread_t : ac3 decoder thread descriptor
15  *****************************************************************************/
16 typedef struct ac3dec_thread_s
17 {
18     /*
19      * Thread properties
20      */
21     vlc_thread_t        thread_id;                /* id for thread functions */
22     boolean_t           b_die;                                 /* `die' flag */
23     boolean_t           b_error;                             /* `error' flag */
24
25     /*
26      * Input properties
27      */
28     decoder_fifo_t      fifo;                  /* stores the PES stream data */
29     /* The bit stream structure handles the PES stream at the bit level */
30     bit_stream_t        bit_stream;
31
32     /*
33      * Decoder properties
34      */
35     unsigned int        total_bits_read;
36
37     /*
38      * Output properties
39      */
40     aout_fifo_t *       p_aout_fifo; /* stores the decompressed audio frames */
41     aout_thread_t *     p_aout;           /* needed to create the audio fifo */
42
43 } ac3dec_thread_t;
44
45 /*****************************************************************************
46  * Prototypes
47  *****************************************************************************/
48 ac3dec_thread_t *       ac3dec_CreateThread( input_thread_t * p_input );
49 void                    ac3dec_DestroyThread( ac3dec_thread_t * p_ac3dec );