diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-22 23:39:35 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-22 23:39:35 +0100 |
commit | 188d7498b854233ac5f329fa342b16cbe1087d62 (patch) | |
tree | 93700bdc2d03c07547b5313302f28bf1320a0eaf /src/libspucc/cc_decoder.h | |
parent | b7a18f2d1b7afe26d1816621178a52c527d773f4 (diff) | |
download | xine-lib-188d7498b854233ac5f329fa342b16cbe1087d62.tar.gz xine-lib-188d7498b854233ac5f329fa342b16cbe1087d62.tar.bz2 |
Move all the SubPicture decoders together in the spu_dec directory. Remove superfluous xine_ prefixes from source files.
--HG--
rename : src/libspucc/cc_decoder.c => src/spu_dec/cc_decoder.c
rename : src/libspucc/cc_decoder.h => src/spu_dec/cc_decoder.h
rename : src/libspucmml/xine_cmml_decoder.c => src/spu_dec/cmml_decoder.c
rename : src/libspudec/nav_read.c => src/spu_dec/nav_read.c
rename : src/libspudec/xine_spu_decoder.c => src/spu_dec/spu_decoder.c
rename : src/libspudec/spudec.c => src/spu_dec/spudec.c
rename : src/libspudec/spudec.h => src/spu_dec/spudec.h
rename : src/libspudvb/xine_spudvb_decoder.c => src/spu_dec/spudvb_decoder.c
rename : src/libsputext/xine_sputext_decoder.c => src/spu_dec/sputext_decoder.c
rename : src/libsputext/demux_sputext.c => src/spu_dec/sputext_demuxer.c
rename : src/libspucc/xine_cc_decoder.c => src/spu_dec/xine_cc_decoder.c
Diffstat (limited to 'src/libspucc/cc_decoder.h')
-rw-r--r-- | src/libspucc/cc_decoder.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/libspucc/cc_decoder.h b/src/libspucc/cc_decoder.h deleted file mode 100644 index 3924bb8be..000000000 --- a/src/libspucc/cc_decoder.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2000-2003 the xine project - * - * Copyright (C) Christian Vogler - * cvogler@gradient.cis.upenn.edu - December 2001 - * - * This file is part of xine, a free video player. - * - * xine is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * xine is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA - * - * stuff needed to provide closed captioning decoding and display - * - * Some small bits and pieces of the EIA-608 captioning decoder were - * adapted from CCDecoder 0.9.1 by Mike Baker. The latest version is - * available at http://sourceforge.net/projects/ccdecoder/. - */ - -typedef struct cc_decoder_s cc_decoder_t; -typedef struct cc_renderer_s cc_renderer_t; - -#define NUM_CC_PALETTES 2 -static const char *const cc_schemes[NUM_CC_PALETTES + 1] = { - "White/Gray/Translucent", - "White/Black/Solid", - NULL -}; - -#define CC_FONT_MAX 256 - -typedef struct cc_config_s { - int cc_enabled; /* true if closed captions are enabled */ - char font[CC_FONT_MAX]; /* standard captioning font & size */ - int font_size; - char italic_font[CC_FONT_MAX]; /* italic captioning font & size */ - int center; /* true if captions should be centered */ - /* according to text width */ - int cc_scheme; /* which captioning scheme to use */ - - int config_version; /* the decoder should be updated when this is increased */ -} cc_config_t; - -typedef struct spucc_class_s { - spu_decoder_class_t spu_class; - cc_config_t cc_cfg; -} spucc_class_t; - -typedef struct cc_state_s { - cc_config_t *cc_cfg; - /* the following variables are not controlled by configuration files; they */ - /* are intrinsic to the properties of the configuration options and the */ - /* currently played video */ - int can_cc; /* true if captions can be displayed */ - /* (e.g., font fits on screen) */ - cc_renderer_t *renderer; /* closed captioning renderer */ -} cc_state_t; - -cc_decoder_t *cc_decoder_open(cc_state_t *cc_state); -void cc_decoder_close(cc_decoder_t *this_obj); -void cc_decoder_init(void); - -void decode_cc(cc_decoder_t *this, uint8_t *buffer, uint32_t buf_len, - int64_t pts); - -/* Instantiates a new closed captioning renderer. */ -cc_renderer_t *cc_renderer_open(osd_renderer_t *osd_renderer, - metronom_t *metronom, cc_state_t *cc_state, - int video_width, int video_height); - -/* Destroys a closed captioning renderer. */ -void cc_renderer_close(cc_renderer_t *this_obj); - -/* Updates the renderer configuration variables */ -void cc_renderer_update_cfg(cc_renderer_t *this_obj, int video_width, - int video_height); - |