FFmpeg
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
 

Macros

#define CDTOONS_HEADER_SIZE   44
 
#define CDTOONS_MAX_SPRITES   1200
 

Functions

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)
 

Variables

AVCodec ff_cdtoons_decoder
 

Detailed Description

CDToons video decoder.

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

Definition in file cdtoons.c.

Macro Definition Documentation

#define CDTOONS_HEADER_SIZE   44

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 
)
static

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 
)
static

Definition at line 153 of file cdtoons.c.

static av_cold int cdtoons_decode_init ( AVCodecContext avctx)
static

Definition at line 409 of file cdtoons.c.

static void cdtoons_flush ( AVCodecContext avctx)
static

Definition at line 422 of file cdtoons.c.

static av_cold int cdtoons_decode_end ( AVCodecContext avctx)
static

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
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
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.