]> git.sesse.net Git - vlc/blob - src/video_output/video_text.h
Encore un commit venu tout droit des abysses de l'enfer, d�sol� pour
[vlc] / src / video_output / video_text.h
1 /*****************************************************************************
2  * video_text.h : text manipulation functions
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  *
6  * Authors:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public
19  * License along with this program; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *****************************************************************************/
23
24 /* Text styles - these are primary text styles, used by the vout_Print function.
25  * They may be ignored or interpreted by higher level functions */
26 #define WIDE_TEXT                       1         /* interspacing is doubled */
27 #define ITALIC_TEXT                     2                          /* italic */
28 #define OPAQUE_TEXT                     4            /* text with background */
29 #define OUTLINED_TEXT                   8           /* border around letters */
30 #define VOID_TEXT                      16                   /* no foreground */
31
32
33 /*****************************************************************************
34  * Prototypes
35  *****************************************************************************/
36 p_vout_font_t   vout_LoadFont   ( const char *psz_name );
37 void            vout_UnloadFont ( p_vout_font_t p_font );
38 void            vout_TextSize   ( p_vout_font_t p_font, int i_style,
39                                   const char *psz_text,
40                                   int *pi_width, int *pi_height );
41 void            vout_Print      ( p_vout_font_t p_font, byte_t *p_pic,
42                                   int i_bytes_per_pixel, int i_bytes_per_line,
43                                   u32 i_char_color, u32 i_border_color, u32 i_bg_color,
44                                   int i_style, const char *psz_text );
45
46
47
48
49
50
51
52
53
54