FFmpeg
Functions
aacenc_quantization.h File Reference
#include <stddef.h>
#include "aacenc.h"
#include "put_bits.h"
#include "aacenc_quantization_misc.h"

Go to the source code of this file.

Functions

float ff_quantize_and_encode_band_cost (AACEncContext *s, PutBitContext *pb, const float *in, float *quant, 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 (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 int quantize_band_cost_bits (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)
 

Detailed Description

AAC encoder quantizer

Author
Rostislav Pehlivanov ( atomnuker gmail com )

Definition in file aacenc_quantization.h.

Function Documentation

◆ ff_quantize_and_encode_band_cost()

float ff_quantize_and_encode_band_cost ( AACEncContext s,
PutBitContext pb,
const float in,
float quant,
const float scaled,
int  size,
int  scale_idx,
int  cb,
const float  lambda,
const float  uplim,
int *  bits,
float energy 
)

Definition at line 269 of file aaccoder.c.

Referenced by ff_aac_search_for_pred(), quantize_band_cost(), and quantize_band_cost_bits().

◆ quantize_band_cost()

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 
)
inlinestatic

◆ quantize_band_cost_bits()

static int quantize_band_cost_bits ( 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 
)
inlinestatic

Definition at line 52 of file aacenc_quantization.h.

Referenced by codebook_trellis_rate().