Deluxe Paint Animation decoder.
More...
#include "avcodec.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures |
struct | AnmContext |
Defines |
#define | OP(buf, pixel, count) op(&dst, dst_end, (buf), buf_end, (pixel), (count), &s->x, avctx->width, s->frame.linesize[0]) |
Typedefs |
typedef struct AnmContext | AnmContext |
Functions |
static av_cold int | decode_init (AVCodecContext *avctx) |
static int | op (uint8_t **dst, const uint8_t *dst_end, const uint8_t **buf, const uint8_t *buf_end, int pixel, int count, int *x, int width, int linesize) |
| Perform decode operation.
|
static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | decode_end (AVCodecContext *avctx) |
Variables |
AVCodec | anm_decoder |
Detailed Description
Deluxe Paint Animation decoder.
Definition in file anm.c.
Define Documentation
#define OP |
( |
|
buf, |
|
|
|
pixel, |
|
|
|
count | |
|
) |
| | op(&dst, dst_end, (buf), buf_end, (pixel), (count), &s->x, avctx->width, s->frame.linesize[0]) |
Typedef Documentation
Function Documentation
Definition at line 35 of file anm.c.
static int op |
( |
uint8_t ** |
dst, |
|
|
const uint8_t * |
dst_end, |
|
|
const uint8_t ** |
buf, |
|
|
const uint8_t * |
buf_end, |
|
|
int |
pixel, |
|
|
int |
count, |
|
|
int * |
x, |
|
|
int |
width, |
|
|
int |
linesize | |
|
) |
| | [inline, static] |
Perform decode operation.
- Parameters:
-
| dst,dst_end | Destination image buffer |
| buf,buf_end | Source buffer (optional, see below) |
| pixel | Fill color (optional, see below) |
| count | Pixel count |
| x | Pointer to x-axis counter |
| width | Image width |
| linesize | Destination image buffer linesize |
- Returns:
- non-zero if destination buffer is exhausted
a copy operation is achieved when 'buf' is set a fill operation is acheived when 'buf' is null and pixel is >= 0 a skip operation is acheived when 'buf' is null and pixel is < 0
Definition at line 74 of file anm.c.
Variable Documentation
Initial value: {
"anm",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_ANM,
sizeof(AnmContext),
decode_init,
NULL,
decode_end,
decode_frame,
CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
}
Definition at line 186 of file anm.c.