1 /*****************************************************************************
2 * ac3_decoder.h : ac3 decoder thread interface
4 *****************************************************************************/
6 #define AC3DEC_FRAME_SIZE (2*256)
8 /*****************************************************************************
10 *****************************************************************************/
11 typedef s16 ac3dec_frame_t[ AC3DEC_FRAME_SIZE ];
13 /*****************************************************************************
14 * ac3dec_thread_t : ac3 decoder thread descriptor
15 *****************************************************************************/
16 typedef struct ac3dec_thread_s
21 vlc_thread_t thread_id; /* id for thread functions */
22 boolean_t b_die; /* `die' flag */
23 boolean_t b_error; /* `error' flag */
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;
35 unsigned int total_bits_read;
40 aout_fifo_t * p_aout_fifo; /* stores the decompressed audio frames */
41 aout_thread_t * p_aout; /* needed to create the audio fifo */
45 /*****************************************************************************
47 *****************************************************************************/
48 ac3dec_thread_t * ac3dec_CreateThread( input_thread_t * p_input );
49 void ac3dec_DestroyThread( ac3dec_thread_t * p_ac3dec );