All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bethsoftvid.c File Reference

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

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

Go to the source code of this file.

Data Structures

struct  BVID_DemuxContext


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


static int vid_probe (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)
static int vid_read_close (AVFormatContext *s)


AVInputFormat ff_bethsoftvid_demuxer

Detailed Description

Bethesda Softworks VID (.vid) file demuxer.

Nicholas Tung [ntung (at. ntung com] (2007-03)
See Also

Definition in file bethsoftvid.c.

Macro Definition Documentation

#define BVID_PALETTE_SIZE   3 * 256

Definition at line 36 of file bethsoftvid.c.

Referenced by read_frame(), and vid_read_packet().

#define DEFAULT_SAMPLE_RATE   11111

Definition at line 38 of file bethsoftvid.c.

Referenced by vid_read_header().

#define BUFFER_PADDING_SIZE   1000

Definition at line 95 of file bethsoftvid.c.

Referenced by read_frame().

Function Documentation

static int vid_probe ( AVProbeData p)

Definition at line 58 of file bethsoftvid.c.

static int vid_read_header ( AVFormatContext s)

Definition at line 70 of file bethsoftvid.c.

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

Definition at line 96 of file bethsoftvid.c.

Referenced by compute_vmaf_score(), and vid_read_packet().

static int vid_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 210 of file bethsoftvid.c.

static int vid_read_close ( AVFormatContext s)

Definition at line 287 of file bethsoftvid.c.

Variable Documentation

AVInputFormat ff_bethsoftvid_demuxer
Initial value:
= {
.name = "bethsoftvid",
.long_name = NULL_IF_CONFIG_SMALL("Bethesda Softworks VID"),
.priv_data_size = sizeof(BVID_DemuxContext),
static int vid_read_header(AVFormatContext *s)
Definition: bethsoftvid.c:70
static int vid_probe(AVProbeData *p)
Definition: bethsoftvid.c:58
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:528
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int vid_read_close(AVFormatContext *s)
Definition: bethsoftvid.c:287
static int vid_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: bethsoftvid.c:210

Definition at line 294 of file bethsoftvid.c.