1 /*******************************************************************************
2 * video_graphics.h: pictures manipulation primitives
4 *******************************************************************************
5 * Includes function to compose, convert and display pictures, and also basic
6 * functions to copy pictures data or descriptors.
7 *******************************************************************************
13 *******************************************************************************/
15 /*******************************************************************************
17 *******************************************************************************/
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 );
26 picture_t * video_ReadPicture ( int i_file );
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 );
43 /* Convertion functions */
44 /* ?? rgb->pixel, pixel->rgb */
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 );
51 /* Debugging functions */
52 void video_PrintPicture ( picture_t *p_pic, char *psz_str );