#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) |
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 |
#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 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') |
#define FORM_TAG MKBETAG('F', 'O', 'R', 'M') |
Definition at line 43 of file westwood.c.
#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 SND1_TAG MKBETAG('S', 'N', 'D', '1') |
#define SND2_TAG MKBETAG('S', 'N', 'D', '2') |
#define VQA_FRAMERATE 15 |
#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) |
#define VQFR_TAG MKBETAG('V', 'Q', 'F', 'R') |
#define VQHD_TAG MKBETAG('V', 'Q', 'H', 'D') |
Definition at line 45 of file westwood.c.
#define WVQA_TAG MKBETAG('W', 'V', 'Q', 'A') |
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.