]> git.sesse.net Git - vlc/blob - include/spu_decoder.h
. correction des conneries de BBP :)
[vlc] / include / spu_decoder.h
1 /*****************************************************************************
2  * spu_decoder.h : sub picture unit decoder thread interface
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  *
6  * Authors:
7  *
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.
12  * 
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
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 /*****************************************************************************
24  * spudec_thread_t : sub picture unit decoder thread descriptor
25  *****************************************************************************/
26 typedef struct spudec_thread_s
27 {
28     /*
29      * Thread properties and locks
30      */
31     boolean_t           b_die;                                 /* `die' flag */
32     boolean_t           b_run;                                 /* `run' flag */
33     boolean_t           b_active;                           /* `active' flag */
34     boolean_t           b_error;                             /* `error' flag */
35     vlc_thread_t        thread_id;                /* id for thread functions */
36
37     /*
38      * Input properties
39      */
40     decoder_fifo_t      fifo;                  /* stores the PES stream data */
41     /* The bit stream structure handles the PES stream at the bit level */
42     bit_stream_t        bit_stream;
43
44     /*
45      * Decoder properties
46      */
47     unsigned int        total_bits_read;
48     /* ... */
49     vout_thread_t *     p_vout;          /* needed to create the spu objects */
50
51 } spudec_thread_t;
52
53 /*****************************************************************************
54  * Prototypes
55  *****************************************************************************/
56 spudec_thread_t *       spudec_CreateThread( input_thread_t * p_input );
57 void                    spudec_DestroyThread( spudec_thread_t * p_spudec );
58