annotate cga_data.h @ 12297:be9129c5503e libavcodec

Fix compilation in x86_64. I broke it with r24580.
author vitor
date Thu, 29 Jul 2010 22:45:21 +0000
parents 0f0035942790
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
1 /*
12182
a5c136008851 Add ff_vga16_font
pross
parents: 11854
diff changeset
2 * CGA/EGA/VGA ROM data
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
3 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
4 * This file is part of FFmpeg.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
5 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
6 * FFmpeg is free software; you can redistribute it and/or
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
9 * version 2.1 of the License, or (at your option) any later version.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
10 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
11 * FFmpeg is distributed in the hope that it will be useful,
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
14 * Lesser General Public License for more details.
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
15 *
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
17 * License along with FFmpeg; if not, write to the Free Software
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
19 */
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
20
12189
0f0035942790 Add doxygen @file comment block
pross
parents: 12185
diff changeset
21 /**
0f0035942790 Add doxygen @file comment block
pross
parents: 12185
diff changeset
22 * @file
0f0035942790 Add doxygen @file comment block
pross
parents: 12185
diff changeset
23 * CGA/EGA/VGA ROM data
0f0035942790 Add doxygen @file comment block
pross
parents: 12185
diff changeset
24 */
0f0035942790 Add doxygen @file comment block
pross
parents: 12185
diff changeset
25
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
26 #ifndef AVCODEC_CGA_DATA_H
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
27 #define AVCODEC_CGA_DATA_H
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
28
9973
60d6fa47988b Add missing stdint.h #include to fix 'make checkheaders'.
diego
parents: 9615
diff changeset
29 #include <stdint.h>
60d6fa47988b Add missing stdint.h #include to fix 'make checkheaders'.
diego
parents: 9615
diff changeset
30
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
31 extern const uint8_t ff_cga_font[2048];
12182
a5c136008851 Add ff_vga16_font
pross
parents: 11854
diff changeset
32 extern const uint8_t ff_vga16_font[4096];
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
33 extern const uint32_t ff_cga_palette[16];
11854
8a393a20349f Add ff_ega_palette
pross
parents: 9973
diff changeset
34 extern const uint32_t ff_ega_palette[64];
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
35
12183
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
36 /**
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
37 * Draw CGA/EGA/VGA font to 8-bit pixel buffer
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
38 *
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
39 * @param dst Destination pixel buffer
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
40 * @param linesize Linesize (pixels)
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
41 * @param font Font table. We assume font width is always 8 pixels wide.
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
42 * @param font_height Font height (pixels)
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
43 * @param fg,bg Foreground and background palette index
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
44 * @param ch Character to draw
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
45 */
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
46 void ff_draw_pc_font(uint8_t *dst, int linesize, const uint8_t *font, int font_height, int ch, int fg, int bg);
4fccdee316ea Add ff_draw_pc_font()
pross
parents: 12182
diff changeset
47
9615
5b75e6e974c7 Add CGA and palette data for 8088flex TMV decoder.
stefano
parents:
diff changeset
48 #endif