ogt.c cvd.c, subtitle.h: move common debug string help into subtitle.h
[vlc.git] / modules / codec / ogt / common.h
1 /*****************************************************************************
2  * Header for Common SVCD and VCD subtitle routines.
3  *****************************************************************************
4  * Copyright (C) 2003, 2004 VideoLAN
5  * $Id: common.h,v 1.3 2004/01/03 12:54:56 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
26 void           VCDSubInitSubtitleBlock( decoder_sys_t * p_sys );
27
28 void           VCDSubInitSubtitleData(decoder_sys_t *p_sys);
29
30 void           VCDSubAppendData( decoder_t *p_dec, uint8_t *buffer, 
31                                  uint32_t buf_len );
32 vout_thread_t *VCDSubFindVout( decoder_t *p_dec );
33
34 void           VCDSubScaleX( decoder_t *p_dec, subpicture_t *p_spu, 
35                              unsigned int i_scale_x, unsigned int i_scale_y );
36
37 void           VCDSubDestroySPU( subpicture_t *p_spu );
38
39 int            VCDSubCropCallback( vlc_object_t *p_object, char const *psz_var,
40                                    vlc_value_t oldval, vlc_value_t newval, 
41                                    void *p_data );
42
43 void           VCDSubUpdateSPU( subpicture_t *p_spu, vlc_object_t *p_object );
44
45 void           VCDInlinePalette ( /*inout*/ uint8_t *p_dest, 
46                                   decoder_sys_t *p_sys, unsigned int i_height, 
47                                   unsigned int i_width );
48
49 void           VCDSubDumpImage( uint8_t *p_image, uint32_t i_height, 
50                                 uint32_t i_width );
51
52 #ifdef HAVE_LIBPNG
53 #include <png.h>
54 void           VCDSubDumpPNG( uint8_t *p_image, decoder_t *p_dec,
55                               uint32_t i_height, uint32_t i_width,
56                               const char *filename,  /*in*/ png_text *text_ptr,
57                               int i_text_count );
58 #endif /*HAVE_LIBPNG*/