Commit 91f6deae authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/subsdec.c: cleaned up and ported the text subtitles decoder to the new decoder api.
parent 2f72e38f
dnl Autoconf settings for vlc dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.78 2003/09/27 10:09:57 gbazin Exp $ dnl $Id: configure.ac,v 1.79 2003/10/01 22:19:57 gbazin Exp $
AC_INIT(vlc,0.6.3-cvs) AC_INIT(vlc,0.6.3-cvs)
...@@ -3320,7 +3320,6 @@ AC_OUTPUT([ ...@@ -3320,7 +3320,6 @@ AC_OUTPUT([
modules/codec/mpeg_video/idct/Makefile modules/codec/mpeg_video/idct/Makefile
modules/codec/mpeg_video/motion/Makefile modules/codec/mpeg_video/motion/Makefile
modules/codec/spudec/Makefile modules/codec/spudec/Makefile
modules/codec/subsdec/Makefile
modules/control/Makefile modules/control/Makefile
modules/control/corba/Makefile modules/control/corba/Makefile
modules/control/lirc/Makefile modules/control/lirc/Makefile
......
...@@ -14,3 +14,4 @@ SOURCES_mpeg_audio = mpeg_audio.c ...@@ -14,3 +14,4 @@ SOURCES_mpeg_audio = mpeg_audio.c
SOURCES_libmpeg2 = libmpeg2.c SOURCES_libmpeg2 = libmpeg2.c
SOURCES_rawvideo = rawvideo.c SOURCES_rawvideo = rawvideo.c
SOURCES_quicktime = quicktime.c SOURCES_quicktime = quicktime.c
SOURCES_subsdec = subsdec.c
.deps
.dirstamp
*.lo
*.la
*.dll
*.dylib
*.sl
*.so
Makefile.am
Makefile.in
Makefile
SOURCES_subsdec = \
subsdec.c \
subsdec.h \
$(NULL)
/*****************************************************************************
* subsdec.h : sub picture unit decoder thread interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: subsdec.h,v 1.2 2003/08/10 10:22:52 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* This program 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.
*
* This program 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#if defined(HAVE_ICONV)
#include <iconv.h>
#endif
typedef struct subsdec_thread_t subsdec_thread_t;
/*****************************************************************************
* subsdec_thread_t : sub picture unit decoder thread descriptor
*****************************************************************************/
struct subsdec_thread_t
{
/*
* Input properties
*/
decoder_fifo_t * p_fifo; /* stores the PES stream data */
/* The bit stream structure handles the PES stream at the bit level */
bit_stream_t bit_stream;
/*
* Output properties
*/
vout_thread_t * p_vout; /* needed to create the spu objects */
/*
* Private properties
*/
int i_align;
#if defined(HAVE_ICONV)
iconv_t iconv_handle; /* handle to iconv instance */
#endif
};
/*****************************************************************************
* Prototypes
*****************************************************************************/
int E_(SyncPacket) ( subsdec_thread_t * );
void E_(ParsePacket) ( subsdec_thread_t * );
void E_(ParseText) ( subsdec_thread_t * );
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment