FFmpeg
|
AAC encoder. More...
#include "libavutil/float_dsp.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "put_bits.h"
#include "internal.h"
#include "mpeg4audio.h"
#include "kbdwin.h"
#include "sinewin.h"
#include "aac.h"
#include "aactab.h"
#include "aacenc.h"
#include "psymodel.h"
Go to the source code of this file.
Macros | |
#define | AAC_MAX_CHANNELS 6 |
#define | ERROR_IF(cond,...) |
#define | WINDOW_FUNC(type) |
#define | AACENC_FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Functions | |
static void | put_audio_specific_config (AVCodecContext *avctx) |
Make AAC audio config object. | |
WINDOW_FUNC (only_long) | |
WINDOW_FUNC (long_start) | |
WINDOW_FUNC (long_stop) | |
WINDOW_FUNC (eight_short) | |
static void | apply_window_and_mdct (AACEncContext *s, SingleChannelElement *sce, float *audio) |
static void | put_ics_info (AACEncContext *s, IndividualChannelStream *info) |
Encode ics_info element. | |
static void | encode_ms_info (PutBitContext *pb, ChannelElement *cpe) |
Encode MS data. | |
static void | adjust_frame_information (ChannelElement *cpe, int chans) |
Produce integer coefficients from scalefactors provided by the model. | |
static void | encode_band_info (AACEncContext *s, SingleChannelElement *sce) |
Encode scalefactor band coding type. | |
static void | encode_scale_factors (AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce) |
Encode scalefactors. | |
static void | encode_pulses (AACEncContext *s, Pulse *pulse) |
Encode pulse data. | |
static void | encode_spectral_coeffs (AACEncContext *s, SingleChannelElement *sce) |
Encode spectral coefficients processed by psychoacoustic model. | |
static int | encode_individual_channel (AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce, int common_window) |
Encode one channel of audio data. | |
static void | put_bitstream_info (AACEncContext *s, const char *name) |
Write some auxiliary information about the created AAC file. | |
static void | copy_input_samples (AACEncContext *s, const AVFrame *frame) |
static int | aac_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
static av_cold int | aac_encode_end (AVCodecContext *avctx) |
static av_cold int | dsp_init (AVCodecContext *avctx, AACEncContext *s) |
static av_cold int | alloc_buffers (AVCodecContext *avctx, AACEncContext *s) |
static av_cold int | aac_encode_init (AVCodecContext *avctx) |
AAC encoder.
Definition in file aacenc.c.
#define AAC_MAX_CHANNELS 6 |
Definition at line 48 of file aacenc.c.
Referenced by aac_encode_frame(), and aac_encode_init().
#define ERROR_IF | ( | cond, | |
... | |||
) |
Definition at line 50 of file aacenc.c.
Referenced by aac_encode_init().
#define WINDOW_FUNC | ( | type | ) |
#define AACENC_FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
|
static |
Make AAC audio config object.
Definition at line 163 of file aacenc.c.
Referenced by aac_encode_init().
|
static |
Definition at line 249 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
Encode ics_info element.
Definition at line 269 of file aacenc.c.
Referenced by aac_encode_frame(), and encode_individual_channel().
|
static |
Encode MS data.
Definition at line 290 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
Produce integer coefficients from scalefactors provided by the model.
Definition at line 304 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
Encode scalefactor band coding type.
Definition at line 366 of file aacenc.c.
Referenced by encode_individual_channel().
|
static |
Encode scalefactors.
Definition at line 377 of file aacenc.c.
Referenced by encode_individual_channel().
|
static |
Encode pulse data.
Definition at line 398 of file aacenc.c.
Referenced by encode_individual_channel().
|
static |
Encode spectral coefficients processed by psychoacoustic model.
Definition at line 417 of file aacenc.c.
Referenced by encode_individual_channel().
|
static |
Encode one channel of audio data.
Definition at line 442 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
Write some auxiliary information about the created AAC file.
Definition at line 461 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
Definition at line 482 of file aacenc.c.
Referenced by aac_encode_frame().
|
static |
|
static |
Definition at line 670 of file aacenc.c.
Referenced by aac_encode_init().
|
static |
Definition at line 685 of file aacenc.c.
Referenced by aac_encode_init().
|
static |
Definition at line 705 of file aacenc.c.
Referenced by aac_encode_init().
|
static |
float ff_aac_pow34sf_tab[428] |
Definition at line 56 of file aacenc.c.
Referenced by aac_encode_init(), and quantize_and_encode_band_cost_template().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Table to remap channels from libavcodec's default order to AAC order.
Definition at line 150 of file aacenc.c.
Referenced by copy_input_samples().
|
static |
Definition at line 240 of file aacenc.c.
Referenced by apply_window_and_mdct(), and ff_mpa_synth_filter_TMPL().
|
static |
|
static |
|
static |
AVCodec ff_aac_encoder |