FFmpeg
Data Structures | Macros | Functions | Variables
vble.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "lossless_videodsp.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  VBLEContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static int vble_unpack (VBLEContext *ctx, GetBitContext *gb)
 
static void vble_restore_plane (VBLEContext *ctx, AVFrame *pic, GetBitContext *gb, int plane, int offset, int width, int height)
 
static int vble_decode_frame (AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
 
static av_cold int vble_decode_close (AVCodecContext *avctx)
 
static av_cold int vble_decode_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_vble_decoder
 

Detailed Description

VBLE Decoder

Definition in file vble.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 30 of file vble.c.

Function Documentation

◆ vble_unpack()

static int vble_unpack ( VBLEContext ctx,
GetBitContext gb 
)
static

Definition at line 45 of file vble.c.

Referenced by vble_decode_frame().

◆ vble_restore_plane()

static void vble_restore_plane ( VBLEContext ctx,
AVFrame pic,
GetBitContext gb,
int  plane,
int  offset,
int  width,
int  height 
)
static

Definition at line 85 of file vble.c.

Referenced by vble_decode_frame().

◆ vble_decode_frame()

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

Definition at line 117 of file vble.c.

◆ vble_decode_close()

static av_cold int vble_decode_close ( AVCodecContext avctx)
static

Definition at line 168 of file vble.c.

◆ vble_decode_init()

static av_cold int vble_decode_init ( AVCodecContext avctx)
static

Definition at line 176 of file vble.c.

Variable Documentation

◆ ff_vble_decoder

const FFCodec ff_vble_decoder
Initial value:
= {
.p.name = "vble",
CODEC_LONG_NAME("VBLE Lossless Codec"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(VBLEContext),
}

Definition at line 203 of file vble.c.

vble_decode_close
static av_cold int vble_decode_close(AVCodecContext *avctx)
Definition: vble.c:168
vble_decode_init
static av_cold int vble_decode_init(AVCodecContext *avctx)
Definition: vble.c:176
VBLEContext
Definition: vble.c:37
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
vble_decode_frame
static int vble_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
Definition: vble.c:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_VBLE
@ AV_CODEC_ID_VBLE
Definition: codec_id.h:207