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 $
7 * Author: Rocky Bernstein
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 *****************************************************************************/
24 void VCDSubClose ( vlc_object_t * );
26 void VCDSubInitSubtitleBlock( decoder_sys_t * p_sys );
28 void VCDSubInitSubtitleData(decoder_sys_t *p_sys);
30 void VCDSubAppendData( decoder_t *p_dec, uint8_t *buffer,
32 vout_thread_t *VCDSubFindVout( decoder_t *p_dec );
34 void VCDSubScaleX( decoder_t *p_dec, subpicture_t *p_spu,
35 unsigned int i_scale_x, unsigned int i_scale_y );
37 void VCDSubDestroySPU( subpicture_t *p_spu );
39 int VCDSubCropCallback( vlc_object_t *p_object, char const *psz_var,
40 vlc_value_t oldval, vlc_value_t newval,
43 void VCDSubUpdateSPU( subpicture_t *p_spu, vlc_object_t *p_object );
45 void VCDInlinePalette ( /*inout*/ uint8_t *p_dest,
46 decoder_sys_t *p_sys, unsigned int i_height,
47 unsigned int i_width );
49 void VCDSubDumpImage( uint8_t *p_image, uint32_t i_height,
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,
58 #endif /*HAVE_LIBPNG*/