All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
flacenc.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavcodec/flac.h"
#include "avformat.h"
#include "avio_internal.h"
#include "flacenc.h"
#include "vorbiscomment.h"
#include "libavcodec/bytestream.h"

Go to the source code of this file.

Data Structures

struct  FlacMuxerContext


static int flac_write_block_padding (AVIOContext *pb, unsigned int n_padding_bytes, int last_block)
static int flac_write_block_comment (AVIOContext *pb, AVDictionary **m, int last_block, int bitexact)
static int flac_write_header (struct AVFormatContext *s)
static int flac_write_trailer (struct AVFormatContext *s)
static int flac_write_packet (struct AVFormatContext *s, AVPacket *pkt)


static const AVOption flacenc_options []
static const AVClass flac_muxer_class
AVOutputFormat ff_flac_muxer

Function Documentation

static int flac_write_block_padding ( AVIOContext pb,
unsigned int  n_padding_bytes,
int  last_block 

Definition at line 40 of file flacenc.c.

Referenced by flac_write_header().

static int flac_write_block_comment ( AVIOContext pb,
AVDictionary **  m,
int  last_block,
int  bitexact 

Definition at line 49 of file flacenc.c.

Referenced by flac_write_header().

static int flac_write_header ( struct AVFormatContext s)

Definition at line 75 of file flacenc.c.

static int flac_write_trailer ( struct AVFormatContext s)

Definition at line 137 of file flacenc.c.

static int flac_write_packet ( struct AVFormatContext s,
AVPacket pkt 

Definition at line 164 of file flacenc.c.

Variable Documentation

const AVOption flacenc_options[]
Initial value:
= {
{ "write_header", "Write the file header", 0x42, AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },

Definition at line 187 of file flacenc.c.

const AVClass flac_muxer_class
Initial value:
= {
.class_name = "flac muxer",
.item_name = av_default_item_name,
.option = flacenc_options,

Definition at line 192 of file flacenc.c.

AVOutputFormat ff_flac_muxer
Initial value:
= {
.name = "flac",
.long_name = NULL_IF_CONFIG_SMALL("raw FLAC"),
.priv_data_size = sizeof(FlacMuxerContext),
.mime_type = "audio/x-flac",
.extensions = "flac",
.audio_codec = AV_CODEC_ID_FLAC,
.video_codec = AV_CODEC_ID_NONE,
.priv_class = &flac_muxer_class,

Definition at line 199 of file flacenc.c.