FFmpeg
 All Data Structures Namespaces 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, int block_align)
 
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(), and set_encoder_id().

static uint32_t samples_per_packet ( enum AVCodecID  codec_id,
int  channels,
int  block_align 
)
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 102 of file cafenc.c.

static int caf_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 216 of file cafenc.c.

static int caf_write_trailer ( AVFormatContext s)
static

< mNumberPackets

< mNumberValidFrames

< mPrimingFrames

< mRemainderFrames

Definition at line 246 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},
}
static int caf_write_header(AVFormatContext *s)
Definition: cafenc.c:102
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
static int caf_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: cafenc.c:216
static int caf_write_trailer(AVFormatContext *s)
Definition: cafenc.c:246
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:493
const AVCodecTag ff_codec_caf_tags[]
Known codec tags for CAF.
Definition: caf.c:34
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 274 of file cafenc.c.