#include "avcodec.h"
#include "get_bits.h"
Go to the source code of this file.
Data Structures | |
union | MacroBlock |
union | SuperBlock |
struct | CodeBook |
struct | Escape124Context |
Defines | |
#define | ALT_BITSTREAM_READER_LE |
Functions | |
static int | can_safely_read (GetBitContext *gb, int bits) |
static av_cold int | escape124_decode_init (AVCodecContext *avctx) |
Initialize the decoder. | |
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 *data_size, AVPacket *avpkt) |
Decode a single frame. | |
Variables | |
static const uint16_t | mask_matrix [] |
AVCodec | escape124_decoder |
#define ALT_BITSTREAM_READER_LE |
Definition at line 24 of file escape124.c.
static int can_safely_read | ( | GetBitContext * | gb, | |
int | bits | |||
) | [static] |
Definition at line 51 of file escape124.c.
Referenced by decode_skip_count(), escape124_decode_frame(), and unpack_codebook().
static void copy_superblock | ( | uint16_t * | dest, | |
unsigned | dest_stride, | |||
uint16_t * | src, | |||
unsigned | src_stride | |||
) | [static] |
static MacroBlock decode_macroblock | ( | Escape124Context * | s, | |
GetBitContext * | gb, | |||
int * | codebook_index, | |||
int | superblock_index | |||
) | [static] |
static unsigned decode_skip_count | ( | GetBitContext * | gb | ) | [static] |
static av_cold int escape124_decode_close | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 72 of file escape124.c.
static int escape124_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
Decode a single frame.
avctx | decoder context | |
data | decoded frame | |
data_size | size of the decoded frame | |
buf | input buffer | |
buf_size | input buffer size |
Definition at line 207 of file escape124.c.
static av_cold int escape124_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Initialize the decoder.
avctx | decoder context |
Definition at line 60 of file escape124.c.
static void insert_mb_into_sb | ( | SuperBlock * | sb, | |
MacroBlock | mb, | |||
unsigned | index | |||
) | [static] |
static CodeBook unpack_codebook | ( | GetBitContext * | gb, | |
unsigned | depth, | |||
unsigned | size | |||
) | [static] |
Initial value:
{ "escape124", AVMEDIA_TYPE_VIDEO, CODEC_ID_ESCAPE124, sizeof(Escape124Context), escape124_decode_init, NULL, escape124_decode_close, escape124_decode_frame, CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Escape 124"), }
Definition at line 375 of file escape124.c.
const uint16_t mask_matrix[] [static] |
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().