FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#define BITSTREAM_READER_LE

Definition at line 25 of file escape130.c.

Function Documentation

static av_cold int escape130_decode_init ( AVCodecContext avctx)
static

Definition at line 116 of file escape130.c.

static av_cold int escape130_decode_close ( AVCodecContext avctx)
static

Definition at line 155 of file escape130.c.

static int decode_skip_count ( GetBitContext gb)
static

Definition at line 166 of file escape130.c.

Referenced by 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

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

Definition at line 41 of file escape130.c.

Referenced by escape130_decode_frame(), sao_band_filter(), and seq_parse_frame_data().

const int8_t sign_table[64][4]
static

Definition at line 42 of file escape130.c.

Referenced by escape130_decode_frame().

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().

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().

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().

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 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:179
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Definition: escape130.c:116
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: ffmpeg.c:2257
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:994

Definition at line 351 of file escape130.c.