libavcodec/cga_data.c File Reference

CGA/EGA/VGA ROM data. More...

#include <stdint.h>
#include "cga_data.h"

Go to the source code of this file.

Functions

void ff_draw_pc_font (uint8_t *dst, int linesize, const uint8_t *font, int font_height, int ch, int fg, int bg)
 Draw CGA/EGA/VGA font to 8-bit pixel buffer.

Variables

const uint8_t ff_cga_font [2048]
const uint8_t ff_vga16_font [4096]
const uint32_t ff_cga_palette [16]
const uint32_t ff_ega_palette [64]


Detailed Description

CGA/EGA/VGA ROM data.

Definition in file cga_data.c.


Function Documentation

void ff_draw_pc_font ( uint8_t *  dst,
int  linesize,
const uint8_t *  font,
int  font_height,
int  ch,
int  fg,
int  bg 
)

Draw CGA/EGA/VGA font to 8-bit pixel buffer.

Parameters:
dst Destination pixel buffer
linesize Linesize (pixels)
font Font table. We assume font width is always 8 pixels wide.
font_height Font height (pixels)
fg,bg Foreground and background palette index
ch Character to draw

Definition at line 435 of file cga_data.c.

Referenced by draw_char(), and tmv_decode_frame().


Variable Documentation

const uint8_t ff_cga_font[2048]

Definition at line 29 of file cga_data.c.

Referenced by execute_code(), and tmv_decode_frame().

const uint32_t ff_cga_palette[16]

Initial value:

 {
    0x000000, 0x0000AA, 0x00AA00, 0x00AAAA, 0xAA0000, 0xAA00AA, 0xAA5500, 0xAAAAAA,
    0x555555, 0x5555FF, 0x55FF55, 0x55FFFF, 0xFF5555, 0xFF55FF, 0xFFFF55, 0xFFFFFF,
}

Definition at line 419 of file cga_data.c.

Referenced by decode_frame(), execute_code(), and tmv_decode_frame().

const uint32_t ff_ega_palette[64]

Initial value:

 {
    0x000000, 0x0000AA, 0x00AA00, 0x00AAAA, 0xAA0000, 0xAA00AA, 0xAAAA00, 0xAAAAAA,
    0x000055, 0x0000FF, 0x00AA55, 0x00AAFF, 0xAA0055, 0xAA00FF, 0xAAAA55, 0xAAAAFF,
    0x005500, 0x0055AA, 0x00FF00, 0x00FFAA, 0xAA5500, 0xAA55AA, 0xAAFF00, 0xAAFFAA,
    0x005555, 0x0055FF, 0x00FF55, 0x00FFFF, 0xAA5555, 0xAA55FF, 0xAAFF55, 0xAAFFFF,
    0x550000, 0x5500AA, 0x55AA00, 0x55AAAA, 0xFF0000, 0xFF00AA, 0xFFAA00, 0xFFAAAA,
    0x550055, 0x5500FF, 0x55AA55, 0x55AAFF, 0xFF0055, 0xFF00FF, 0xFFAA55, 0xFFAAFF,
    0x555500, 0x5555AA, 0x55FF00, 0x55FFAA, 0xFF5500, 0xFF55AA, 0xFFFF00, 0xFFFFAA,
    0x555555, 0x5555FF, 0x55FF55, 0x55FFFF, 0xFF5555, 0xFF55FF, 0xFFFF55, 0xFFFFFF
}

Definition at line 424 of file cga_data.c.

Referenced by decode_frame().

const uint8_t ff_vga16_font[4096]

Definition at line 160 of file cga_data.c.

Referenced by decode_init(), and execute_code().


Generated on Fri Oct 26 02:38:15 2012 for FFmpeg by  doxygen 1.5.8