All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
escape124.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

union  MacroBlock
union  SuperBlock
struct  CodeBook
struct  Escape124Context




static av_cold int escape124_decode_init (AVCodecContext *avctx)
 Initialize the decoder. More...
static av_cold int escape124_decode_close (AVCodecContext *avctx)
static CodeBook unpack_codebook (GetBitContext *gb, unsigned depth, unsigned size)
static unsigned decode_skip_count (GetBitContext *gb)
static MacroBlock decode_macroblock (Escape124Context *s, GetBitContext *gb, int *codebook_index, int superblock_index)
static void insert_mb_into_sb (SuperBlock *sb, MacroBlock mb, unsigned index)
static void copy_superblock (uint16_t *dest, unsigned dest_stride, uint16_t *src, unsigned src_stride)
static int escape124_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)


static const uint16_t mask_matrix []
AVCodec ff_escape124_decoder

Macro Definition Documentation


Definition at line 22 of file escape124.c.

Function Documentation

static av_cold int escape124_decode_init ( AVCodecContext avctx)

Initialize the decoder.

avctxdecoder context
0 success, negative on error

Definition at line 56 of file escape124.c.

static av_cold int escape124_decode_close ( AVCodecContext avctx)

Definition at line 72 of file escape124.c.

static CodeBook unpack_codebook ( GetBitContext gb,
unsigned  depth,
unsigned  size 

Definition at line 85 of file escape124.c.

Referenced by escape124_decode_frame().

static unsigned decode_skip_count ( GetBitContext gb)

Definition at line 117 of file escape124.c.

Referenced by escape124_decode_frame().

static MacroBlock decode_macroblock ( Escape124Context s,
GetBitContext gb,
int codebook_index,
int  superblock_index 

Definition at line 139 of file escape124.c.

Referenced by escape124_decode_frame().

static void insert_mb_into_sb ( SuperBlock sb,
MacroBlock  mb,
unsigned  index 

Definition at line 171 of file escape124.c.

Referenced by escape124_decode_frame().

static void copy_superblock ( uint16_t *  dest,
unsigned  dest_stride,
uint16_t *  src,
unsigned  src_stride 

Definition at line 180 of file escape124.c.

Referenced by escape124_decode_frame().

static int escape124_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 

Definition at line 198 of file escape124.c.

Variable Documentation

const uint16_t mask_matrix[]
Initial value:
= {0x1, 0x2, 0x10, 0x20,
0x4, 0x8, 0x40, 0x80,
0x100, 0x200, 0x1000, 0x2000,
0x400, 0x800, 0x4000, 0x8000}

Definition at line 193 of file escape124.c.

Referenced by escape124_decode_frame(), and generate_mask().

AVCodec ff_escape124_decoder
Initial value:
= {
.name = "escape124",
.long_name = NULL_IF_CONFIG_SMALL("Escape 124"),
.priv_data_size = sizeof(Escape124Context),
.capabilities = AV_CODEC_CAP_DR1,
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static av_cold int escape124_decode_close(AVCodecContext *avctx)
Definition: escape124.c:72
static av_cold int escape124_decode_init(AVCodecContext *avctx)
Initialize the decoder.
Definition: escape124.c:56
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:998
static int escape124_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: escape124.c:198

Definition at line 375 of file escape124.c.