Go to the documentation of this file.
28 for (
int i = 0;
i <
size;
i++) {
35 int size,
int is_signed,
int maxval,
const float Q34,
38 for (
int i = 0;
i <
size;
i++) {
39 float qc = scaled[
i] * Q34;
40 int tmp = (int)
FFMIN((
float)(qc + rounding), (
float)maxval);
41 if (is_signed && in[
i] < 0.0
f) {
55 #elif ARCH_X86 && HAVE_X86ASM
void ff_aacenc_dsp_init_riscv(AACEncDSPContext *s)
static __device__ float fabsf(float a)
void ff_aacenc_dsp_init_x86(AACEncDSPContext *s)
void ff_aacenc_dsp_init_aarch64(AACEncDSPContext *s)
static void abs_pow34_v(float *out, const float *in, const int size)
static __device__ float sqrtf(float a)
#define i(width, name, range_min, range_max)
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
static void quantize_bands(int *out, const float *in, const float *scaled, int size, int is_signed, int maxval, const float Q34, const float rounding)
void ff_aacenc_dsp_init(AACEncDSPContext *s)