Searched refs:scaled_value (Results 1 – 4 of 4) sorted by relevance
1783 { float normfact, scaled_value ; in f2sc_clip_array() local1788 { 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() local1847 { 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 …]
1188 { float normfact, scaled_value ; in f2flac8_clip_array() local1193 { 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() local1215 { 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 …]
1689 { float normfact, scaled_value ; in psf_f2s_clip_array() local1694 { 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() local1728 { 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 …]
291 double scaled_value = (*texel)[i]; in ScaleTexelValuesIfNeeded() local293 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()