FFmpeg
Data Structures | Macros | Functions | Variables
westwood_audenc.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mux.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  AUDMuxContext
 

Macros

#define AUD_CHUNK_SIGNATURE   0x0000DEAF
 

Functions

static int wsaud_write_init (AVFormatContext *ctx)
 
static int wsaud_write_header (AVFormatContext *ctx)
 
static int wsaud_write_packet (AVFormatContext *ctx, AVPacket *pkt)
 
static int wsaud_write_trailer (AVFormatContext *ctx)
 

Variables

const FFOutputFormat ff_wsaud_muxer
 

Detailed Description

Westwood Studios AUD file muxer by Aidan Richmond (aidan.nosp@m..is@.nosp@m.hotma.nosp@m.il.c.nosp@m.o.uk)

This muxer supports IMA ADPCM packed in westwoods format.

See also
http://xhp.xwis.net/documents/aud3.txt

Definition in file westwood_audenc.c.

Macro Definition Documentation

◆ AUD_CHUNK_SIGNATURE

#define AUD_CHUNK_SIGNATURE   0x0000DEAF

Definition at line 37 of file westwood_audenc.c.

Function Documentation

◆ wsaud_write_init()

static int wsaud_write_init ( AVFormatContext ctx)
static

Definition at line 44 of file westwood_audenc.c.

◆ wsaud_write_header()

static int wsaud_write_header ( AVFormatContext ctx)
static

Definition at line 70 of file westwood_audenc.c.

◆ wsaud_write_packet()

static int wsaud_write_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 99 of file westwood_audenc.c.

◆ wsaud_write_trailer()

static int wsaud_write_trailer ( AVFormatContext ctx)
static

Definition at line 117 of file westwood_audenc.c.

Variable Documentation

◆ ff_wsaud_muxer

const FFOutputFormat ff_wsaud_muxer
Initial value:
= {
.p.name = "wsaud",
.p.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio"),
.p.extensions = "aud",
.priv_data_size = sizeof(AUDMuxContext),
.p.audio_codec = AV_CODEC_ID_ADPCM_IMA_WS,
.p.video_codec = AV_CODEC_ID_NONE,
.write_header = wsaud_write_header,
.write_packet = wsaud_write_packet,
.write_trailer = wsaud_write_trailer,
}

Definition at line 129 of file westwood_audenc.c.

AUDMuxContext
Definition: westwood_audenc.c:39
wsaud_write_header
static int wsaud_write_header(AVFormatContext *ctx)
Definition: westwood_audenc.c:70
wsaud_write_init
static int wsaud_write_init(AVFormatContext *ctx)
Definition: westwood_audenc.c:44
wsaud_write_packet
static int wsaud_write_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: westwood_audenc.c:99
AV_CODEC_ID_ADPCM_IMA_WS
@ AV_CODEC_ID_ADPCM_IMA_WS
Definition: codec_id.h:369
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:115
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
wsaud_write_trailer
static int wsaud_write_trailer(AVFormatContext *ctx)
Definition: westwood_audenc.c:117