FFmpeg
|
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"
Include dependency graph for libfaac.c:
Go to the source code of this file.
Data Structures | |
struct | FaacAudioContext |
Macros | |
#define | FAAC_DELAY_SAMPLES 1024 |
Typedefs | |
typedef struct FaacAudioContext | FaacAudioContext |
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().
Typedef Documentation
typedef struct FaacAudioContext FaacAudioContext |
Function Documentation
|
static |
Definition at line 44 of file libfaac.c.
Referenced by Faac_encode_init().
|
static |
|
static |
Variable Documentation
|
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().
|
static |
Initial value:
= {
0
}
AVCodec ff_libfaac_encoder |
Initial value:
= {
.name = "libfaac",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_AAC,
.priv_data_size = sizeof(FaacAudioContext),
.init = Faac_encode_init,
.encode2 = Faac_encode_frame,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Coding)"),
.profiles = NULL_IF_CONFIG_SMALL(profiles),
.channel_layouts = faac_channel_layouts,
}
Definition: samplefmt.h:50
Definition: libavcodec/avcodec.h:383
static av_cold int Faac_encode_close(AVCodecContext *avctx)
Definition: libfaac.c:44
static int Faac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libfaac.c:168
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: libavcodec/avcodec.h:770
#define CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: libavcodec/avcodec.h:775
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
struct FaacAudioContext FaacAudioContext
|
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 },
}
Generated on Fri Dec 20 2024 06:56:13 for FFmpeg by 1.8.11