libavcodec/cdxl.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  CDXLVideoContext

Defines

#define BIT_PLANAR   0x00
#define CHUNKY   0x20
#define BYTE_PLANAR   0x40
#define BIT_LINE   0x80
#define BYTE_LINE   0xC0

Functions

static av_cold int cdxl_decode_init (AVCodecContext *avctx)
static void import_palette (CDXLVideoContext *c, uint32_t *new_palette)
static void bitplanar2chunky (CDXLVideoContext *c, int linesize, uint8_t *out)
static void bitline2chunky (CDXLVideoContext *c, int linesize, uint8_t *out)
static void import_format (CDXLVideoContext *c, int linesize, uint8_t *out)
static void cdxl_decode_rgb (CDXLVideoContext *c)
static void cdxl_decode_ham6 (CDXLVideoContext *c)
static void cdxl_decode_ham8 (CDXLVideoContext *c)
static int cdxl_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt)
static av_cold int cdxl_decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_cdxl_decoder


Define Documentation

#define BIT_LINE   0x80

Definition at line 30 of file cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BIT_PLANAR   0x00

Definition at line 27 of file cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BYTE_LINE   0xC0

Definition at line 31 of file cdxl.c.

#define BYTE_PLANAR   0x40

Definition at line 29 of file cdxl.c.

#define CHUNKY   0x20

Definition at line 28 of file cdxl.c.


Function Documentation

static void bitline2chunky ( CDXLVideoContext c,
int  linesize,
uint8_t out 
) [static]

Definition at line 86 of file cdxl.c.

Referenced by import_format().

static void bitplanar2chunky ( CDXLVideoContext c,
int  linesize,
uint8_t out 
) [static]

Definition at line 71 of file cdxl.c.

Referenced by import_format().

static av_cold int cdxl_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 289 of file cdxl.c.

static int cdxl_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket pkt 
) [static]

Definition at line 209 of file cdxl.c.

static void cdxl_decode_ham6 ( CDXLVideoContext c  )  [static]

Definition at line 123 of file cdxl.c.

Referenced by cdxl_decode_frame().

static void cdxl_decode_ham8 ( CDXLVideoContext c  )  [static]

Definition at line 166 of file cdxl.c.

Referenced by cdxl_decode_frame().

static av_cold int cdxl_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 47 of file cdxl.c.

static void cdxl_decode_rgb ( CDXLVideoContext c  )  [static]

Definition at line 115 of file cdxl.c.

Referenced by cdxl_decode_frame().

static void import_format ( CDXLVideoContext c,
int  linesize,
uint8_t out 
) [static]

Definition at line 101 of file cdxl.c.

Referenced by cdxl_decode_ham6(), cdxl_decode_ham8(), and cdxl_decode_rgb().

static void import_palette ( CDXLVideoContext c,
uint32_t *  new_palette 
) [static]

Definition at line 58 of file cdxl.c.

Referenced by cdxl_decode_ham6(), cdxl_decode_ham8(), and cdxl_decode_rgb().


Variable Documentation

Initial value:

 {
    .name           = "cdxl",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_CDXL,
    .priv_data_size = sizeof(CDXLVideoContext),
    .init           = cdxl_decode_init,
    .close          = cdxl_decode_end,
    .decode         = cdxl_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Commodore CDXL video"),
}

Definition at line 300 of file cdxl.c.


Generated on Fri Oct 26 02:47:55 2012 for FFmpeg by  doxygen 1.5.8