Data Structures | Macros | Functions | Variables
cdtoons.c File Reference

CDToons video decoder. More...

#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  CDToonsSprite
struct  CDToonsContext


#define CDTOONS_MAX_SPRITES   1200


static int cdtoons_render_sprite (AVCodecContext *avctx, const uint8_t *data, uint32_t data_size, int dst_x, int dst_y, int width, int height)
static int cdtoons_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int cdtoons_decode_init (AVCodecContext *avctx)
static void cdtoons_flush (AVCodecContext *avctx)
static av_cold int cdtoons_decode_end (AVCodecContext *avctx)


AVCodec ff_cdtoons_decoder

Detailed Description

CDToons video decoder.

Alyssa Milburn amilb.nosp@m.urn@.nosp@m.zall..nosp@m.org

Definition in file cdtoons.c.

Macro Definition Documentation


Definition at line 36 of file cdtoons.c.

Referenced by cdtoons_decode_frame().

#define CDTOONS_MAX_SPRITES   1200

Definition at line 37 of file cdtoons.c.

Referenced by cdtoons_decode_end(), cdtoons_decode_frame(), and cdtoons_flush().

Function Documentation

static int cdtoons_render_sprite ( AVCodecContext avctx,
const uint8_t data,
uint32_t  data_size,
int  dst_x,
int  dst_y,
int  width,
int  height 

Definition at line 58 of file cdtoons.c.

Referenced by cdtoons_decode_frame().

static int cdtoons_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 

Definition at line 153 of file cdtoons.c.

static av_cold int cdtoons_decode_init ( AVCodecContext avctx)

Definition at line 409 of file cdtoons.c.

static void cdtoons_flush ( AVCodecContext avctx)

Definition at line 422 of file cdtoons.c.

static av_cold int cdtoons_decode_end ( AVCodecContext avctx)

Definition at line 431 of file cdtoons.c.

Variable Documentation

AVCodec ff_cdtoons_decoder
Initial value:
= {
.name = "cdtoons",
.long_name = NULL_IF_CONFIG_SMALL("CDToons video"),
.priv_data_size = sizeof(CDToonsContext),
.capabilities = AV_CODEC_CAP_DR1,
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int cdtoons_decode_end(AVCodecContext *avctx)
Definition: cdtoons.c:431
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
static void cdtoons_flush(AVCodecContext *avctx)
Definition: cdtoons.c:422
static int cdtoons_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: cdtoons.c:153
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50
static av_cold int cdtoons_decode_init(AVCodecContext *avctx)
Definition: cdtoons.c:409

Definition at line 445 of file cdtoons.c.