FFmpeg
Data Structures | Macros | Functions | Variables
bethsoftvid.c File Reference

Bethesda Softworks VID (.vid) file demuxer. More...

#include "libavutil/channel_layout.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "libavcodec/bethsoftvideo.h"

Go to the source code of this file.

Data Structures

struct  BVID_DemuxContext
 

Macros

#define BVID_PALETTE_SIZE   3 * 256
 
#define DEFAULT_SAMPLE_RATE   11111
 
#define BUFFER_PADDING_SIZE   1000
 

Functions

static int vid_probe (const AVProbeData *p)
 
static int vid_read_header (AVFormatContext *s)
 
static int read_frame (BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt, uint8_t block_type, AVFormatContext *s)
 
static int vid_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_bethsoftvid_demuxer
 

Detailed Description

Bethesda Softworks VID (.vid) file demuxer.

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 bethsoftvid.c.

Macro Definition Documentation

◆ BVID_PALETTE_SIZE

#define BVID_PALETTE_SIZE   3 * 256

Definition at line 39 of file bethsoftvid.c.

◆ DEFAULT_SAMPLE_RATE

#define DEFAULT_SAMPLE_RATE   11111

Definition at line 41 of file bethsoftvid.c.

◆ BUFFER_PADDING_SIZE

#define BUFFER_PADDING_SIZE   1000

Definition at line 104 of file bethsoftvid.c.

Function Documentation

◆ vid_probe()

static int vid_probe ( const AVProbeData p)
static

Definition at line 62 of file bethsoftvid.c.

◆ vid_read_header()

static int vid_read_header ( AVFormatContext s)
static

Definition at line 74 of file bethsoftvid.c.

◆ read_frame()

static int read_frame ( BVID_DemuxContext vid,
AVIOContext pb,
AVPacket pkt,
uint8_t  block_type,
AVFormatContext s 
)
static

Definition at line 105 of file bethsoftvid.c.

Referenced by vid_read_packet().

◆ vid_read_packet()

static int vid_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 222 of file bethsoftvid.c.

Variable Documentation

◆ ff_bethsoftvid_demuxer

const FFInputFormat ff_bethsoftvid_demuxer
Initial value:
= {
.p.name = "bethsoftvid",
.p.long_name = NULL_IF_CONFIG_SMALL("Bethesda Softworks VID"),
.priv_data_size = sizeof(BVID_DemuxContext),
}

Definition at line 295 of file bethsoftvid.c.

vid_read_header
static int vid_read_header(AVFormatContext *s)
Definition: bethsoftvid.c:74
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
vid_probe
static int vid_probe(const AVProbeData *p)
Definition: bethsoftvid.c:62
BVID_DemuxContext
Definition: bethsoftvid.c:43
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:94
vid_read_packet
static int vid_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: bethsoftvid.c:222
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30