FFmpeg
Loading...
Searching...
No Matches
westwood_audenc.c File Reference

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

#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 58 of file westwood_audenc.c.

◆ wsaud_write_packet()

static int wsaud_write_packet ( AVFormatContext * ctx,
AVPacket * pkt )
static

Definition at line 87 of file westwood_audenc.c.

◆ wsaud_write_trailer()

static int wsaud_write_trailer ( AVFormatContext * ctx)
static

Definition at line 105 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,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.write_header = wsaud_write_header,
.write_packet = wsaud_write_packet,
.write_trailer = wsaud_write_trailer,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
}
@ AV_CODEC_ID_ADPCM_IMA_WS
Definition codec_id.h:374
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition mux.h:50
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59
static int wsaud_write_packet(AVFormatContext *ctx, AVPacket *pkt)
static int wsaud_write_trailer(AVFormatContext *ctx)
static int wsaud_write_header(AVFormatContext *ctx)
static int wsaud_write_init(AVFormatContext *ctx)

Definition at line 117 of file westwood_audenc.c.