FFmpeg  4.0
Data Structures | Macros | Functions | Variables
escape130.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Escape130Context
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static av_cold int escape130_decode_init (AVCodecContext *avctx)
 
static av_cold int escape130_decode_close (AVCodecContext *avctx)
 
static int decode_skip_count (GetBitContext *gb)
 
static int escape130_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

static const uint8_t offset_table [] = { 2, 4, 10, 20 }
 
static const int8_t sign_table [64][4]
 
static const int8_t luma_adjust [] = { -4, -3, -2, -1, 1, 2, 3, 4 }
 
static const int8_t chroma_adjust [2][8]
 
static const uint8_t chroma_vals []
 
AVCodec ff_escape130_decoder
 

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 25 of file escape130.c.

Function Documentation

◆ escape130_decode_init()

static av_cold int escape130_decode_init ( AVCodecContext avctx)
static

Definition at line 116 of file escape130.c.

◆ escape130_decode_close()

static av_cold int escape130_decode_close ( AVCodecContext avctx)
static

Definition at line 155 of file escape130.c.

◆ decode_skip_count()

static int decode_skip_count ( GetBitContext gb)
static

Definition at line 166 of file escape130.c.

Referenced by escape130_decode_frame().

◆ escape130_decode_frame()

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

Definition at line 192 of file escape130.c.

Variable Documentation

◆ offset_table

const uint8_t offset_table[] = { 2, 4, 10, 20 }
static

◆ sign_table

const int8_t sign_table[64][4]
static

Definition at line 42 of file escape130.c.

Referenced by escape130_decode_frame().

◆ luma_adjust

const int8_t luma_adjust[] = { -4, -3, -2, -1, 1, 2, 3, 4 }
static

Definition at line 102 of file escape130.c.

Referenced by escape130_decode_frame().

◆ chroma_adjust

const int8_t chroma_adjust[2][8]
static
Initial value:
= {
{ 1, 1, 0, -1, -1, -1, 0, 1 },
{ 0, 1, 1, 1, 0, -1, -1, -1 }
}

Definition at line 104 of file escape130.c.

Referenced by escape130_decode_frame().

◆ chroma_vals

const uint8_t chroma_vals[]
static
Initial value:
= {
20, 28, 36, 44, 52, 60, 68, 76,
84, 92, 100, 106, 112, 116, 120, 124,
128, 132, 136, 140, 144, 150, 156, 164,
172, 180, 188, 196, 204, 212, 220, 228
}

Definition at line 109 of file escape130.c.

Referenced by escape130_decode_frame().

◆ ff_escape130_decoder

AVCodec ff_escape130_decoder
Initial value:
= {
.name = "escape130",
.long_name = NULL_IF_CONFIG_SMALL("Escape 130"),
.priv_data_size = sizeof(Escape130Context),
.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
static av_cold int escape130_decode_close(AVCodecContext *avctx)
Definition: escape130.c:155
static int escape130_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: escape130.c:192
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Definition: escape130.c:116
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 351 of file escape130.c.