FFmpeg
Classes | Macros | Typedefs | Variables
cdgraphics.c File Reference

CD Graphics Video Decoder. More...

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Classes

struct  CDGraphicsContext
 

Macros

#define CDG_FULL_WIDTH   300
 default screen sizes
 
#define CDG_FULL_HEIGHT   216
 
#define CDG_DISPLAY_WIDTH   294
 
#define CDG_DISPLAY_HEIGHT   204
 
#define CDG_BORDER_WIDTH   6
 
#define CDG_BORDER_HEIGHT   12
 
#define CDG_COMMAND   0x09
 masks
 
#define CDG_MASK   0x3F
 
#define CDG_INST_MEMORY_PRESET   1
 instruction codes
 
#define CDG_INST_BORDER_PRESET   2
 
#define CDG_INST_TILE_BLOCK   6
 
#define CDG_INST_SCROLL_PRESET   20
 
#define CDG_INST_SCROLL_COPY   24
 
#define CDG_INST_TRANSPARENT_COL   28
 
#define CDG_INST_LOAD_PAL_LO   30
 
#define CDG_INST_LOAD_PAL_HIGH   31
 
#define CDG_INST_TILE_BLOCK_XOR   38
 
#define CDG_PACKET_SIZE   24
 data sizes
 
#define CDG_DATA_SIZE   16
 
#define CDG_TILE_HEIGHT   12
 
#define CDG_TILE_WIDTH   6
 
#define CDG_MINIMUM_PKT_SIZE   6
 
#define CDG_MINIMUM_SCROLL_SIZE   3
 
#define CDG_HEADER_SIZE   8
 
#define CDG_PALETTE_SIZE   16
 
#define UP   2
 
#define DOWN   1
 
#define LEFT   2
 
#define RIGHT   1
 

Typedefs

typedef struct CDGraphicsContext CDGraphicsContext
 

Variables

AVCodec ff_cdgraphics_decoder
 

Detailed Description

CD Graphics Video Decoder.

Author
Michael Tison
See also
http://wiki.multimedia.cx/index.php?title=CD_Graphics
http://www.ccs.neu.edu/home/bchafy/cdb/info/cdg

Variable Documentation

§ ff_cdgraphics_decoder

AVCodec ff_cdgraphics_decoder
Initial value:
= {
.name = "cdgraphics",
.long_name = NULL_IF_CONFIG_SMALL("CD Graphics video"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_CDGRAPHICS,
.priv_data_size = sizeof(CDGraphicsContext),
.init = cdg_decode_init,
.close = cdg_decode_end,
.decode = cdg_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
Definition: cdgraphics.c:67
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959