Home
last modified time | relevance | path

Searched refs:scaled_value (Results 1 – 4 of 4) sorted by relevance

/third_party/libsnd/src/
Dpcm.c1783 { float normfact, scaled_value ; in f2sc_clip_array() local
1788 { scaled_value = src [i] * normfact ; in f2sc_clip_array()
1789 if (scaled_value >= (1.0 * 0x7FFFFFFF)) in f2sc_clip_array()
1793 if (scaled_value <= (-8.0 * 0x10000000)) in f2sc_clip_array()
1798 dest [i] = psf_lrintf (scaled_value) >> 24 ; in f2sc_clip_array()
1842 { float normfact, scaled_value ; in f2uc_clip_array() local
1847 { scaled_value = src [i] * normfact ; in f2uc_clip_array()
1848 if (scaled_value >= (1.0 * 0x7FFFFFFF)) in f2uc_clip_array()
1852 if (scaled_value <= (-8.0 * 0x10000000)) in f2uc_clip_array()
1857 dest [i] = (psf_lrintf (scaled_value) >> 24) + 128 ; in f2uc_clip_array()
[all …]
Dflac.c1188 { float normfact, scaled_value ; in f2flac8_clip_array() local
1193 { scaled_value = src [i] * normfact ; in f2flac8_clip_array()
1194 if (scaled_value >= (1.0 * 0x7F)) in f2flac8_clip_array()
1198 if (scaled_value <= (-8.0 * 0x10)) in f2flac8_clip_array()
1202 dest [i] = psf_lrintf (scaled_value) ; in f2flac8_clip_array()
1210 { float normfact, scaled_value ; in f2flac16_clip_array() local
1215 { scaled_value = src [i] * normfact ; in f2flac16_clip_array()
1216 if (scaled_value >= (1.0 * 0x7FFF)) in f2flac16_clip_array()
1220 if (scaled_value <= (-8.0 * 0x1000)) in f2flac16_clip_array()
1224 dest [i] = psf_lrintf (scaled_value) ; in f2flac16_clip_array()
[all …]
Dcommon.c1689 { float normfact, scaled_value ; in psf_f2s_clip_array() local
1694 { scaled_value = src [i] * normfact ; in psf_f2s_clip_array()
1695 if (scaled_value >= (1.0 * 0x7FFF)) in psf_f2s_clip_array()
1699 if (scaled_value <= (-8.0 * 0x1000)) in psf_f2s_clip_array()
1704 dest [i] = psf_lrintf (scaled_value) ; in psf_f2s_clip_array()
1723 { double normfact, scaled_value ; in psf_d2s_clip_array() local
1728 { scaled_value = src [i] * normfact ; in psf_d2s_clip_array()
1729 if (scaled_value >= (1.0 * 0x7FFF)) in psf_d2s_clip_array()
1733 if (scaled_value <= (-8.0 * 0x1000)) in psf_d2s_clip_array()
1738 dest [i] = psf_lrint (scaled_value) ; in psf_d2s_clip_array()
[all …]
/third_party/vk-gl-cts/external/amber/src/src/
Dverifier.cc291 double scaled_value = (*texel)[i]; in ScaleTexelValuesIfNeeded() local
293 scaled_value /= static_cast<double>((1 << seg.GetNumBits()) - 1); in ScaleTexelValuesIfNeeded()
295 scaled_value /= static_cast<double>((1 << (seg.GetNumBits() - 1)) - 1); in ScaleTexelValuesIfNeeded()
297 scaled_value /= static_cast<double>((1 << seg.GetNumBits()) - 1); in ScaleTexelValuesIfNeeded()
299 scaled_value = SRGBToLinearValue(scaled_value); in ScaleTexelValuesIfNeeded()
305 (*texel)[i] = scaled_value; in ScaleTexelValuesIfNeeded()