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 "internal.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)
 
static int bethsoftvid_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int bethsoftvid_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec 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 41 of file bethsoftvideo.c.

◆ set_palette()

static int set_palette ( BethsoftvidContext ctx)
static

Definition at line 53 of file bethsoftvideo.c.

Referenced by bethsoftvid_decode_frame().

◆ bethsoftvid_decode_frame()

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

Definition at line 69 of file bethsoftvideo.c.

◆ bethsoftvid_decode_end()

static av_cold int bethsoftvid_decode_end ( AVCodecContext avctx)
static

Definition at line 154 of file bethsoftvideo.c.

Variable Documentation

◆ ff_bethsoftvid_decoder

AVCodec ff_bethsoftvid_decoder
Initial value:
= {
.name = "bethsoftvid",
.long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"),
.priv_data_size = sizeof(BethsoftvidContext),
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 161 of file bethsoftvideo.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:41
BethsoftvidContext
Definition: bethsoftvideo.c:36
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
bethsoftvid_decode_frame
static int bethsoftvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: bethsoftvideo.c:69
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
bethsoftvid_decode_init
static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx)
Definition: bethsoftvideo.c:41
bethsoftvid_decode_end
static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
Definition: bethsoftvideo.c:154
AV_CODEC_ID_BETHSOFTVID
@ AV_CODEC_ID_BETHSOFTVID
Definition: codec_id.h:152
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201