1 /*****************************************************************************
2 * ac3_decoder_thread.h : ac3 decoder thread interface
4 *****************************************************************************/
6 /*****************************************************************************
7 * ac3dec_thread_t : ac3 decoder thread descriptor
8 *****************************************************************************/
9 typedef struct ac3dec_thread_s
14 vlc_thread_t thread_id; /* id for thread functions */
15 boolean_t b_die; /* `die' flag */
16 boolean_t b_error; /* `error' flag */
21 decoder_fifo_t fifo; /* stores the PES stream data */
22 input_thread_t * p_input;
24 int sync_ptr; /* sync ptr from ac3 magic header */
35 aout_fifo_t * p_aout_fifo; /* stores the decompressed audio frames */
36 aout_thread_t * p_aout; /* needed to create the audio fifo */
40 /*****************************************************************************
42 *****************************************************************************/
43 ac3dec_thread_t * ac3dec_CreateThread( input_thread_t * p_input );
44 void ac3dec_DestroyThread( ac3dec_thread_t * p_ac3dec );