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

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. More...

#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 (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

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

Definition at line 35 of file westwood_vqa.c.

Referenced by wsvqa_probe().

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

Definition at line 36 of file westwood_vqa.c.

Referenced by wsvqa_probe().

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

Definition at line 37 of file westwood_vqa.c.

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

Definition at line 38 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 39 of file westwood_vqa.c.

Referenced by wsvqa_read_packet().

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

Definition at line 40 of file westwood_vqa.c.

Referenced by wsvqa_read_packet().

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

Definition at line 41 of file westwood_vqa.c.

Referenced by wsvqa_read_packet().

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

Definition at line 42 of file westwood_vqa.c.

Referenced by wsvqa_read_packet().

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

Definition at line 45 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 46 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 47 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 48 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 49 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 50 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

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

Definition at line 51 of file westwood_vqa.c.

Referenced by wsvqa_read_header(), and wsvqa_read_packet().

#define VQA_HEADER_SIZE   0x2A

Definition at line 53 of file westwood_vqa.c.

Referenced by wsvqa_read_header().

#define VQA_PREAMBLE_SIZE   8

Definition at line 54 of file westwood_vqa.c.

Referenced by wsvqa_read_header(), and wsvqa_read_packet().

Function Documentation

static int wsvqa_probe ( AVProbeData p)
static

Definition at line 65 of file westwood_vqa.c.

static int wsvqa_read_header ( AVFormatContext s)
static

Definition at line 79 of file westwood_vqa.c.

static int wsvqa_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 159 of file westwood_vqa.c.

Variable Documentation

AVInputFormat ff_wsvqa_demuxer
Initial value:
= {
.name = "wsvqa",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA"),
.priv_data_size = sizeof(WsVqaDemuxContext),
}
static int wsvqa_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: westwood_vqa.c:159
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:638
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int wsvqa_probe(AVProbeData *p)
Definition: westwood_vqa.c:65
static int wsvqa_read_header(AVFormatContext *s)
Definition: westwood_vqa.c:79

Definition at line 263 of file westwood_vqa.c.