FFmpeg
Macros | Functions | Variables
westwood_aud.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define AUD_HEADER_SIZE   12
 
#define AUD_CHUNK_PREAMBLE_SIZE   8
 
#define AUD_CHUNK_SIGNATURE   0x0000DEAF
 

Functions

static int wsaud_probe (const AVProbeData *p)
 
static int wsaud_read_header (AVFormatContext *s)
 
static int wsaud_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_wsaud_demuxer
 

Detailed Description

Westwood Studios AUD 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

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_aud.c.

Macro Definition Documentation

◆ AUD_HEADER_SIZE

#define AUD_HEADER_SIZE   12

Definition at line 41 of file westwood_aud.c.

◆ AUD_CHUNK_PREAMBLE_SIZE

#define AUD_CHUNK_PREAMBLE_SIZE   8

Definition at line 42 of file westwood_aud.c.

◆ AUD_CHUNK_SIGNATURE

#define AUD_CHUNK_SIGNATURE   0x0000DEAF

Definition at line 43 of file westwood_aud.c.

Function Documentation

◆ wsaud_probe()

static int wsaud_probe ( const AVProbeData p)
static

Definition at line 45 of file westwood_aud.c.

◆ wsaud_read_header()

static int wsaud_read_header ( AVFormatContext s)
static

Definition at line 83 of file westwood_aud.c.

◆ wsaud_read_packet()

static int wsaud_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 129 of file westwood_aud.c.

Variable Documentation

◆ ff_wsaud_demuxer

AVInputFormat ff_wsaud_demuxer
Initial value:
= {
.name = "wsaud",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio"),
.read_probe = wsaud_probe,
.read_header = wsaud_read_header,
.read_packet = wsaud_read_packet,
}

Definition at line 181 of file westwood_aud.c.

wsaud_read_header
static int wsaud_read_header(AVFormatContext *s)
Definition: westwood_aud.c:83
wsaud_probe
static int wsaud_probe(const AVProbeData *p)
Definition: westwood_aud.c:45
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
wsaud_read_packet
static int wsaud_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: westwood_aud.c:129