FFmpeg
Data Structures | Functions | Variables
bethsoftvideo.c File Reference

Bethesda Softworks VID Video Decoder. More...

#include "libavutil/common.h"
#include "avcodec.h"
#include "bethsoftvideo.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  BethsoftvidContext
 

Functions

static av_cold int bethsoftvid_decode_init (AVCodecContext *avctx)
 
static int set_palette (BethsoftvidContext *ctx, GetByteContext *g)
 
static int bethsoftvid_decode_frame (AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 
static av_cold int bethsoftvid_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_bethsoftvid_decoder
 

Detailed Description

Bethesda Softworks VID Video Decoder.

Author
Nicholas Tung [ntung (at. ntung com] (2007-03)
See also
http://wiki.multimedia.cx/index.php?title=Bethsoft_VID
http://www.svatopluk.com/andux/docs/dfvid.html

Definition in file bethsoftvideo.c.

Function Documentation

◆ bethsoftvid_decode_init()

static av_cold int bethsoftvid_decode_init ( AVCodecContext avctx)
static

Definition at line 42 of file bethsoftvideo.c.

◆ set_palette()

static int set_palette ( BethsoftvidContext ctx,
GetByteContext g 
)
static

Definition at line 54 of file bethsoftvideo.c.

Referenced by bethsoftvid_decode_frame().

◆ bethsoftvid_decode_frame()

static int bethsoftvid_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 74 of file bethsoftvideo.c.

◆ bethsoftvid_decode_end()

static av_cold int bethsoftvid_decode_end ( AVCodecContext avctx)
static

Definition at line 163 of file bethsoftvideo.c.

Variable Documentation

◆ ff_bethsoftvid_decoder

const FFCodec ff_bethsoftvid_decoder
Initial value:
= {
.p.name = "bethsoftvid",
CODEC_LONG_NAME("Bethesda VID video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(BethsoftvidContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 170 of file bethsoftvideo.c.

BethsoftvidContext
Definition: bethsoftvideo.c:37
bethsoftvid_decode_frame
static int bethsoftvid_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: bethsoftvideo.c:74
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
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
bethsoftvid_decode_init
static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx)
Definition: bethsoftvideo.c:42
bethsoftvid_decode_end
static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
Definition: bethsoftvideo.c:163
AV_CODEC_ID_BETHSOFTVID
@ AV_CODEC_ID_BETHSOFTVID
Definition: codec_id.h:155
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201