libavcodec/anm.c File Reference

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(gb, pixel, count)   op(&dst, dst_end, (gb), (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, GetByteContext *gb, 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


Detailed Description

Deluxe Paint Animation decoder.

Definition in file anm.c.


Define Documentation

#define OP ( gb,
pixel,
count   )     op(&dst, dst_end, (gb), (pixel), (count), &s->x, avctx->width, s->frame.linesize[0])


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 179 of file anm.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 108 of file anm.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 37 of file anm.c.

static int op ( uint8_t **  dst,
const uint8_t dst_end,
GetByteContext gb,
int  pixel,
int  count,
int x,
int  width,
int  linesize 
) [inline, static]

Perform decode operation.

Parameters:
dst pointer to destination image buffer
dst_end pointer to end of destination image buffer
gb GetByteContext (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 'gb' is set a fill operation is achieved when 'gb' is null and pixel is >= 0 a skip operation is achieved when 'gb' is null and pixel is < 0

Definition at line 73 of file anm.c.

Referenced by cdxl_decode_ham6(), cdxl_decode_ham8(), core_yuv420_rgb(), mxf_read_partition_pack(), oggvorbis_decode_frame(), oggvorbis_encode_frame(), and seqvideo_decode().


Variable Documentation

Initial value:

 {
    .name           = "anm",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_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"),
}

Definition at line 187 of file anm.c.


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8