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"
Include dependency graph for bethsoftvideo.c:

Go to the source code of this file.

Data Structures

struct  BethsoftvidContext
 

Typedefs

typedef struct BethsoftvidContext 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.

Typedef Documentation

Function Documentation

static av_cold int bethsoftvid_decode_end ( AVCodecContext avctx)
static

Definition at line 145 of file bethsoftvideo.c.

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

Definition at line 65 of file bethsoftvideo.c.

static av_cold int bethsoftvid_decode_init ( AVCodecContext avctx)
static

Definition at line 41 of file bethsoftvideo.c.

static int set_palette ( BethsoftvidContext ctx)
static

Definition at line 49 of file bethsoftvideo.c.

Referenced by bethsoftvid_decode_frame().

Variable Documentation

AVCodec ff_bethsoftvid_decoder
Initial value:
= {
.name = "bethsoftvid",
.priv_data_size = sizeof(BethsoftvidContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int bethsoftvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: bethsoftvideo.c:65
struct BethsoftvidContext BethsoftvidContext
static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx)
Definition: bethsoftvideo.c:41
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 152 of file bethsoftvideo.c.