Logo Search packages:      
Sourcecode: blender version File versions  Download package

westwood.c File Reference


Detailed Description

Westwood Studios VQA & AUD file demuxers by Mike Melanson (melanson@pcisys.net) for more information on the Westwood file formats, visit: http://www.pcisys.net/~melanson/codecs/ http://www.geocities.com/SiliconValley/8682/aud3.txt

Implementation note: There is no definite file signature for AUD files. The demuxer uses a probabilistic strategy for content detection. This entails performing sanity checks on certain header values in order to qualify a file. Refer to wsaud_probe() for the precise parameters.

Definition in file westwood.c.

#include "avformat.h"

Go to the source code of this file.

Classes

struct  WsAudDemuxContext
struct  WsVqaDemuxContext

Defines

#define AUD_CHUNK_PREAMBLE_SIZE   8
#define AUD_CHUNK_SIGNATURE   0x0000DEAF
#define AUD_HEADER_SIZE   12
#define CIND_TAG   MKBETAG('C', 'I', 'N', 'D')
#define CINF_TAG   MKBETAG('C', 'I', 'N', 'F')
#define CINH_TAG   MKBETAG('C', 'I', 'N', 'H')
#define FINF_TAG   MKBETAG('F', 'I', 'N', 'F')
#define FORM_TAG   MKBETAG('F', 'O', 'R', 'M')
#define PIND_TAG   MKBETAG('P', 'I', 'N', 'D')
#define PINF_TAG   MKBETAG('P', 'I', 'N', 'F')
#define PINH_TAG   MKBETAG('P', 'I', 'N', 'H')
#define SND0_TAG   MKBETAG('S', 'N', 'D', '0')
#define SND2_TAG   MKBETAG('S', 'N', 'D', '2')
#define VQA_FRAMERATE   15
#define VQA_HEADER_SIZE   0x2A
#define VQA_PREAMBLE_SIZE   8
#define VQA_VIDEO_PTS_INC   (90000 / VQA_FRAMERATE)
#define VQFR_TAG   MKBETAG('V', 'Q', 'F', 'R')
#define VQHD_TAG   MKBETAG('V', 'Q', 'H', 'D')
#define WVQA_TAG   MKBETAG('W', 'V', 'Q', 'A')

Functions

int westwood_init (void)
static int wsaud_probe (AVProbeData *p)
static int wsaud_read_close (AVFormatContext *s)
static int wsaud_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int wsaud_read_packet (AVFormatContext *s, AVPacket *pkt)
static int wsvqa_probe (AVProbeData *p)
static int wsvqa_read_close (AVFormatContext *s)
static int wsvqa_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int wsvqa_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static AVInputFormat wsaud_iformat
static AVInputFormat wsvqa_iformat


Generated by  Doxygen 1.6.0   Back to index