comparison cga_data.h @ 12183:4fccdee316ea libavcodec

Add ff_draw_pc_font()
author pross
date Sun, 18 Jul 2010 07:44:38 +0000
parents a5c136008851
children a5ebc95870a2
comparison
equal deleted inserted replaced
12182:a5c136008851 12183:4fccdee316ea
26 extern const uint8_t ff_cga_font[2048]; 26 extern const uint8_t ff_cga_font[2048];
27 extern const uint8_t ff_vga16_font[4096]; 27 extern const uint8_t ff_vga16_font[4096];
28 extern const uint32_t ff_cga_palette[16]; 28 extern const uint32_t ff_cga_palette[16];
29 extern const uint32_t ff_ega_palette[64]; 29 extern const uint32_t ff_ega_palette[64];
30 30
31 /**
32 * Draw CGA/EGA/VGA font to 8-bit pixel buffer
33 *
34 * @param dst Destination pixel buffer
35 * @param linesize Linesize (pixels)
36 * @param font Font table. We assume font width is always 8 pixels wide.
37 * @param font_height Font height (pixels)
38 * @param fg,bg Foreground and background palette index
39 * @param ch Character to draw
40 */
41 void ff_draw_pc_font(uint8_t *dst, int linesize, const uint8_t *font, int font_height, int ch, int fg, int bg);
42
31 #endif 43 #endif