FFmpeg
Data Structures | Functions | Variables
pictordec.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "cga_data.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  PicContext
 

Functions

static void picmemset_8bpp (PicContext *s, AVFrame *frame, int value, int run, int *x, int *y)
 
static void picmemset (PicContext *s, AVFrame *frame, unsigned value, int run, int *x, int *y, int *plane, int bits_per_plane)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

static const uint8_t cga_mode45_index [6][4]
 
const FFCodec ff_pictor_decoder
 

Detailed Description

Pictor/PC Paint decoder

Definition in file pictordec.c.

Function Documentation

◆ picmemset_8bpp()

static void picmemset_8bpp ( PicContext s,
AVFrame frame,
int  value,
int  run,
int *  x,
int *  y 
)
static

Definition at line 41 of file pictordec.c.

Referenced by decode_frame().

◆ picmemset()

static void picmemset ( PicContext s,
AVFrame frame,
unsigned  value,
int  run,
int *  x,
int *  y,
int *  plane,
int  bits_per_plane 
)
static

Definition at line 62 of file pictordec.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 123 of file pictordec.c.

Variable Documentation

◆ cga_mode45_index

const uint8_t cga_mode45_index[6][4]
static
Initial value:
= {
[0] = { 0, 3, 5, 7 },
[1] = { 0, 2, 4, 6 },
[2] = { 0, 3, 4, 7 },
[3] = { 0, 11, 13, 15 },
[4] = { 0, 10, 12, 14 },
[5] = { 0, 11, 12, 15 },
}

Definition at line 114 of file pictordec.c.

Referenced by decode_frame().

◆ ff_pictor_decoder

const FFCodec ff_pictor_decoder
Initial value:
= {
.p.name = "pictor",
CODEC_LONG_NAME("Pictor/PC Paint"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_DR1,
.priv_data_size = sizeof(PicContext),
}

Definition at line 304 of file pictordec.c.

PicContext
Definition: pictordec.c:35
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_ID_PICTOR
@ AV_CODEC_ID_PICTOR
Definition: codec_id.h:193
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: pictordec.c:123