42 const uint8_t *
src = avpkt->
data;
45 unsigned char_cols = avctx->
width >> 3;
46 unsigned char_rows = avctx->
height >> 3;
47 unsigned x, y, fg, bg,
c;
50 if (avpkt->
size < 2*char_rows*char_cols) {
52 "Input buffer too small, truncated sample?\n");
65 for (y = 0; y < char_rows; y++) {
66 for (x = 0; x < char_cols; x++) {
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
const FFCodec ff_tmv_decoder
Libavcodec external API header.
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.
const uint32_t ff_cga_palette[16]
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_cold int tmv_decode_init(AVCodecContext *avctx)
static int tmv_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
common internal API header
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
This structure describes decoded (raw) audio or video data.
This structure stores compressed data.
const uint8_t * avpriv_cga_font_get(void)
static const uint8_t cga_font[2048]
CGA/EGA/VGA ROM font data.