]> git.sesse.net Git - vlc/blob - modules/codec/ogt/common.h
common.*: add common routine to eliminate palette from pixmap.
[vlc] / modules / codec / ogt / common.h
1 /*****************************************************************************
2  * Header for Common SVCD and VCD subtitle routines.
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: common.h,v 1.2 2003/12/30 04:43:52 rocky Exp $
6  *
7  * Author: Rocky Bernstein
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 void           VCDSubClose  ( vlc_object_t * );
25 void           VCDSubInitSubtitleBlock( decoder_sys_t * p_sys );
26 void           VCDSubInitSubtitleData(decoder_sys_t *p_sys);
27 void           VCDSubAppendData( decoder_t *p_dec, uint8_t *buffer, 
28                                  uint32_t buf_len );
29 vout_thread_t *VCDSubFindVout( decoder_t *p_dec );
30
31 void           VCDSubScaleX( decoder_t *p_dec, subpicture_t *p_spu, 
32                              unsigned int i_scale_x, unsigned int i_scale_y );
33 void           VCDSubDestroySPU( subpicture_t *p_spu );
34 int            VCDSubCropCallback( vlc_object_t *p_object, char const *psz_var,
35                                    vlc_value_t oldval, vlc_value_t newval, 
36                                    void *p_data );
37 void           VCDSubUpdateSPU( subpicture_t *p_spu, vlc_object_t *p_object );
38 void           VCDInlinePalette ( /*inout*/ uint8_t *p_dest, 
39                                   decoder_sys_t *p_sys, unsigned int i_height, 
40                                   unsigned int i_width );
41
42
43