FFmpeg
Data Structures | Macros | Functions | Variables
westwood_audenc.c File Reference
#include "avformat.h"
#include "avio_internal.h"
#include "internal.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 AVOutputFormat 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 36 of file westwood_audenc.c.

Function Documentation

◆ wsaud_write_init()

static int wsaud_write_init ( AVFormatContext ctx)
static

Definition at line 43 of file westwood_audenc.c.

◆ wsaud_write_header()

static int wsaud_write_header ( AVFormatContext ctx)
static

Definition at line 69 of file westwood_audenc.c.

◆ wsaud_write_packet()

static int wsaud_write_packet ( AVFormatContext ctx,
AVPacket pkt 
)
static

Definition at line 98 of file westwood_audenc.c.

◆ wsaud_write_trailer()

static int wsaud_write_trailer ( AVFormatContext ctx)
static

Definition at line 116 of file westwood_audenc.c.

Variable Documentation

◆ ff_wsaud_muxer

const AVOutputFormat ff_wsaud_muxer
Initial value:
= {
.name = "wsaud",
.long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio"),
.extensions = "aud",
.priv_data_size = sizeof(AUDMuxContext),
.audio_codec = AV_CODEC_ID_ADPCM_IMA_WS,
.video_codec = AV_CODEC_ID_NONE,
}

Definition at line 128 of file westwood_audenc.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
AUDMuxContext
Definition: westwood_audenc.c:38
wsaud_write_header
static int wsaud_write_header(AVFormatContext *ctx)
Definition: westwood_audenc.c:69
wsaud_write_init
static int wsaud_write_init(AVFormatContext *ctx)
Definition: westwood_audenc.c:43
wsaud_write_packet
static int wsaud_write_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: westwood_audenc.c:98
AV_CODEC_ID_ADPCM_IMA_WS
@ AV_CODEC_ID_ADPCM_IMA_WS
Definition: codec_id.h:357
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
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:117
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:731
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:48
wsaud_write_trailer
static int wsaud_write_trailer(AVFormatContext *ctx)
Definition: westwood_audenc.c:116
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:347