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"#include "internal.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_PREAMBLE_SIZE 8 |
Typedefs | |
| typedef struct WsAudDemuxContext | WsAudDemuxContext |
| typedef struct WsVqaDemuxContext | WsVqaDemuxContext |
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) |
Variables | |
| AVInputFormat | ff_wsaud_demuxer |
| AVInputFormat | ff_wsvqa_demuxer |
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 AUD_CHUNK_PREAMBLE_SIZE 8 |
Definition at line 41 of file westwood.c.
Referenced by wsaud_probe(), and wsaud_read_packet().
| #define AUD_CHUNK_SIGNATURE 0x0000DEAF |
Definition at line 42 of file westwood.c.
Referenced by wsaud_probe(), and wsaud_read_packet().
| #define AUD_HEADER_SIZE 12 |
Definition at line 40 of file westwood.c.
Referenced by wsaud_probe(), and wsaud_read_header().
| #define CIND_TAG MKBETAG('C', 'I', 'N', 'D') |
Definition at line 56 of file westwood.c.
Referenced by wsvqa_read_header().
| #define CINF_TAG MKBETAG('C', 'I', 'N', 'F') |
Definition at line 54 of file westwood.c.
Referenced by wsvqa_read_header().
| #define CINH_TAG MKBETAG('C', 'I', 'N', 'H') |
Definition at line 55 of file westwood.c.
Referenced by wsvqa_read_header().
| #define CMDS_TAG MKBETAG('C', 'M', 'D', 'S') |
Definition at line 60 of file westwood.c.
Referenced by wsvqa_read_header(), and wsvqa_read_packet().
| #define FINF_TAG MKBETAG('F', 'I', 'N', 'F') |
Definition at line 47 of file westwood.c.
Referenced by wsvqa_read_header().
| #define FORM_TAG MKBETAG('F', 'O', 'R', 'M') |
Definition at line 44 of file westwood.c.
Referenced by wsvqa_probe().
| #define PIND_TAG MKBETAG('P', 'I', 'N', 'D') |
Definition at line 59 of file westwood.c.
Referenced by wsvqa_read_header().
| #define PINF_TAG MKBETAG('P', 'I', 'N', 'F') |
Definition at line 57 of file westwood.c.
Referenced by wsvqa_read_header().
| #define PINH_TAG MKBETAG('P', 'I', 'N', 'H') |
Definition at line 58 of file westwood.c.
Referenced by wsvqa_read_header().
| #define SND0_TAG MKBETAG('S', 'N', 'D', '0') |
Definition at line 48 of file westwood.c.
Referenced by wsvqa_read_packet().
| #define SND1_TAG MKBETAG('S', 'N', 'D', '1') |
Definition at line 49 of file westwood.c.
Referenced by wsvqa_read_packet().
| #define SND2_TAG MKBETAG('S', 'N', 'D', '2') |
Definition at line 50 of file westwood.c.
Referenced by wsvqa_read_packet().
| #define VQA_FRAMERATE 15 |
Definition at line 63 of file westwood.c.
Referenced by wsvqa_read_header().
| #define VQA_HEADER_SIZE 0x2A |
Definition at line 62 of file westwood.c.
Referenced by wsvqa_read_header().
| #define VQA_PREAMBLE_SIZE 8 |
Definition at line 64 of file westwood.c.
Referenced by wsvqa_read_header(), and wsvqa_read_packet().
| #define VQFR_TAG MKBETAG('V', 'Q', 'F', 'R') |
Definition at line 51 of file westwood.c.
Referenced by wsvqa_read_packet().
| #define VQHD_TAG MKBETAG('V', 'Q', 'H', 'D') |
Definition at line 46 of file westwood.c.
| #define WVQA_TAG MKBETAG('W', 'V', 'Q', 'A') |
Definition at line 45 of file westwood.c.
Referenced by wsvqa_probe().
| typedef struct WsAudDemuxContext WsAudDemuxContext |
| typedef struct WsVqaDemuxContext WsVqaDemuxContext |
| static int wsaud_probe | ( | AVProbeData * | p | ) | [static] |
Definition at line 86 of file westwood.c.
| static int wsaud_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
Definition at line 126 of file westwood.c.
| static int wsaud_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
Definition at line 168 of file westwood.c.
| static int wsvqa_probe | ( | AVProbeData * | p | ) | [static] |
Definition at line 199 of file westwood.c.
| static int wsvqa_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
Definition at line 213 of file westwood.c.
| static int wsvqa_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
Definition at line 313 of file westwood.c.
{
.name = "wsaud",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio format"),
.priv_data_size = sizeof(WsAudDemuxContext),
.read_probe = wsaud_probe,
.read_header = wsaud_read_header,
.read_packet = wsaud_read_packet,
}
Definition at line 376 of file westwood.c.
{
.name = "wsvqa",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA format"),
.priv_data_size = sizeof(WsVqaDemuxContext),
.read_probe = wsvqa_probe,
.read_header = wsvqa_read_header,
.read_packet = wsvqa_read_packet,
}
Definition at line 386 of file westwood.c.