FFmpeg
Loading...
Searching...
No Matches
xxan.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_xan_wc4_decoder
 

Function Documentation

◆ xan_decode_end()

static av_cold int xan_decode_end ( AVCodecContext * avctx)
static

Definition at line 41 of file xxan.c.

◆ xan_decode_init()

static av_cold int xan_decode_init ( AVCodecContext * avctx)
static

Definition at line 53 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 85 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 127 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 180 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 278 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 357 of file xxan.c.

Referenced by xan_decode_frame().

◆ xan_decode_frame()

static int xan_decode_frame ( AVCodecContext * avctx,
AVFrame * rframe,
int * got_frame,
AVPacket * avpkt )
static

Definition at line 402 of file xxan.c.

Variable Documentation

◆ ff_xan_wc4_decoder

const FFCodec ff_xan_wc4_decoder
Initial value:
= {
.p.name = "xan_wc4",
CODEC_LONG_NAME("Wing Commander IV / Xxan"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(XanContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_XAN_WC4
Definition codec_id.h:91
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int xan_decode_init(AVCodecContext *avctx)
Definition xan.c:87
static int xan_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition xan.c:539
static av_cold int xan_decode_end(AVCodecContext *avctx)
Definition xan.c:74

Definition at line 436 of file xxan.c.