FFmpeg
|
AAC encoder utilities. More...
Go to the source code of this file.
Macros | |
#define | ROUND_STANDARD 0.4054f |
#define | ROUND_TO_ZERO 0.1054f |
#define | C_QUANT 0.4054f |
#define | ERROR_IF(cond,...) |
#define | WARN_IF(cond,...) |
Functions | |
static void | abs_pow34_v (float *out, const float *in, const int size) |
static int | quant (float coef, const float Q, const float rounding) |
Quantize one coefficient. More... | |
static void | quantize_bands (int *out, const float *in, const float *scaled, int size, float Q34, int is_signed, int maxval, const float rounding) |
static float | find_max_val (int group_len, int swb_size, const float *scaled) |
static int | find_min_book (float maxval, int sf) |
static uint8_t | coef2minsf (float coef) |
Return the minimum scalefactor where the quantized coef does not clip. More... | |
static uint8_t | coef2maxsf (float coef) |
Return the maximum scalefactor where the quantized coef is not zero. More... | |
static int | quant_array_idx (const float val, const float *arr, const int num) |
AAC encoder utilities.
Definition in file aacenc_utils.h.
#define ROUND_STANDARD 0.4054f |
Definition at line 35 of file aacenc_utils.h.
Referenced by search_for_quantizers_faac().
#define ROUND_TO_ZERO 0.1054f |
Definition at line 36 of file aacenc_utils.h.
#define C_QUANT 0.4054f |
Definition at line 37 of file aacenc_utils.h.
Referenced by find_min_book().
#define ERROR_IF | ( | cond, | |
... | |||
) |
Definition at line 131 of file aacenc_utils.h.
Referenced by aac_encode_init().
#define WARN_IF | ( | cond, | |
... | |||
) |
Definition at line 137 of file aacenc_utils.h.
Referenced by aac_encode_init().
|
inlinestatic |
Definition at line 39 of file aacenc_utils.h.
Referenced by codebook_trellis_rate(), encode_window_bands_info(), ff_aac_is_encoding_err(), ff_aac_search_for_pred(), quantize_and_encode_band_cost_template(), search_for_ms(), search_for_quantizers_anmr(), search_for_quantizers_faac(), and search_for_quantizers_twoloop().
|
inlinestatic |
Quantize one coefficient.
Definition at line 53 of file aacenc_utils.h.
|
inlinestatic |
Definition at line 59 of file aacenc_utils.h.
Referenced by quantize_and_encode_band_cost_template().
|
inlinestatic |
Definition at line 74 of file aacenc_utils.h.
Referenced by ff_aac_is_encoding_err(), ff_aac_search_for_pred(), search_for_quantizers_anmr(), and search_for_quantizers_twoloop().
|
inlinestatic |
Definition at line 86 of file aacenc_utils.h.
Referenced by ff_aac_is_encoding_err(), ff_aac_search_for_pred(), search_for_quantizers_anmr(), and search_for_quantizers_twoloop().
|
inlinestatic |
Return the minimum scalefactor where the quantized coef does not clip.
Definition at line 103 of file aacenc_utils.h.
Referenced by search_for_quantizers_anmr().
|
inlinestatic |
Return the maximum scalefactor where the quantized coef is not zero.
Definition at line 109 of file aacenc_utils.h.
Referenced by search_for_quantizers_anmr().
|
inlinestatic |
Definition at line 117 of file aacenc_utils.h.