Lines Matching refs:f_value
29 void testFloatValue(float f_value, size_t length) {
30 const float power = audio_utils_power_from_amplitude(f_value);
40 const uint8_t u8_value((1.f - f_value) * 128);
41 const int16_t i16_value(f_value * INT16_MIN);
42 const int32_t i32_value (f_value * INT32_MIN);
43 const int32_t q8_23_value(f_value * -(1 << 23));
61 f_ary[i] = f_value;
99 const float f_value = (int(length & 0xff) - 128) / 128.f;
103 const uint8_t u8_value((1.f - f_value) * 128);
104 const int16_t i16_value(f_value * INT16_MIN);
105 const int32_t i32_value (f_value * INT32_MIN);
106 const int32_t q8_23_value(f_value * -(1 << 23));
123 f_ary[i] = f_value;
148 for (float f_value : { 0.f, 0.25f, 0.5f, 0.75f, 1.f }) {
149 const float power = audio_utils_power_from_amplitude(f_value);
150 printf("power_mono: amplitude: %f power: %f\n", f_value, power);
153 testFloatValue(f_value, length);