#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]) |
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 | ff_anm_decoder |
Definition in file anm.c.
| #define OP | ( | buf, | |||
| pixel, | |||||
| count | ) | op(&dst, dst_end, (buf), buf_end, (pixel), (count), &s->x, avctx->width, s->frame.linesize[0]) |
| static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| 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.
| 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 |
Definition at line 72 of file anm.c.
Referenced by core_yuv420_rgb(), mxf_read_partition_pack(), oggvorbis_encode_frame(), and seqvideo_decode().
Initial value:
{
.name = "anm",
.type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_ANM,
.priv_data_size = sizeof(AnmContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
}
1.5.8