xxan.c File Reference
#include "avcodec.h"
#include "libavutil/intreadwrite.h"
#include "bytestream.h"
#include "get_bits.h"
#include "libavutil/lzo.h"

Go to the source code of this file.

Data Structures

struct  XanContext
 

Macros

#define BITSTREAM_READER_LE
 

Typedefs

typedef struct XanContext XanContext
 

Functions

static av_cold int xan_decode_init (AVCodecContext *avctx)
 
static int xan_unpack_luma (XanContext *s, uint8_t *dst, const int dst_size)
 
static int xan_unpack (XanContext *s, uint8_t *dest, const int dest_len)
 
static int xan_decode_chroma (AVCodecContext *avctx, unsigned chroma_off)
 
static int xan_decode_frame_type0 (AVCodecContext *avctx)
 
static int xan_decode_frame_type1 (AVCodecContext *avctx)
 
static int xan_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int xan_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_xan_wc4_decoder
 

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 26 of file xxan.c.

Typedef Documentation

typedef struct XanContext XanContext

Function Documentation

static int xan_decode_chroma ( AVCodecContext avctx,
unsigned  chroma_off 
)
static

Definition at line 162 of file xxan.c.

Referenced by xan_decode_frame_type0(), and xan_decode_frame_type1().

static av_cold int xan_decode_end ( AVCodecContext avctx)
static

Definition at line 407 of file xxan.c.

static int xan_decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 368 of file xxan.c.

static int xan_decode_frame_type0 ( AVCodecContext avctx)
static

Definition at line 244 of file xxan.c.

Referenced by xan_decode_frame().

static int xan_decode_frame_type1 ( AVCodecContext avctx)
static

Definition at line 323 of file xxan.c.

Referenced by xan_decode_frame().

static av_cold int xan_decode_init ( AVCodecContext avctx)
static

Definition at line 41 of file xxan.c.

static int xan_unpack ( XanContext s,
uint8_t *  dest,
const int  dest_len 
)
static

Definition at line 109 of file xxan.c.

Referenced by xan_decode_chroma(), and xan_decode_frame_type0().

static int xan_unpack_luma ( XanContext s,
uint8_t *  dst,
const int  dst_size 
)
static

Definition at line 67 of file xxan.c.

Referenced by xan_decode_frame_type0(), and xan_decode_frame_type1().

Variable Documentation

AVCodec ff_xan_wc4_decoder
Initial value:
= {
.name = "xan_wc4",
.priv_data_size = sizeof(XanContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander IV / Xxan"),
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
static int xan_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: xxan.c:368
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static av_cold int xan_decode_end(AVCodecContext *avctx)
Definition: xxan.c:407
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
static av_cold int xan_decode_init(AVCodecContext *avctx)
Definition: xxan.c:41
struct XanContext XanContext

Definition at line 420 of file xxan.c.