FFmpeg
Data Structures | Macros | Functions | Variables
escape130.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.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, AVFrame *pic, 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 FFCodec 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 117 of file escape130.c.

◆ escape130_decode_close()

static av_cold int escape130_decode_close ( AVCodecContext avctx)
static

Definition at line 153 of file escape130.c.

◆ decode_skip_count()

static int decode_skip_count ( GetBitContext gb)
static

Definition at line 164 of file escape130.c.

Referenced by escape130_decode_frame().

◆ escape130_decode_frame()

static int escape130_decode_frame ( AVCodecContext avctx,
AVFrame pic,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 190 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 43 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 103 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 105 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 110 of file escape130.c.

Referenced by escape130_decode_frame().

◆ ff_escape130_decoder

const FFCodec ff_escape130_decoder
Initial value:
= {
.p.name = "escape130",
CODEC_LONG_NAME("Escape 130"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(Escape130Context),
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 348 of file escape130.c.

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: codec_internal.h:42
AV_CODEC_ID_ESCAPE130
@ AV_CODEC_ID_ESCAPE130
Definition: codec_id.h:222
escape130_decode_frame
static int escape130_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
Definition: escape130.c:190
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
Escape130Context
Definition: escape130.c:31
escape130_decode_close
static av_cold int escape130_decode_close(AVCodecContext *avctx)
Definition: escape130.c:153
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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
escape130_decode_init
static av_cold int escape130_decode_init(AVCodecContext *avctx)
Definition: escape130.c:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201