1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * CGA/EGA/VGA ROM data 3cabdff1aSopenharmony_ci * 4cabdff1aSopenharmony_ci * This file is part of FFmpeg. 5cabdff1aSopenharmony_ci * 6cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 7cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 8cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 9cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 10cabdff1aSopenharmony_ci * 11cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 12cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 13cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14cabdff1aSopenharmony_ci * Lesser General Public License for more details. 15cabdff1aSopenharmony_ci * 16cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 17cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 18cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19cabdff1aSopenharmony_ci */ 20cabdff1aSopenharmony_ci 21cabdff1aSopenharmony_ci/** 22cabdff1aSopenharmony_ci * @file 23cabdff1aSopenharmony_ci * CGA/EGA/VGA ROM data 24cabdff1aSopenharmony_ci * @note fonts are in libavutil/xga_font_data.[ch] 25cabdff1aSopenharmony_ci */ 26cabdff1aSopenharmony_ci 27cabdff1aSopenharmony_ci#ifndef AVCODEC_CGA_DATA_H 28cabdff1aSopenharmony_ci#define AVCODEC_CGA_DATA_H 29cabdff1aSopenharmony_ci 30cabdff1aSopenharmony_ci#include <stdint.h> 31cabdff1aSopenharmony_ci 32cabdff1aSopenharmony_ciextern const uint32_t ff_cga_palette[16]; 33cabdff1aSopenharmony_ciextern const uint32_t ff_ega_palette[64]; 34cabdff1aSopenharmony_ci 35cabdff1aSopenharmony_ci/** 36cabdff1aSopenharmony_ci * Draw CGA/EGA/VGA font to 8-bit pixel buffer 37cabdff1aSopenharmony_ci * 38cabdff1aSopenharmony_ci * @param dst Destination pixel buffer 39cabdff1aSopenharmony_ci * @param linesize Linesize (pixels) 40cabdff1aSopenharmony_ci * @param font Font table. We assume font width is always 8 pixels wide. 41cabdff1aSopenharmony_ci * @param font_height Font height (pixels) 42cabdff1aSopenharmony_ci * @param fg,bg Foreground and background palette index 43cabdff1aSopenharmony_ci * @param ch Character to draw 44cabdff1aSopenharmony_ci */ 45cabdff1aSopenharmony_civoid ff_draw_pc_font(uint8_t *dst, int linesize, const uint8_t *font, int font_height, int ch, int fg, int bg); 46cabdff1aSopenharmony_ci 47cabdff1aSopenharmony_ci#endif /* AVCODEC_CGA_DATA_H */ 48