FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
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"

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 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().

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.

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},
}

Definition at line 267 of file cafenc.c.