libavcodec/libfaac.c File Reference

Interface to libfaac for aac encoding. More...

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

Go to the source code of this file.

Data Structures

struct  FaacAudioContext

Defines

#define FAAC_DELAY_SAMPLES   1024
#define free   please_use_av_free

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.


Define Documentation

#define FAAC_DELAY_SAMPLES   1024

Definition at line 36 of file libfaac.c.

Referenced by Faac_encode_init().

#define free   please_use_av_free


Function Documentation

static av_cold int Faac_encode_close ( AVCodecContext avctx  )  [static]

Definition at line 43 of file libfaac.c.

Referenced by Faac_encode_init().

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

Definition at line 180 of file libfaac.c.

static av_cold int Faac_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 66 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 59 of file libfaac.c.

Referenced by Faac_encode_init().

const uint64_t faac_channel_layouts[] [static]

Initial value:

 {
    .name           = "libfaac",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = CODEC_ID_AAC,
    .priv_data_size = sizeof(FaacAudioContext),
    .init           = Faac_encode_init,
    .encode2        = Faac_encode_frame,
    .close          = Faac_encode_close,
    .capabilities   = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
    .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
                                                     AV_SAMPLE_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"),
    .profiles       = NULL_IF_CONFIG_SMALL(profiles),
    .channel_layouts = faac_channel_layouts,
}

Definition at line 237 of file libfaac.c.

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"  },
    { FF_PROFILE_UNKNOWN },
}

Definition at line 219 of file libfaac.c.


Generated on Fri Oct 26 02:47:57 2012 for FFmpeg by  doxygen 1.5.8