struct
{
int (*pf_text) ( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+ subpicture_region_t *,
+ const vlc_fourcc_t * );
int (*pf_html) ( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+ subpicture_region_t *,
+ const vlc_fourcc_t * );
} render;
#define pf_render_text u.render.pf_text
#define pf_render_html u.render.pf_html
memset( &fmt_out, 0, sizeof(video_format_t) );
p_sys->p_text->pf_render_text( p_sys->p_text,
- p_region, p_region );
+ p_region, p_region, NULL );
#if defined(FBOSD_BLENDING)
fmt_out = p_region->fmt;
#include "dummy.h"
-static int RenderText( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t *p_chroma_list )
+{
+ VLC_UNUSED(p_filter); VLC_UNUSED(p_region_out); VLC_UNUSED(p_region_in);
+ VLC_UNUSED(p_chroma_list);
+ return VLC_EGENERIC;
+}
int OpenRenderer( vlc_object_t *p_this )
{
return VLC_SUCCESS;
}
-static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
-{
- VLC_UNUSED(p_filter); VLC_UNUSED(p_region_out); VLC_UNUSED(p_region_in);
- return VLC_EGENERIC;
-}
}
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const video_format_t *p_chroma_list )
{
+ VLC_UNUSED( p_chroma_list );
return RenderCommon( p_filter, p_region_out, p_region_in, false );
}
#ifdef HAVE_STYLES
static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const video_format_t *p_chroma_list )
{
+ VLC_UNUSED( p_chroma_list );
return RenderCommon( p_filter, p_region_out, p_region_in, true );
}
static int LoadFontsFromAttachments( filter_t *p_filter );
static int RenderText( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+ subpicture_region_t *,
+ const vlc_fourcc_t * );
static int RenderHtml( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+ subpicture_region_t *,
+ const vlc_fourcc_t * );
static int GetFontSize( filter_t *p_filter );
static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
// Renders a text subpicture region into another one.
// It is used as pf_add_string callback in the vout method by this module
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t *p_chroma_list )
{
filter_sys_t *p_sys = p_filter->p_sys;
char *psz_string;
}
static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t *p_chroma_list )
{
int rv = VLC_SUCCESS;
stream_t *p_sub = NULL;
static int Create ( vlc_object_t * );
static void Destroy ( vlc_object_t * );
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in );
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t * );
static char *svg_GetTemplate( vlc_object_t *p_this );
/*****************************************************************************
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t *p_chroma_list )
{
filter_sys_t *p_sys = p_filter->p_sys;
svg_rendition_t *p_svg = NULL;
/* The RenderText call maps to pf_render_string, defined in vlc_filter.h */
static int RenderText( filter_t *, subpicture_region_t *,
- subpicture_region_t * );
+ subpicture_region_t *,
+ const vlc_fourcc_t * );
static int Render( filter_t *, subpicture_region_t *, uint8_t *, int, int);
static int SetFont( filter_t *, int );
}
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
- subpicture_region_t *p_region_in )
+ subpicture_region_t *p_region_in,
+ const vlc_fourcc_t *p_chroma_list )
{
filter_sys_t *p_sys = p_filter->p_sys;
int i_font_color, i_font_alpha, i_font_size;
static void SpuRenderText(spu_t *spu, bool *rerender_text,
subpicture_region_t *region,
+ const vlc_fourcc_t *chroma_list,
mtime_t elapsed_time)
{
filter_t *text = spu->p->text;
var_SetBool(text, "text-rerender", false);
if (text->pf_render_html && region->psz_html)
- text->pf_render_html(text, region, region);
+ text->pf_render_html(text, region, region, chroma_list);
else if (text->pf_render_text)
- text->pf_render_text(text, region, region);
+ text->pf_render_text(text, region, region, chroma_list);
*rerender_text = var_GetBool(text, "text-rerender");
}
/* Render text region */
if (region->fmt.i_chroma == VLC_CODEC_TEXT) {
SpuRenderText(spu, &restore_text, region,
+ chroma_list,
render_date - subpic->i_start);
/* Check if the rendering has failed ... */