spudec.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * spudec.h : sub picture unit decoder thread interface
00003  *****************************************************************************
00004  * Copyright (C) 1999, 2000, 2006 the VideoLAN team
00005  * $Id: ce414200a03ee92c295ed4f42206a9e699bcbb49 $
00006  *
00007  * Authors: Sam Hocevar <sam@zoy.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 /* #define DEBUG_SPUDEC 1 */
00025 
00026 struct decoder_sys_t
00027 {
00028     bool b_packetizer;
00029     bool b_disabletrans;
00030 
00031     mtime_t i_pts;
00032     unsigned int i_spu_size;
00033     unsigned int i_rle_size;
00034     unsigned int i_spu;
00035 
00036     block_t *p_block;
00037 
00038     /* We will never overflow */
00039     uint8_t buffer[65536];
00040 };
00041 
00042 /*****************************************************************************
00043  * Amount of bytes we GetChunk() in one go
00044  *****************************************************************************/
00045 #define SPU_CHUNK_SIZE              0x200
00046 
00047 /*****************************************************************************
00048  * SPU commands
00049  *****************************************************************************/
00050 #define SPU_CMD_FORCE_DISPLAY       0x00
00051 #define SPU_CMD_START_DISPLAY       0x01
00052 #define SPU_CMD_STOP_DISPLAY        0x02
00053 #define SPU_CMD_SET_PALETTE         0x03
00054 #define SPU_CMD_SET_ALPHACHANNEL    0x04
00055 #define SPU_CMD_SET_COORDINATES     0x05
00056 #define SPU_CMD_SET_OFFSETS         0x06
00057 #define SPU_CMD_END                 0xff
00058 
00059 /*****************************************************************************
00060  * Prototypes
00061  *****************************************************************************/
00062 subpicture_t * ParsePacket( decoder_t * );

Generated on Tue May 25 08:04:54 2010 for VLC by  doxygen 1.5.6