FFmpeg
Data Structures | Functions | Variables
xxan.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  XanContext
 

Functions

static av_cold int xan_decode_end (AVCodecContext *avctx)
 
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 *got_frame, AVPacket *avpkt)
 

Variables

const AVCodec ff_xan_wc4_decoder
 

Function Documentation

◆ xan_decode_end()

static av_cold int xan_decode_end ( AVCodecContext avctx)
static

Definition at line 40 of file xxan.c.

◆ xan_decode_init()

static av_cold int xan_decode_init ( AVCodecContext avctx)
static

Definition at line 52 of file xxan.c.

◆ xan_unpack_luma()

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

Definition at line 84 of file xxan.c.

Referenced by xan_decode_frame_type0(), and xan_decode_frame_type1().

◆ xan_unpack()

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

Definition at line 126 of file xxan.c.

Referenced by xan_decode_chroma(), and xan_decode_frame_type0().

◆ xan_decode_chroma()

static int xan_decode_chroma ( AVCodecContext avctx,
unsigned  chroma_off 
)
static

Definition at line 179 of file xxan.c.

Referenced by xan_decode_frame_type0(), and xan_decode_frame_type1().

◆ xan_decode_frame_type0()

static int xan_decode_frame_type0 ( AVCodecContext avctx)
static

Definition at line 277 of file xxan.c.

Referenced by xan_decode_frame().

◆ xan_decode_frame_type1()

static int xan_decode_frame_type1 ( AVCodecContext avctx)
static

Definition at line 356 of file xxan.c.

Referenced by xan_decode_frame().

◆ xan_decode_frame()

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

Definition at line 401 of file xxan.c.

Variable Documentation

◆ ff_xan_wc4_decoder

const AVCodec ff_xan_wc4_decoder
Initial value:
= {
.name = "xan_wc4",
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander IV / Xxan"),
.priv_data_size = sizeof(XanContext),
.close = xan_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 436 of file xxan.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
init
static int init
Definition: av_tx.c:47
xan_decode_end
static av_cold int xan_decode_end(AVCodecContext *avctx)
Definition: xxan.c:40
xan_decode_frame
static int xan_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: xxan.c:401
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
xan_decode_init
static av_cold int xan_decode_init(AVCodecContext *avctx)
Definition: xxan.c:52
AV_CODEC_ID_XAN_WC4
@ AV_CODEC_ID_XAN_WC4
Definition: codec_id.h:91
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
XanContext
Definition: xan.c:53
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:50
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201