Commit ca235087 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Rémi Denis-Courmont

enable display of background bitmaps (eg, picture subtitles)

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent 26716258
......@@ -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]) ],[
......
......@@ -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');
......
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