#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
Go to the source code of this file.
|
static int | can_safely_read (GetBitContext *gb, uint64_t bits) |
|
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) |
|
#define BITSTREAM_READER_LE |
static void copy_superblock |
( |
uint16_t * |
dest, |
|
|
unsigned |
dest_stride, |
|
|
uint16_t * |
src, |
|
|
unsigned |
src_stride |
|
) |
| |
|
static |
Initialize the decoder.
- Parameters
-
- Returns
- 0 success, negative on error
Definition at line 61 of file escape124.c.
Initial value:= {
.name = "escape124",
}
static av_cold int init(AVCodecContext *avctx)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int escape124_decode_close(AVCodecContext *avctx)
struct Escape124Context Escape124Context
static void close(AVCodecParserContext *s)
static av_cold int escape124_decode_init(AVCodecContext *avctx)
Initialize the decoder.
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static int escape124_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition at line 369 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 194 of file escape124.c.
Referenced by escape124_decode_frame().