FFmpeg
Data Structures | Macros | Functions | Variables
westwood_vqa.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.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 VQFL_TAG   MKBETAG('V', 'Q', 'F', 'L')
 
#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 LINF_TAG   MKBETAG('L', 'I', 'N', 'F')
 
#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 SN2J_TAG   MKBETAG('S', 'N', '2', 'J')
 
#define VIEW_TAG   MKBETAG('V', 'I', 'E', 'W')
 
#define ZBUF_TAG   MKBETAG('Z', 'B', 'U', 'F')
 
#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

const 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 38 of file westwood_vqa.c.

◆ WVQA_TAG

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

Definition at line 39 of file westwood_vqa.c.

◆ VQHD_TAG

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

Definition at line 40 of file westwood_vqa.c.

◆ FINF_TAG

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

Definition at line 41 of file westwood_vqa.c.

◆ SND0_TAG

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

Definition at line 42 of file westwood_vqa.c.

◆ SND1_TAG

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

Definition at line 43 of file westwood_vqa.c.

◆ SND2_TAG

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

Definition at line 44 of file westwood_vqa.c.

◆ VQFR_TAG

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

Definition at line 45 of file westwood_vqa.c.

◆ VQFL_TAG

#define VQFL_TAG   MKBETAG('V', 'Q', 'F', 'L')

Definition at line 46 of file westwood_vqa.c.

◆ CINF_TAG

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

Definition at line 49 of file westwood_vqa.c.

◆ CINH_TAG

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

Definition at line 50 of file westwood_vqa.c.

◆ CIND_TAG

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

Definition at line 51 of file westwood_vqa.c.

◆ LINF_TAG

#define LINF_TAG   MKBETAG('L', 'I', 'N', 'F')

Definition at line 52 of file westwood_vqa.c.

◆ PINF_TAG

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

Definition at line 53 of file westwood_vqa.c.

◆ PINH_TAG

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

Definition at line 54 of file westwood_vqa.c.

◆ PIND_TAG

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

Definition at line 55 of file westwood_vqa.c.

◆ CMDS_TAG

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

Definition at line 56 of file westwood_vqa.c.

◆ SN2J_TAG

#define SN2J_TAG   MKBETAG('S', 'N', '2', 'J')

Definition at line 57 of file westwood_vqa.c.

◆ VIEW_TAG

#define VIEW_TAG   MKBETAG('V', 'I', 'E', 'W')

Definition at line 58 of file westwood_vqa.c.

◆ ZBUF_TAG

#define ZBUF_TAG   MKBETAG('Z', 'B', 'U', 'F')

Definition at line 59 of file westwood_vqa.c.

◆ VQA_HEADER_SIZE

#define VQA_HEADER_SIZE   0x2A

Definition at line 61 of file westwood_vqa.c.

◆ VQA_PREAMBLE_SIZE

#define VQA_PREAMBLE_SIZE   8

Definition at line 62 of file westwood_vqa.c.

Function Documentation

◆ wsvqa_probe()

static int wsvqa_probe ( const AVProbeData p)
static

Definition at line 75 of file westwood_vqa.c.

◆ wsvqa_read_header()

static int wsvqa_read_header ( AVFormatContext s)
static

Definition at line 89 of file westwood_vqa.c.

◆ wsvqa_read_packet()

static int wsvqa_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 173 of file westwood_vqa.c.

Variable Documentation

◆ ff_wsvqa_demuxer

const 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 318 of file westwood_vqa.c.

wsvqa_read_packet
static int wsvqa_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: westwood_vqa.c:173
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:532
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:89
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:75
WsVqaDemuxContext
Definition: westwood_vqa.c:64