Home
last modified time | relevance | path

Searched refs:normalized_factor (Results 1 – 2 of 2) sorted by relevance

/external/adhd/cras/src/server/
Dcras_fmt_conv_ops.c286 const float normalized_factor = 0.585; in s16_51_to_stereo() local
289 in[6 * i + center_idx] * 0.707 * normalized_factor; in s16_51_to_stereo()
291 in[6 * i + left_idx] * normalized_factor + half_center; in s16_51_to_stereo()
293 in[6 * i + right_idx] * normalized_factor + half_center; in s16_51_to_stereo()
323 const float normalized_factor = 0.453; in s16_51_to_quad() local
329 half_center = in[6 * i + center_51] * 0.707 * normalized_factor; in s16_51_to_quad()
330 lfe = in[6 * i + lfe_51] * 0.5 * normalized_factor; in s16_51_to_quad()
331 out[4 * i + l_quad] = normalized_factor * in[6 * i + l_51] + in s16_51_to_quad()
333 out[4 * i + r_quad] = normalized_factor * in[6 * i + r_51] + in s16_51_to_quad()
336 normalized_factor * in[6 * i + rl_51] + lfe; in s16_51_to_quad()
[all …]
/external/adhd/cras/src/tests/
Dfmt_conv_ops_unittest.cc527 const float normalized_factor = 0.585; in TEST() local
530 int16_t half_center = src[i * 6 + center] * 0.707 * normalized_factor; in TEST()
531 int16_t l = normalized_factor * src[i * 6 + left] + half_center; in TEST()
532 int16_t r = normalized_factor * src[i * 6 + right] + half_center; in TEST()
564 const float normalized_factor = 0.453; in TEST() local
566 int16_t half_center = src[i * 6 + center_51] * 0.707 * normalized_factor; in TEST()
567 int16_t lfe = src[6 * i + lfe_51] * 0.5 * normalized_factor; in TEST()
568 int16_t fl = normalized_factor * src[6 * i + fl_51] + half_center + lfe; in TEST()
569 int16_t fr = normalized_factor * src[6 * i + fr_51] + half_center + lfe; in TEST()
570 int16_t rl = normalized_factor * src[6 * i + rl_51] + lfe; in TEST()
[all …]