FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libfaac.c File Reference

Interface to libfaac for aac encoding. More...

#include <faac.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  FaacAudioContext
 

Macros

#define FAAC_DELAY_SAMPLES   1024
 

Functions

static av_cold int Faac_encode_close (AVCodecContext *avctx)
 
static av_cold int Faac_encode_init (AVCodecContext *avctx)
 
static int Faac_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

static const int channel_maps [][6]
 
static const AVProfile profiles []
 
static const uint64_t faac_channel_layouts []
 
AVCodec ff_libfaac_encoder
 

Detailed Description

Interface to libfaac for aac encoding.

Definition in file libfaac.c.

Macro Definition Documentation

#define FAAC_DELAY_SAMPLES   1024

Definition at line 37 of file libfaac.c.

Referenced by Faac_encode_init().

Function Documentation

static av_cold int Faac_encode_close ( AVCodecContext avctx)
static

Definition at line 44 of file libfaac.c.

Referenced by Faac_encode_init().

static av_cold int Faac_encode_init ( AVCodecContext avctx)
static

Definition at line 64 of file libfaac.c.

static int Faac_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 179 of file libfaac.c.

Variable Documentation

const int channel_maps[][6]
static
Initial value:
= {
{ 2, 0, 1 },
{ 2, 0, 1, 3 },
{ 2, 0, 1, 3, 4 },
{ 2, 0, 1, 4, 5, 3 },
}

Definition at line 57 of file libfaac.c.

Referenced by Faac_encode_init().

const AVProfile profiles[]
static
Initial value:
= {
{ FF_PROFILE_AAC_MAIN, "Main" },
{ FF_PROFILE_AAC_LOW, "LC" },
{ FF_PROFILE_AAC_SSR, "SSR" },
{ FF_PROFILE_AAC_LTP, "LTP" },
}

Definition at line 216 of file libfaac.c.

const uint64_t faac_channel_layouts[]
static
AVCodec ff_libfaac_encoder
Initial value:
= {
.name = "libfaac",
.long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Coding)"),
.priv_data_size = sizeof(FaacAudioContext),
.encode2 = Faac_encode_frame,
.channel_layouts = faac_channel_layouts,
}

Definition at line 234 of file libfaac.c.