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