Commit 5c8fd676 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Move and split dummy text render

parent 5c385e6f
...@@ -327,6 +327,7 @@ $Id$ ...@@ -327,6 +327,7 @@ $Id$
* swscale: Video scaling filter * swscale: Video scaling filter
* t140: T.140 text encoder * t140: T.140 text encoder
* taglib: Taglib tags parser and writer * taglib: Taglib tags parser and writer
* tdummy: dummy text renderer
* telepathy: Telepathy Presence information using MissionControl notification * telepathy: Telepathy Presence information using MissionControl notification
* telx: teletext subtitles decoder * telx: teletext subtitles decoder
* theora: a theora video decoder/packetizer/encoder using the libtheora library * theora: a theora video decoder/packetizer/encoder using the libtheora library
......
...@@ -4,8 +4,11 @@ SUBDIRS = $(BASE_SUBDIRS) ...@@ -4,8 +4,11 @@ SUBDIRS = $(BASE_SUBDIRS)
DIST_SUBDIRS = $(BASE_SUBDIRS) DIST_SUBDIRS = $(BASE_SUBDIRS)
SOURCES_freetype = text_renderer/freetype.c SOURCES_freetype = text_renderer/freetype.c
SOURCES_tdummy = text_renderer/tdummy.c
SOURCES_win32text = text_renderer/win32text.c SOURCES_win32text = text_renderer/win32text.c
SOURCES_quartztext = text_renderer/quartztext.c SOURCES_quartztext = text_renderer/quartztext.c
libvlc_LTLIBRARIES += libtdummy_plugin.la
SOURCES_svg = text_renderer/svg.c SOURCES_svg = text_renderer/svg.c
SOURCES_logger = logger.c SOURCES_logger = logger.c
SOURCES_vod_rtsp = rtsp.c SOURCES_vod_rtsp = rtsp.c
......
...@@ -2,7 +2,6 @@ SOURCES_dummy = \ ...@@ -2,7 +2,6 @@ SOURCES_dummy = \
dummy.c \ dummy.c \
dummy.h \ dummy.h \
interface.c \ interface.c \
renderer.c \
$(NULL) $(NULL)
libvlc_LTLIBRARIES += libdummy_plugin.la libvlc_LTLIBRARIES += libdummy_plugin.la
...@@ -58,10 +58,6 @@ vlc_module_begin () ...@@ -58,10 +58,6 @@ vlc_module_begin ()
add_category_hint( N_("Interface"), NULL, false ) add_category_hint( N_("Interface"), NULL, false )
add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false ) add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
#endif #endif
add_submodule ()
set_description( N_("Dummy font renderer function") )
set_capability( "text renderer", 1 )
set_callbacks( OpenRenderer, NULL )
add_submodule () add_submodule ()
set_description( N_("libc memcpy") ) set_description( N_("libc memcpy") )
set_capability( "memcpy", 50 ) set_capability( "memcpy", 50 )
......
...@@ -25,5 +25,3 @@ ...@@ -25,5 +25,3 @@
* External prototypes * External prototypes
*****************************************************************************/ *****************************************************************************/
int OpenIntf ( vlc_object_t * ); int OpenIntf ( vlc_object_t * );
int OpenRenderer ( vlc_object_t * );
...@@ -26,10 +26,18 @@ ...@@ -26,10 +26,18 @@
#endif #endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_block.h> #include <vlc_plugin.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include "dummy.h" static int OpenRenderer( vlc_object_t * );
vlc_module_begin ()
set_shortname( N_("Dummy") )
set_description( N_("Dummy font renderer") )
set_capability( "text renderer", 1 )
set_callbacks( OpenRenderer, NULL )
vlc_module_end ()
static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out, 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,
...@@ -40,11 +48,10 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -40,11 +48,10 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
return VLC_EGENERIC; return VLC_EGENERIC;
} }
int OpenRenderer( vlc_object_t *p_this ) static int OpenRenderer( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
p_filter->pf_render_text = RenderText; p_filter->pf_render_text = RenderText;
p_filter->pf_render_html = NULL; p_filter->pf_render_html = NULL;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -913,7 +913,6 @@ modules/misc/dhparams.h ...@@ -913,7 +913,6 @@ modules/misc/dhparams.h
modules/misc/dummy/dummy.c modules/misc/dummy/dummy.c
modules/misc/dummy/dummy.h modules/misc/dummy/dummy.h
modules/misc/dummy/interface.c modules/misc/dummy/interface.c
modules/misc/dummy/renderer.c
modules/misc/gnutls.c modules/misc/gnutls.c
modules/misc/inhibit.c modules/misc/inhibit.c
modules/misc/inhibit/osso.c modules/misc/inhibit/osso.c
...@@ -945,6 +944,7 @@ modules/misc/stats/stats.h ...@@ -945,6 +944,7 @@ modules/misc/stats/stats.h
modules/misc/text_renderer/freetype.c modules/misc/text_renderer/freetype.c
modules/misc/text_renderer/quartztext.c modules/misc/text_renderer/quartztext.c
modules/misc/text_renderer/svg.c modules/misc/text_renderer/svg.c
modules/misc/text_renderer/tdummy.c
modules/misc/text_renderer/win32text.c modules/misc/text_renderer/win32text.c
modules/misc/xml/libxml.c modules/misc/xml/libxml.c
modules/mmx/memcpy.c modules/mmx/memcpy.c
......
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