1 /*****************************************************************************
2 * spudec.h : sub picture unit decoder thread interface
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
35 /* We will never overflow more than 11 bytes if I'm right */
36 uint8_t buffer[65536 + 20 ];
39 typedef struct subpicture_data_t
41 mtime_t i_pts; /* presentation timestamp */
43 int pi_offset[2]; /* byte offsets to data */
46 /* Color information */
53 /*****************************************************************************
54 * Amount of bytes we GetChunk() in one go
55 *****************************************************************************/
56 #define SPU_CHUNK_SIZE 0x200
58 /*****************************************************************************
60 *****************************************************************************/
61 #define SPU_CMD_FORCE_DISPLAY 0x00
62 #define SPU_CMD_START_DISPLAY 0x01
63 #define SPU_CMD_STOP_DISPLAY 0x02
64 #define SPU_CMD_SET_PALETTE 0x03
65 #define SPU_CMD_SET_ALPHACHANNEL 0x04
66 #define SPU_CMD_SET_COORDINATES 0x05
67 #define SPU_CMD_SET_OFFSETS 0x06
68 #define SPU_CMD_END 0xff
70 /*****************************************************************************
72 *****************************************************************************/
73 subpicture_t * E_(ParsePacket)( decoder_t * );