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 UNCHECKED_BITSTREAM_READER   1
#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 32 of file cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BIT_PLANAR   0x00

Definition at line 29 of file cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BYTE_LINE   0xC0

Definition at line 33 of file cdxl.c.

#define BYTE_PLANAR   0x40

Definition at line 31 of file cdxl.c.

#define CHUNKY   0x20

Definition at line 30 of file cdxl.c.

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 22 of file cdxl.c.


Function Documentation

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

Definition at line 88 of file cdxl.c.

Referenced by import_format().

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

Definition at line 73 of file cdxl.c.

Referenced by import_format().

static av_cold int cdxl_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 291 of file cdxl.c.

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

Definition at line 211 of file cdxl.c.

static void cdxl_decode_ham6 ( CDXLVideoContext c  )  [static]

Definition at line 125 of file cdxl.c.

Referenced by cdxl_decode_frame().

static void cdxl_decode_ham8 ( CDXLVideoContext c  )  [static]

Definition at line 168 of file cdxl.c.

Referenced by cdxl_decode_frame().

static av_cold int cdxl_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 49 of file cdxl.c.

static void cdxl_decode_rgb ( CDXLVideoContext c  )  [static]

Definition at line 117 of file cdxl.c.

Referenced by cdxl_decode_frame().

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

Definition at line 103 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 60 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             = AV_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 302 of file cdxl.c.


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