libavcodec/c93.c File Reference

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

Go to the source code of this file.

Data Structures

struct  C93DecoderContext

Defines

#define WIDTH   320
#define HEIGHT   192
#define C93_HAS_PALETTE   0x01
#define C93_FIRST_FRAME   0x02

Enumerations

enum  C93BlockType {
  C93_8X8_FROM_PREV = 0x02, C93_4X4_FROM_PREV = 0x06, C93_4X4_FROM_CURR = 0x07, C93_8X8_2COLOR = 0x08,
  C93_4X4_2COLOR = 0x0A, C93_4X4_4COLOR_GRP = 0x0B, C93_4X4_4COLOR = 0x0D, C93_NOOP = 0x0E,
  C93_8X8_INTRA = 0x0F
}

Functions

static av_cold int decode_init (AVCodecContext *avctx)
static av_cold int decode_end (AVCodecContext *avctx)
static int copy_block (AVCodecContext *avctx, uint8_t *to, uint8_t *from, int offset, int height, int stride)
static void draw_n_color (uint8_t *out, int stride, int width, int height, int bpp, uint8_t cols[4], uint8_t grps[4], uint32_t col)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)

Variables

AVCodec ff_c93_decoder


Define Documentation

#define C93_FIRST_FRAME   0x02

Definition at line 46 of file c93.c.

Referenced by decode_frame(), and read_packet().

#define C93_HAS_PALETTE   0x01

Definition at line 45 of file c93.c.

Referenced by decode_frame(), and read_packet().

#define HEIGHT   192

Definition at line 43 of file c93.c.

Referenced by config_props(), copy_block(), decode_frame(), request_frame(), and test_motion().

#define WIDTH   320

Definition at line 42 of file c93.c.

Referenced by config_props(), copy_block(), decode_frame(), request_frame(), and test_motion().


Enumeration Type Documentation

Enumerator:
C93_8X8_FROM_PREV 
C93_4X4_FROM_PREV 
C93_4X4_FROM_CURR 
C93_8X8_2COLOR 
C93_4X4_2COLOR 
C93_4X4_4COLOR_GRP 
C93_4X4_4COLOR 
C93_NOOP 
C93_8X8_INTRA 

Definition at line 30 of file c93.c.


Function Documentation

static int copy_block ( AVCodecContext avctx,
uint8_t to,
uint8_t from,
int  offset,
int  height,
int  stride 
) [inline, static]

Definition at line 69 of file c93.c.

Referenced by codec2subblock(), and decode_frame().

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 58 of file c93.c.

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

Definition at line 119 of file c93.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 48 of file c93.c.

static void draw_n_color ( uint8_t out,
int  stride,
int  width,
int  height,
int  bpp,
uint8_t  cols[4],
uint8_t  grps[4],
uint32_t  col 
) [inline, static]

Definition at line 103 of file c93.c.

Referenced by decode_frame().


Variable Documentation

Initial value:

 {
    .name           = "c93",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_C93,
    .priv_data_size = sizeof(C93DecoderContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Interplay C93"),
}

Definition at line 251 of file c93.c.


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