Libav
Data Structures | Macros | Functions | Variables
vble.c File Reference

VBLE Decoder. More...

#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "get_bits.h"
#include "huffyuvdsp.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  VBLEContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

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

Variables

AVCodec 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 29 of file vble.c.

Function Documentation

◆ vble_read_reverse_unary()

static uint8_t vble_read_reverse_unary ( GetBitContext gb)
static

Definition at line 44 of file vble.c.

Referenced by vble_unpack().

◆ vble_unpack()

static int vble_unpack ( VBLEContext ctx,
GetBitContext gb 
)
static

Definition at line 63 of file vble.c.

Referenced by vble_decode_frame().

◆ vble_restore_plane()

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

Definition at line 88 of file vble.c.

Referenced by vble_decode_frame().

◆ vble_decode_frame()

static int vble_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 116 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.

Referenced by vble_decode_init().

◆ 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

AVCodec ff_vble_decoder
Initial value:
= {
.name = "vble",
.long_name = NULL_IF_CONFIG_SMALL("VBLE Lossless Codec"),
.priv_data_size = sizeof(VBLEContext),
.capabilities = AV_CODEC_CAP_DR1,
}
static int vble_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: vble.c:116
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: avconv.c:1288
static av_cold int vble_decode_close(AVCodecContext *avctx)
Definition: vble.c:168
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:582
static av_cold int vble_decode_init(AVCodecContext *avctx)
Definition: vble.c:176
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:838

Definition at line 201 of file vble.c.