]> git.sesse.net Git - vlc/blob - src/video_output/video_text.h
enabled the menu-entry to show file info when there is an input
[vlc] / src / video_output / video_text.h
1 /*****************************************************************************
2  * video_text.h : text manipulation functions
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  * $Id: video_text.h,v 1.8 2002/06/01 12:32:02 sam Exp $
6  *
7  * Authors: Vincent Seguin <seguin@via.ecp.fr>
8  *          Samuel Hocevar <sam@zoy.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 /* Text styles - these are primary text styles, used by the vout_Print function.
26  * They may be ignored or interpreted by higher level functions */
27 #define WIDE_TEXT                    1<<0         /* interspacing is doubled */
28 #define ITALIC_TEXT                  1<<1                          /* italic */
29 #define OPAQUE_TEXT                  1<<2            /* text with background */
30 #define OUTLINED_TEXT                1<<3           /* border around letters */
31 #define VOID_TEXT                    1<<4                   /* no foreground */
32
33
34 /*****************************************************************************
35  * Prototypes
36  *****************************************************************************/
37 vout_font_t *   vout_LoadFont   ( vout_thread_t *, const char *psz_name );
38 void            vout_UnloadFont ( vout_font_t * );
39 void            vout_TextSize   ( vout_font_t *p_font, int i_style,
40                                   const char *psz_text,
41                                   int *pi_width, int *pi_height );
42 void            vout_Print      ( vout_font_t *p_font, byte_t *p_pic,
43                                   int i_bytes_per_pixel, int i_bytes_per_line,
44                                   u32, u32, u32, int, const char *, int );
45