FFmpeg
Data Structures | Functions | Variables
vbndec.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "texturedsp.h"
#include "vbn.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"

Go to the source code of this file.

Data Structures

struct  VBNContext
 

Functions

static av_cold int vbn_init (AVCodecContext *avctx)
 
static int decompress (AVCodecContext *avctx, GetByteContext *gb, int compression, uint8_t **outbuf)
 
static int vbn_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_vbn_decoder
 

Detailed Description

Vizrt Binary Image decoder

Definition in file vbndec.c.

Function Documentation

◆ vbn_init()

static av_cold int vbn_init ( AVCodecContext avctx)
static

Definition at line 40 of file vbndec.c.

◆ decompress()

static int decompress ( AVCodecContext avctx,
GetByteContext gb,
int  compression,
uint8_t **  outbuf 
)
static

Definition at line 47 of file vbndec.c.

Referenced by vbn_decode_frame().

◆ vbn_decode_frame()

static int vbn_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 57 of file vbndec.c.

Variable Documentation

◆ ff_vbn_decoder

const FFCodec ff_vbn_decoder
Initial value:
= {
.p.name = "vbn",
CODEC_LONG_NAME("Vizrt Binary Image"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_VBN,
.init = vbn_init,
.priv_data_size = sizeof(VBNContext),
}

Definition at line 176 of file vbndec.c.

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_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
vbn_decode_frame
static int vbn_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: vbndec.c:57
VBNContext
Definition: vbndec.c:35
AV_CODEC_CAP_SLICE_THREADS
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:114
AV_CODEC_ID_VBN
@ AV_CODEC_ID_VBN
Definition: codec_id.h:316
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
vbn_init
static av_cold int vbn_init(AVCodecContext *avctx)
Definition: vbndec.c:40