]> git.sesse.net Git - vlc/blob - include/video_graphics.h
* vpar_blocks.c : Correction d'une erreur introduite hier soir avec
[vlc] / include / video_graphics.h
1 /*******************************************************************************
2  * video_graphics.h: pictures manipulation primitives
3  * (c)1999 VideoLAN
4  *******************************************************************************
5  * Includes function to compose, convert and display pictures, and also basic
6  * functions to copy pictures data or descriptors. 
7  *******************************************************************************
8  * Requires:
9  *  "config.h"
10  *  "common.h"
11  *  "mtime.h"
12  *  "video.h"
13  *******************************************************************************/
14
15 /*******************************************************************************
16  * Prototypes
17  *******************************************************************************/
18
19 /* Pictures management functions */
20 picture_t * video_CreatePicture         ( video_cfg_t *p_cfg );
21 picture_t * video_CopyPicture           ( picture_t *p_pic );
22 picture_t * video_ReplicatePicture      ( picture_t *p_pic );
23 void        video_DestroyPicture        ( picture_t *p_pic );
24
25 /* Files functions */
26 picture_t * video_ReadPicture           ( int i_file );
27
28 /* Drawing functions */
29 void        video_ClearPicture          ( picture_t *p_pic );
30 void        video_DrawPixel             ( picture_t *p_pic, int i_x, int i_y, pixel_t value );
31 void        video_DrawHLine             ( picture_t *p_pic, int i_x, int i_y, int i_width, pixel_t value );
32 void        video_DrawVLine             ( picture_t *p_pic, int i_x, int i_y, int i_height, pixel_t value );
33 void        video_DrawLine              ( picture_t *p_pic, int i_x1, int i_y1, 
34                                           int i_x2, int i_y2, pixel_t value );
35 void        video_DrawBar               ( picture_t *p_pic, int i_x, int i_y, int i_width, 
36                                           int i_height, pixel_t value );
37 void        video_DrawRectangle         ( picture_t *p_pic, int i_x, int i_y, 
38                                           int i_width, int i_height, pixel_t color );
39 void        video_DrawPicture           ( picture_t *p_pic, picture_t *p_insert, int i_x, int i_y );
40 void        video_DrawText              ( picture_t *p_pic, int i_x, int i_y, char *psz_text, 
41                                           int i_size, pixel_t color );
42
43 /* Convertion functions */
44 /* ?? rgb->pixel, pixel->rgb */
45
46 /* Low-level shared functions */
47 void        video_CopyPictureDescriptor ( picture_t *p_dest, picture_t *p_src );
48 int         video_CreatePictureBody     ( picture_t *p_pic, video_cfg_t *p_cfg );
49
50 #ifdef DEBUG
51 /* Debugging functions */
52 void        video_PrintPicture          ( picture_t *p_pic, char *psz_str );
53 #endif