All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
aiffenc.c File Reference
#include "libavutil/intfloat.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
#include "aiff.h"
#include "avio_internal.h"
#include "isom.h"
#include "id3v2.h"

Go to the source code of this file.

Data Structures

struct  AIFFOutputContext


#define OFFSET(x)   offsetof(AIFFOutputContext, x)


static int put_id3v2_tags (AVFormatContext *s, AIFFOutputContext *aiff)
static void put_meta (AVFormatContext *s, const char *key, uint32_t id)
static int aiff_write_header (AVFormatContext *s)
static int aiff_write_packet (AVFormatContext *s, AVPacket *pkt)
static int aiff_write_trailer (AVFormatContext *s)


static const AVOption options []
static const AVClass aiff_muxer_class
AVOutputFormat ff_aiff_muxer

Macro Definition Documentation

#define OFFSET (   x)    offsetof(AIFFOutputContext, x)

Definition at line 302 of file aiffenc.c.


Definition at line 303 of file aiffenc.c.

Function Documentation

static int put_id3v2_tags ( AVFormatContext s,
AIFFOutputContext aiff 

Definition at line 42 of file aiffenc.c.

Referenced by aiff_write_trailer().

static void put_meta ( AVFormatContext s,
const char *  key,
uint32_t  id 

Definition at line 83 of file aiffenc.c.

Referenced by aiff_write_header().

static int aiff_write_header ( AVFormatContext s)

Definition at line 99 of file aiffenc.c.

static int aiff_write_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 208 of file aiffenc.c.

static int aiff_write_trailer ( AVFormatContext s)

Definition at line 251 of file aiffenc.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "write_id3v2", "Enable ID3 tags writing.",
OFFSET(write_id3v2), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, ENC },
{ "id3v2_version", "Select ID3v2 version to write. Currently 3 and 4 are supported.",
OFFSET(id3v2_version), AV_OPT_TYPE_INT, {.i64 = 4}, 3, 4, ENC },
{ NULL },

Definition at line 304 of file aiffenc.c.

const AVClass aiff_muxer_class
Initial value:
= {
.class_name = "AIFF muxer",
.item_name = av_default_item_name,
.option = options,

Definition at line 312 of file aiffenc.c.

AVOutputFormat ff_aiff_muxer
Initial value:
= {
.name = "aiff",
.long_name = NULL_IF_CONFIG_SMALL("Audio IFF"),
.mime_type = "audio/aiff",
.extensions = "aif,aiff,afc,aifc",
.priv_data_size = sizeof(AIFFOutputContext),
.audio_codec = AV_CODEC_ID_PCM_S16BE,
.video_codec = AV_CODEC_ID_PNG,
.codec_tag = (const AVCodecTag* const []){ ff_codec_aiff_tags, 0 },
.priv_class = &aiff_muxer_class,

Definition at line 319 of file aiffenc.c.