libavcodec/cdxl.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
Include dependency graph for libavcodec/cdxl.c:

Go to the source code of this file.

Data Structures

struct  CDXLVideoContext
 

Macros

#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, AVFrame *frame)
 
static void cdxl_decode_ham6 (CDXLVideoContext *c, AVFrame *frame)
 
static void cdxl_decode_ham8 (CDXLVideoContext *c, AVFrame *frame)
 
static int cdxl_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
 
static av_cold int cdxl_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_cdxl_decoder
 

Macro Definition Documentation

#define BIT_LINE   0x80

Definition at line 33 of file libavcodec/cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BIT_PLANAR   0x00

Definition at line 30 of file libavcodec/cdxl.c.

Referenced by cdxl_decode_frame(), and import_format().

#define BYTE_LINE   0xC0

Definition at line 34 of file libavcodec/cdxl.c.

#define BYTE_PLANAR   0x40

Definition at line 32 of file libavcodec/cdxl.c.

#define CHUNKY   0x20

Definition at line 31 of file libavcodec/cdxl.c.

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 22 of file libavcodec/cdxl.c.

Function Documentation

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

Definition at line 87 of file libavcodec/cdxl.c.

Referenced by import_format().

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

Definition at line 72 of file libavcodec/cdxl.c.

Referenced by import_format().

static av_cold int cdxl_decode_end ( AVCodecContext avctx)
static

Definition at line 284 of file libavcodec/cdxl.c.

static int cdxl_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket pkt 
)
static

Definition at line 211 of file libavcodec/cdxl.c.

static void cdxl_decode_ham6 ( CDXLVideoContext c,
AVFrame frame 
)
static

Definition at line 125 of file libavcodec/cdxl.c.

Referenced by cdxl_decode_frame().

static void cdxl_decode_ham8 ( CDXLVideoContext c,
AVFrame frame 
)
static

Definition at line 168 of file libavcodec/cdxl.c.

Referenced by cdxl_decode_frame().

static av_cold int cdxl_decode_init ( AVCodecContext avctx)
static

Definition at line 49 of file libavcodec/cdxl.c.

static void cdxl_decode_rgb ( CDXLVideoContext c,
AVFrame frame 
)
static

Definition at line 116 of file libavcodec/cdxl.c.

Referenced by cdxl_decode_frame().

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

Definition at line 102 of file libavcodec/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 59 of file libavcodec/cdxl.c.

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

Variable Documentation

AVCodec ff_cdxl_decoder
Initial value:
= {
.name = "cdxl",
.priv_data_size = sizeof(CDXLVideoContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Commodore CDXL video"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
static av_cold int cdxl_decode_end(AVCodecContext *avctx)
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int cdxl_decode_init(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 293 of file libavcodec/cdxl.c.