1 /*****************************************************************************
2 * osd.h : Constants for use with osd modules
3 *****************************************************************************
4 * Copyright (C) 2003 VideoLAN
7 * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
26 * Stucts and function prototypes to place text on the video
29 #define OSD_ALIGN_LEFT 0x1
30 #define OSD_ALIGN_RIGHT 0x2
31 #define OSD_ALIGN_TOP 0x4
32 #define OSD_ALIGN_BOTTOM 0x8
35 * Text style information.
36 * This struct is currently ignored
44 vlc_bool_t b_underline;
46 static const text_style_t default_text_style = { 22, 0xffffff, VLC_FALSE, VLC_FALSE, VLC_FALSE };
48 VLC_EXPORT( subpicture_t *, vout_ShowTextRelative, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t ) );
49 VLC_EXPORT( int, vout_ShowTextAbsolute, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t, mtime_t ) );
50 VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, char *, ... ) );
52 * Same as __vlc_OSDMessage() but with automatic casting
54 #if defined(HAVE_VARIADIC_MACROS)
55 # define vout_OSDMessage( obj, fmt, args...) __vout_OSDMessage( VLC_OBJECT(obj), fmt, ## args )
57 # define vout_OSDMessage __vout_OSDMessage