28#ifndef AVCODEC_AACENC_QUANTIZATION_MISC_H
29#define AVCODEC_AACENC_QUANTIZATION_MISC_H
32 const float *scaled,
int size,
int scale_idx,
33 int cb,
const float lambda,
const float uplim,
34 int *
bits,
float *energy,
int rtz)
38 entry = &
s->quantize_band_cost_cache[scale_idx][
w*16+
g];
39 if (
entry->generation !=
s->quantize_band_cost_cache_generation ||
entry->cb !=
cb ||
entry->rtz != rtz) {
44 entry->generation =
s->quantize_band_cost_cache_generation;
49 *energy =
entry->energy;
static float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits, float *energy)
static float quantize_band_cost_cached(struct AACEncContext *s, int w, int g, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits, float *energy, int rtz)
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
static const uint8_t bits[8]
static double cb(void *priv, double x, double y)