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
34 #define OSD_HOR_SLIDER 1
35 #define OSD_VERT_SLIDER 2
37 #define OSD_PLAY_ICON 1
38 #define OSD_PAUSE_ICON 2
39 #define OSD_SPEAKER_ICON 3
40 #define OSD_MUTE_ICON 4
43 * Text style information.
44 * This struct is currently ignored
52 vlc_bool_t b_underline;
54 static const text_style_t default_text_style = { 22, 0xffffff, VLC_FALSE, VLC_FALSE, VLC_FALSE };
56 VLC_EXPORT( int, vout_ShowTextRelative, ( vout_thread_t *, int, char *, text_style_t *, int, int, int, mtime_t ) );
57 VLC_EXPORT( int, vout_ShowTextAbsolute, ( vout_thread_t *, int, char *, text_style_t *, int, int, int, mtime_t, mtime_t ) );
58 VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, int, char *, ... ) );
60 * Same as __vlc_OSDMessage() but with automatic casting
62 #if defined(HAVE_VARIADIC_MACROS)
63 # define vout_OSDMessage( obj, chan, fmt, args...) __vout_OSDMessage( VLC_OBJECT(obj), chan, fmt, ## args )
65 # define vout_OSDMessage __vout_OSDMessage
67 VLC_EXPORT( void, vout_OSDSlider, ( vlc_object_t *, int, int , short ) );
68 VLC_EXPORT( void, vout_OSDIcon, ( vlc_object_t *, int, short ) );