spu_decoder.h 2.6 KB
Newer Older
1
/*****************************************************************************
2
 * spu_decoder.h : sub picture unit decoder thread interface
3 4 5 6 7 8 9 10 11
 *****************************************************************************
 * Copyright (C) 1999, 2000 VideoLAN
 *
 * Authors:
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
12
 * 
13 14
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
17
 *
18 19 20
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * 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 30
{
    /*
     * Thread properties and locks
     */
31
    vlc_thread_t        thread_id;                /* id for thread functions */
32 33 34 35

    /*
     * Input properties
     */
36
    decoder_fifo_t *    p_fifo;                /* stores the PES stream data */
37 38
    /* The bit stream structure handles the PES stream at the bit level */
    bit_stream_t        bit_stream;
39
    vdec_config_t *     p_config;
40 41 42 43 44 45

    /*
     * Decoder properties
     */
    unsigned int        total_bits_read;
    /* ... */
46
    vout_thread_t *     p_vout;          /* needed to create the spu objects */
47

48
} spudec_thread_t;
49

50 51 52 53 54 55 56 57 58 59 60 61
/*****************************************************************************
 * SPU commands
 *****************************************************************************/
#define SPU_CMD_FORCE_DISPLAY       0x00
#define SPU_CMD_START_DISPLAY       0x01
#define SPU_CMD_STOP_DISPLAY        0x02
#define SPU_CMD_SET_PALETTE         0x03
#define SPU_CMD_SET_ALPHACHANNEL    0x04
#define SPU_CMD_SET_COORDINATES     0x05
#define SPU_CMD_SET_OFFSETS         0x06
#define SPU_CMD_END                 0xff

62
/*****************************************************************************
63
 * Prototypes
64
 *****************************************************************************/
65
vlc_thread_t       spudec_CreateThread( vdec_config_t * p_config );
66