[vlc-devel] commit: enable display of background bitmaps (eg, picture subtitles) ( Vincent Penquerc'h )
git version control
git at videolan.org
Thu Jun 5 17:04:27 CEST 2008
vlc | branch: master | Vincent Penquerc'h <ogg.k.ogg.k at googlemail.com> | Thu Jun 5 13:04:03 2008 +0100| [ca2350877d158830421fa47f147387a11e2f0ba1]
enable display of background bitmaps (eg, picture subtitles)
Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca2350877d158830421fa47f147387a11e2f0ba1
---
configure.ac | 2 +-
modules/codec/kate.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index c0a7235..4453726 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3752,7 +3752,7 @@ dnl
AC_ARG_ENABLE(kate,
[ --enable-kate kate codec (default enabled)])
AS_IF([test "${enable_kate}" != "no"], [
- PKG_CHECK_MODULES(KATE,[kate >= 0.1.1], [
+ PKG_CHECK_MODULES(KATE,[kate >= 0.1.2], [
VLC_ADD_PLUGIN([kate])
VLC_ADD_CFLAGS([kate],[$KATE_CFLAGS])
VLC_ADD_LIBS([kate],[$KATE_LIBS]) ],[
diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 90da151..7024be2 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -39,7 +39,7 @@
/* #define ENABLE_PACKETIZER */
/* #define ENABLE_FORMATTING */
-/* #define ENABLE_BITMAPS */
+#define ENABLE_BITMAPS
/*****************************************************************************
* decoder_sys_t : decoder descriptor
@@ -468,7 +468,7 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, kate_packet *p_kp, block_t
p_spu->b_pausable = true;
#ifdef ENABLE_BITMAPS
- if (ev->bitmap && ev->palette) {
+ if (ev->bitmap && ev->bitmap->type==kate_bitmap_type_paletted && ev->palette) {
/* create a separate region for the bitmap */
memset( &fmt, 0, sizeof(video_format_t) );
fmt.i_chroma = VLC_FOURCC('Y','U','V','P');
More information about the vlc-devel
mailing list