FFmpeg
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 []
 
const 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 152 of file escape130.c.

◆ decode_skip_count()

static int decode_skip_count ( GetBitContext gb)
static

Definition at line 163 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 189 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

const 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,
}

Definition at line 348 of file escape130.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AV_CODEC_ID_ESCAPE130
@ AV_CODEC_ID_ESCAPE130
Definition: codec_id.h:220
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
Escape130Context
Definition: escape130.c:30
escape130_decode_close
static av_cold int escape130_decode_close(AVCodecContext *avctx)
Definition: escape130.c:152
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:50
escape130_decode_init
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Definition: escape130.c:116
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
escape130_decode_frame
static int escape130_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: escape130.c:189