libavformat/westwood.c File Reference

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

#include "libavutil/intreadwrite.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  WsAudDemuxContext
struct  WsVqaDemuxContext

Defines

#define AUD_HEADER_SIZE   12
#define AUD_CHUNK_PREAMBLE_SIZE   8
#define AUD_CHUNK_SIGNATURE   0x0000DEAF
#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_FRAMERATE   15
#define VQA_VIDEO_PTS_INC   (90000 / VQA_FRAMERATE)
#define VQA_PREAMBLE_SIZE   8

Functions

static int wsaud_probe (AVProbeData *p)
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_header (AVFormatContext *s, AVFormatParameters *ap)
static int wsvqa_read_packet (AVFormatContext *s, AVPacket *pkt)


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.


Define Documentation

#define AUD_CHUNK_PREAMBLE_SIZE   8

Definition at line 40 of file westwood.c.

Referenced by wsaud_probe(), and wsaud_read_packet().

#define AUD_CHUNK_SIGNATURE   0x0000DEAF

Definition at line 41 of file westwood.c.

Referenced by wsaud_probe(), and wsaud_read_packet().

#define AUD_HEADER_SIZE   12

Definition at line 39 of file westwood.c.

Referenced by wsaud_probe(), and wsaud_read_header().

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

Definition at line 55 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 53 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 54 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 59 of file westwood.c.

Referenced by wsvqa_read_header(), and wsvqa_read_packet().

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

Definition at line 46 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 43 of file westwood.c.

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

Definition at line 58 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 56 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 57 of file westwood.c.

Referenced by wsvqa_read_header().

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

Definition at line 47 of file westwood.c.

Referenced by wsvqa_read_packet().

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

Definition at line 48 of file westwood.c.

Referenced by wsvqa_read_packet().

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

Definition at line 49 of file westwood.c.

Referenced by wsvqa_read_packet().

#define VQA_FRAMERATE   15

Definition at line 62 of file westwood.c.

Referenced by wsvqa_read_header().

#define VQA_HEADER_SIZE   0x2A

Definition at line 61 of file westwood.c.

#define VQA_PREAMBLE_SIZE   8

Definition at line 64 of file westwood.c.

Referenced by wsvqa_read_header(), and wsvqa_read_packet().

#define VQA_VIDEO_PTS_INC   (90000 / VQA_FRAMERATE)

Definition at line 63 of file westwood.c.

Referenced by wsvqa_read_packet().

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

Definition at line 50 of file westwood.c.

Referenced by wsvqa_read_packet().

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

Definition at line 45 of file westwood.c.

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

Definition at line 44 of file westwood.c.

Referenced by wsvqa_probe().


Function Documentation

static int wsaud_probe ( AVProbeData p  )  [static]

Definition at line 87 of file westwood.c.

static int wsaud_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 127 of file westwood.c.

static int wsaud_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 169 of file westwood.c.

static int wsvqa_probe ( AVProbeData p  )  [static]

Definition at line 200 of file westwood.c.

static int wsvqa_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 214 of file westwood.c.

static int wsvqa_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 314 of file westwood.c.


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8