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 115 of file escape130.c.

static av_cold int escape130_decode_close ( AVCodecContext avctx)
static

Definition at line 154 of file escape130.c.

static int decode_skip_count ( GetBitContext gb)
static

Definition at line 165 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 191 of file escape130.c.

Variable Documentation

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

Definition at line 40 of file escape130.c.

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

const int8_t sign_table[64][4]
static

Definition at line 41 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 101 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 103 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 108 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:154
static int escape130_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: escape130.c:191
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:522
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Definition: escape130.c:115
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:856

Definition at line 350 of file escape130.c.