cafenc.c File Reference
#include "avformat.h"
#include "caf.h"
#include "isom.h"
#include "avio_internal.h"
#include "libavutil/intfloat.h"
#include "libavutil/dict.h"
Include dependency graph for cafenc.c:

Go to the source code of this file.

Data Structures

struct  CAFContext
 

Functions

static uint32_t codec_flags (enum AVCodecID codec_id)
 
static uint32_t samples_per_packet (enum AVCodecID codec_id, int channels)
 
static int caf_write_header (AVFormatContext *s)
 
static int caf_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int caf_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_caf_muxer
 

Function Documentation

static int caf_write_header ( AVFormatContext s)
static

Definition at line 101 of file cafenc.c.

static int caf_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 209 of file cafenc.c.

static int caf_write_trailer ( AVFormatContext s)
static

< mNumberPackets

< mNumberValidFrames

< mPrimingFrames

< mRemainderFrames

Definition at line 239 of file cafenc.c.

static uint32_t codec_flags ( enum AVCodecID  codec_id)
static

Definition at line 37 of file cafenc.c.

Referenced by caf_write_header().

static uint32_t samples_per_packet ( enum AVCodecID  codec_id,
int  channels 
)
static

Definition at line 54 of file cafenc.c.

Referenced by caf_write_header(), and caf_write_trailer().

Variable Documentation

AVOutputFormat ff_caf_muxer
Initial value:
= {
.name = "caf",
.long_name = NULL_IF_CONFIG_SMALL("Apple CAF (Core Audio Format)"),
.mime_type = "audio/x-caf",
.extensions = "caf",
.priv_data_size = sizeof(CAFContext),
.audio_codec = AV_CODEC_ID_PCM_S16BE,
.video_codec = AV_CODEC_ID_NONE,
.codec_tag = (const AVCodecTag* const []){ff_codec_caf_tags, 0},
}
static int write_packet(AVFormatContext *s, AVPacket *pkt)
static int write_trailer(AVFormatContext *s)
static int caf_write_header(AVFormatContext *s)
Definition: cafenc.c:101
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int caf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: cafenc.c:209
static int caf_write_trailer(AVFormatContext *s)
Definition: cafenc.c:239
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:470
const AVCodecTag ff_codec_caf_tags[]
Known codec tags for CAF.
Definition: caf.c:34

Definition at line 267 of file cafenc.c.