FFmpeg
Data Structures | Macros | Functions | Variables
westwood_vqa.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  WsVqaDemuxContext
 

Macros

#define FORM_TAG   MKBETAG('F', 'O', 'R', 'M')
 
#define WVQA_TAG   MKBETAG('W', 'V', 'Q', 'A')
 
#define VQHD_TAG   MKBETAG('V', 'Q', 'H', 'D')
 
#define FINF_TAG   MKBETAG('F', 'I', 'N', 'F')
 
#define SND0_TAG   MKBETAG('S', 'N', 'D', '0')
 
#define SND1_TAG   MKBETAG('S', 'N', 'D', '1')
 
#define SND2_TAG   MKBETAG('S', 'N', 'D', '2')
 
#define VQFR_TAG   MKBETAG('V', 'Q', 'F', 'R')
 
#define CINF_TAG   MKBETAG('C', 'I', 'N', 'F')
 
#define CINH_TAG   MKBETAG('C', 'I', 'N', 'H')
 
#define CIND_TAG   MKBETAG('C', 'I', 'N', 'D')
 
#define PINF_TAG   MKBETAG('P', 'I', 'N', 'F')
 
#define PINH_TAG   MKBETAG('P', 'I', 'N', 'H')
 
#define PIND_TAG   MKBETAG('P', 'I', 'N', 'D')
 
#define CMDS_TAG   MKBETAG('C', 'M', 'D', 'S')
 
#define VQA_HEADER_SIZE   0x2A
 
#define VQA_PREAMBLE_SIZE   8
 

Functions

static int wsvqa_probe (const AVProbeData *p)
 
static int wsvqa_read_header (AVFormatContext *s)
 
static int wsvqa_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_wsvqa_demuxer
 

Detailed Description

Westwood Studios VQA file demuxer by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) for more information on the Westwood file formats, visit: http://www.pcisys.net/~melanson/codecs/ http://www.geocities.com/SiliconValley/8682/aud3.txt

Definition in file westwood_vqa.c.

Macro Definition Documentation

◆ FORM_TAG

#define FORM_TAG   MKBETAG('F', 'O', 'R', 'M')

Definition at line 35 of file westwood_vqa.c.

◆ WVQA_TAG

#define WVQA_TAG   MKBETAG('W', 'V', 'Q', 'A')

Definition at line 36 of file westwood_vqa.c.

◆ VQHD_TAG

#define VQHD_TAG   MKBETAG('V', 'Q', 'H', 'D')

Definition at line 37 of file westwood_vqa.c.

◆ FINF_TAG

#define FINF_TAG   MKBETAG('F', 'I', 'N', 'F')

Definition at line 38 of file westwood_vqa.c.

◆ SND0_TAG

#define SND0_TAG   MKBETAG('S', 'N', 'D', '0')

Definition at line 39 of file westwood_vqa.c.

◆ SND1_TAG

#define SND1_TAG   MKBETAG('S', 'N', 'D', '1')

Definition at line 40 of file westwood_vqa.c.

◆ SND2_TAG

#define SND2_TAG   MKBETAG('S', 'N', 'D', '2')

Definition at line 41 of file westwood_vqa.c.

◆ VQFR_TAG

#define VQFR_TAG   MKBETAG('V', 'Q', 'F', 'R')

Definition at line 42 of file westwood_vqa.c.

◆ CINF_TAG

#define CINF_TAG   MKBETAG('C', 'I', 'N', 'F')

Definition at line 45 of file westwood_vqa.c.

◆ CINH_TAG

#define CINH_TAG   MKBETAG('C', 'I', 'N', 'H')

Definition at line 46 of file westwood_vqa.c.

◆ CIND_TAG

#define CIND_TAG   MKBETAG('C', 'I', 'N', 'D')

Definition at line 47 of file westwood_vqa.c.

◆ PINF_TAG

#define PINF_TAG   MKBETAG('P', 'I', 'N', 'F')

Definition at line 48 of file westwood_vqa.c.

◆ PINH_TAG

#define PINH_TAG   MKBETAG('P', 'I', 'N', 'H')

Definition at line 49 of file westwood_vqa.c.

◆ PIND_TAG

#define PIND_TAG   MKBETAG('P', 'I', 'N', 'D')

Definition at line 50 of file westwood_vqa.c.

◆ CMDS_TAG

#define CMDS_TAG   MKBETAG('C', 'M', 'D', 'S')

Definition at line 51 of file westwood_vqa.c.

◆ VQA_HEADER_SIZE

#define VQA_HEADER_SIZE   0x2A

Definition at line 53 of file westwood_vqa.c.

◆ VQA_PREAMBLE_SIZE

#define VQA_PREAMBLE_SIZE   8

Definition at line 54 of file westwood_vqa.c.

Function Documentation

◆ wsvqa_probe()

static int wsvqa_probe ( const AVProbeData p)
static

Definition at line 65 of file westwood_vqa.c.

◆ wsvqa_read_header()

static int wsvqa_read_header ( AVFormatContext s)
static

Definition at line 79 of file westwood_vqa.c.

◆ wsvqa_read_packet()

static int wsvqa_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 158 of file westwood_vqa.c.

Variable Documentation

◆ ff_wsvqa_demuxer

AVInputFormat ff_wsvqa_demuxer
Initial value:
= {
.name = "wsvqa",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA"),
.priv_data_size = sizeof(WsVqaDemuxContext),
}

Definition at line 263 of file westwood_vqa.c.

wsvqa_read_packet
static int wsvqa_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: westwood_vqa.c:158
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
read_probe
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
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
wsvqa_read_header
static int wsvqa_read_header(AVFormatContext *s)
Definition: westwood_vqa.c:79
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
wsvqa_probe
static int wsvqa_probe(const AVProbeData *p)
Definition: westwood_vqa.c:65
WsVqaDemuxContext
Definition: westwood_vqa.c:56