1 /*****************************************************************************
2 * tdummy.c : dummy text rendering functions
3 *****************************************************************************
4 * Copyright (C) 2000, 2001 VLC authors and VideoLAN
6 * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
27 #include <vlc_common.h>
28 #include <vlc_plugin.h>
29 #include <vlc_filter.h>
31 static int OpenRenderer( vlc_object_t
* );
34 set_shortname( N_("Dummy") )
35 set_description( N_("Dummy font renderer") )
36 set_capability( "text renderer", 1 )
37 set_callbacks( OpenRenderer
, NULL
)
41 static int RenderText( filter_t
*p_filter
, subpicture_region_t
*p_region_out
,
42 subpicture_region_t
*p_region_in
,
43 const vlc_fourcc_t
*p_chroma_list
)
45 VLC_UNUSED(p_filter
); VLC_UNUSED(p_region_out
); VLC_UNUSED(p_region_in
);
46 VLC_UNUSED(p_chroma_list
);
50 static int OpenRenderer( vlc_object_t
*p_this
)
52 filter_t
*p_filter
= (filter_t
*)p_this
;
53 p_filter
->pf_render
= RenderText
;