FFmpeg
Data Structures | Functions | Variables
vbndec.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "internal.h"
#include "texturedsp.h"
#include "vbn.h"
#include "libavutil/imgutils.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 39 of file vbndec.c.

◆ decompress()

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

Definition at line 46 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 56 of file vbndec.c.

Variable Documentation

◆ ff_vbn_decoder

const FFCodec ff_vbn_decoder
Initial value:
= {
.p.name = "vbn",
.p.long_name = NULL_IF_CONFIG_SMALL("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:260
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
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
vbn_decode_frame
static int vbn_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: vbndec.c:56
VBNContext
Definition: vbndec.c:34
AV_CODEC_CAP_SLICE_THREADS
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:117
AV_CODEC_ID_VBN
@ AV_CODEC_ID_VBN
Definition: codec_id.h:311
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
vbn_init
static av_cold int vbn_init(AVCodecContext *avctx)
Definition: vbndec.c:39