]> git.sesse.net Git - vlc/blob - modules/misc/dummy/renderer.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / misc / dummy / renderer.c
1 /*****************************************************************************
2  * renderer.c : dummy text rendering functions
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #include <vlc_common.h>
29 #include <vlc_block.h>
30 #include <vlc_filter.h>
31
32 #include "dummy.h"
33
34 static int RenderText( filter_t *, subpicture_region_t *,
35                        subpicture_region_t * );
36
37 int OpenRenderer( vlc_object_t *p_this )
38 {
39     filter_t *p_filter = (filter_t *)p_this;
40     p_filter->pf_render_text = RenderText;
41     p_filter->pf_render_html = NULL;
42     return VLC_SUCCESS;
43 }
44
45 static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
46                        subpicture_region_t *p_region_in )
47 {
48     VLC_UNUSED(p_filter); VLC_UNUSED(p_region_out); VLC_UNUSED(p_region_in);
49     return VLC_EGENERIC;
50 }