]> git.sesse.net Git - vlc/blob - include/osd.h
mkv.cpp: try to improve timecode and references handling
[vlc] / include / osd.h
1 /*****************************************************************************
2  * osd.h : Constants for use with osd modules
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id$
6  *
7  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /**
25  * \file
26  * Stucts and function prototypes to place text on the video
27  */
28
29 #define OSD_ALIGN_LEFT 0x1
30 #define OSD_ALIGN_RIGHT 0x2
31 #define OSD_ALIGN_TOP 0x4
32 #define OSD_ALIGN_BOTTOM 0x8
33
34 #define OSD_HOR_SLIDER 1
35 #define OSD_VERT_SLIDER 2
36
37 #define OSD_PLAY_ICON 1
38 #define OSD_PAUSE_ICON 2
39 #define OSD_SPEAKER_ICON 3
40 #define OSD_MUTE_ICON 4
41
42 /**
43  * Text style information.
44  * This struct is currently ignored
45  */
46 struct text_style_t
47 {
48     int i_size;
49     uint32_t i_color;
50     vlc_bool_t b_italic;
51     vlc_bool_t b_bold;
52     vlc_bool_t b_underline;
53 };
54 static const text_style_t default_text_style = { 22, 0xffffff, VLC_FALSE, VLC_FALSE, VLC_FALSE };
55
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 *, ... ) );
59 /**
60  * Same as __vlc_OSDMessage() but with automatic casting
61  */
62 #if defined(HAVE_VARIADIC_MACROS)
63 #    define vout_OSDMessage( obj, chan, fmt, args...) __vout_OSDMessage( VLC_OBJECT(obj), chan, fmt, ## args )
64 #else
65 #    define vout_OSDMessage __vout_OSDMessage
66 #endif
67 VLC_EXPORT( void, vout_OSDSlider, ( vlc_object_t *, int, int , short ) );
68 VLC_EXPORT( void, vout_OSDIcon, ( vlc_object_t *, int, short ) );