1 /*****************************************************************************
2 * spu_decoder.h : sub picture unit decoder thread interface
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 *****************************************************************************/
24 /*****************************************************************************
25 * spudec_thread_t : sub picture unit decoder thread descriptor
26 *****************************************************************************/
27 typedef struct spudec_thread_s
30 * Thread properties and locks
32 boolean_t b_die; /* `die' flag */
33 boolean_t b_run; /* `run' flag */
34 boolean_t b_active; /* `active' flag */
35 boolean_t b_error; /* `error' flag */
36 vlc_thread_t thread_id; /* id for thread functions */
41 decoder_fifo_t fifo; /* stores the PES stream data */
42 /* The bit stream structure handles the PES stream at the bit level */
43 bit_stream_t bit_stream;
48 unsigned int total_bits_read;
50 vout_thread_t * p_vout; /* needed to create the spu objects */
54 /*****************************************************************************
56 *****************************************************************************/
57 spudec_thread_t * spudec_CreateThread( input_thread_t * p_input );
58 void spudec_DestroyThread( spudec_thread_t * p_spudec );