FFmpeg
Loading...
Searching...
No Matches
vbndec.c File Reference

Vizrt Binary Image decoder. More...

#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),
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition codec.h:102
@ AV_CODEC_ID_VBN
Definition codec_id.h:307
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int vbn_init(AVCodecContext *avctx)
Definition vbndec.c:40
static int vbn_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition vbndec.c:57

Definition at line 176 of file vbndec.c.