/hardware/google/gfxstream/host/tests/ |
D | GLTestUtils.cpp | 102 static float clamp(float x, float low, float high) { in clamp() function 115 res[i * bpp * width + j * bpp + 0] = clamp(r, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor() 116 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor() 117 res[i * bpp * width + j * bpp + 2] = clamp(b, 0.0f, 1.0f) * 255.0f; in createTestTextureRGB888SingleColor() 131 res[i * bpp * width + j * bpp + 0] = clamp(r, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor() 132 res[i * bpp * width + j * bpp + 1] = clamp(g, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor() 133 res[i * bpp * width + j * bpp + 2] = clamp(b, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor() 134 res[i * bpp * width + j * bpp + 3] = clamp(a, 0.0f, 1.0f) * 255.0f; in createTestTextureRGBA8888SingleColor()
|
/hardware/google/gfxstream/common/etc/ |
D | etc.cpp | 159 static inline int clamp(int x) { in clamp() function 256 *q++ = clamp(r + delta); in decode_subblock() 257 *q++ = clamp(g + delta); in decode_subblock() 258 *q++ = clamp(b + delta); in decode_subblock() 313 clrTable[3] = clamp(r2 + intenseMod); in etc2_decode_block_T() 314 clrTable[4] = clamp(g2 + intenseMod); in etc2_decode_block_T() 315 clrTable[5] = clamp(b2 + intenseMod); in etc2_decode_block_T() 319 clrTable[9] = clamp(r2 - intenseMod); in etc2_decode_block_T() 320 clrTable[10] = clamp(g2 - intenseMod); in etc2_decode_block_T() 321 clrTable[11] = clamp(b2 - intenseMod); in etc2_decode_block_T() [all …]
|
/hardware/google/gfxstream/third-party/glm/include/glm/detail/ |
D | func_packing.inl | 18 u16vec2 result(round(clamp(v, 0.0f, 1.0f) * 65535.0f)); 47 i16vec2 result(round(clamp(v, -1.0f, 1.0f) * 32767.0f)); 65 return clamp(vec2(u.out[0], u.out[1]) * 3.0518509475997192297128208258309e-5f, -1.0f, 1.0f); 76 u8vec4 result(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 107 i8vec4 result(round(clamp(v, -1.0f, 1.0f) * 127.0f)); 127 return clamp(vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0078740157480315f, -1.0f, 1.0f);
|
D | func_common.hpp | 176 GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal); 179 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, T minVal, T maxVal); 182 …GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, vecType<T, P> const & minVal, vecType<T…
|
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/ |
D | vector_angle.inl | 14 return acos(clamp(dot(x, y), genType(-1), genType(1))); 25 return acos(clamp(dot(x, y), T(-1), T(1))); 37 T const Angle(acos(clamp(dot(x, y), T(-1), T(1)))); 55 T const Angle(acos(clamp(dot(x, y), T(-1), T(1))));
|
D | wrap.inl | 7 GLM_FUNC_QUALIFIER vecType<T, P> clamp(vecType<T, P> const& Texcoord) function 9 return glm::clamp(Texcoord, vecType<T, P>(0), vecType<T, P>(1)); 13 GLM_FUNC_QUALIFIER genType clamp(genType const & Texcoord) function 15 return clamp(tvec1<genType, defaultp>(Texcoord)).x;
|
D | compatibility.hpp | 47 …template <typename T, precision P> GLM_FUNC_QUALIFIER T saturate(T x){return clamp(x, T(0), T(1));… in saturate() 48 …n P> GLM_FUNC_QUALIFIER tvec2<T, P> saturate(const tvec2<T, P>& x){return clamp(x, T(0), T(1));} … in saturate() 49 …n P> GLM_FUNC_QUALIFIER tvec3<T, P> saturate(const tvec3<T, P>& x){return clamp(x, T(0), T(1));} … in saturate() 50 …n P> GLM_FUNC_QUALIFIER tvec4<T, P> saturate(const tvec4<T, P>& x){return clamp(x, T(0), T(1));} … in saturate()
|
D | wrap.hpp | 31 GLM_FUNC_DECL genType clamp(genType const& Texcoord);
|
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/ |
D | packing.inl | 356 return static_cast<uint8>(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 367 u8vec2 const Topack(round(clamp(v, 0.0f, 1.0f) * 255.0f)); 383 int8 const Topack(static_cast<int8>(round(clamp(v ,-1.0f, 1.0f) * 127.0f))); 393 return clamp( 400 i8vec2 const Topack(round(clamp(v, -1.0f, 1.0f) * 127.0f)); 410 return clamp( 417 return static_cast<uint16>(round(clamp(s, 0.0f, 1.0f) * 65535.0f)); 428 u16vec4 const Topack(round(clamp(v , 0.0f, 1.0f) * 65535.0f)); 443 int16 const Topack = static_cast<int16>(round(clamp(v ,-1.0f, 1.0f) * 32767.0f)); 453 return clamp( [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/ |
D | VK_QCOM_filter_cubic_clamp.adoc | 17 anti-ringing clamp. 27 The solution to the ringing problem is to clamp the post-cubic-filtered 32 Certain Adreno GPUs are able to perform the range clamp in the texture unit 39 enables the range clamp operation.
|
D | VK_EXT_image_view_min_lod.adoc | 23 This extension allows applications to clamp the minimum LOD value during
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/ |
D | fragmentdensitymapops.adoc | 24 ** <<fragmentdensitymap-fragment-area-clamp,Fragment area clamp>> 54 x' &= \mathbin{clamp}(x + pFragmentDensityOffsets[layer]_{x}, 0, framebuffer_{width} - 1) \\ 55 y' &= \mathbin{clamp}(y + pFragmentDensityOffsets[layer]_{y}, 0, framebuffer_{height} - 1) \\ 80 …\mathbin{clamp}(fragmentDensityTexelSize'_{width},minFragmentDensityTexelSize_{width},maxFragmentD… 82 …\mathbin{clamp}(fragmentDensityTexelSize'_{height},minFragmentDensityTexelSize_{height},maxFragmen… 137 [[fragmentdensitymap-fragment-area-clamp]] 140 The implementation may: clamp the fetched fragment area to one that it 153 to clamp the area to [eq]#(2,2)# since it has the same size as [eq]#(1,4)#.
|
/hardware/google/camera/common/hal/utils/ |
D | utils.h | 111 *x = std::clamp(*x, static_cast<T>(0), 113 *y = std::clamp(*y, static_cast<T>(0), 117 *width = std::clamp(*width, static_cast<T>(1), 121 *height = std::clamp(*height, static_cast<T>(1),
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_color_quantize.cpp | 57 value = astc::clamp(value, 0, 255); in quant_color_clamp() 811 scale_idx = astc::clamp(scale_idx, 0, 255); in quantize_rgbs() 1050 color = clamp(0.0f, 65535.0f, color); in quantize_hdr_rgbo() 1153 g_fval = astc::clamp(g_fval, 0.0f, 65535.0f); in quantize_hdr_rgbo() 1154 b_fval = astc::clamp(b_fval, 0.0f, 65535.0f); in quantize_hdr_rgbo() 1263 s_fval = astc::clamp(s_fval, 0.0f, 1e9f); in quantize_hdr_rgbo() 1339 vals[i] = astc::clamp(vals[i], 0.0f, 65020.0f); in quantize_hdr_rgbo() 1347 vals[3] = astc::clamp(vals[3], 0.0f, 65020.0f); in quantize_hdr_rgbo() 1381 color0 = clamp(0.0f, 65535.0f, color0); in quantize_hdr_rgb() 1382 color1 = clamp(0.0f, 65535.0f, color1); in quantize_hdr_rgb() [all …]
|
D | astcenc_compute_variance.cpp | 164 z_src = astc::clamp(z_src, 0, static_cast<int>(img->dim_z - 1)); in compute_pixel_region_variance() 170 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance() 175 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance() 208 z_src = astc::clamp(z_src, 0, static_cast<int>(img->dim_z - 1)); in compute_pixel_region_variance() 214 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance() 219 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance() 247 z_src = astc::clamp(z_src, 0, static_cast<int>(img->dim_z - 1)); in compute_pixel_region_variance() 253 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance() 258 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
|
D | astcenccli_error_metrics.cpp | 77 return astc::clamp(val, 0.0f, 255.0f); in mpsnr_operator() 180 color1 = clamp(0, 65504.0f, color1); in compute_error_metrics() 193 color1 = clamp(0, 65504.0f, color1); in compute_error_metrics() 219 color2 = clamp(0, 65504.0f, color2); in compute_error_metrics() 232 color2 = clamp(0, 65504.0f, color2); in compute_error_metrics() 281 float normal_cos = clamp(-1.0f, 1.0f, dot3(normal1, normal2)).lane<0>(); in compute_error_metrics()
|
D | astcenc_color_unquantize.cpp | 113 output0 = clamp(0, 255, input0); in rgba_delta_unpack() 114 output1 = clamp(0, 255, input1); in rgba_delta_unpack() 361 lum1 = astc::clamp(lum1, 0, 255); in luminance_alpha_delta_unpack() 362 alpha1 = astc::clamp(alpha1, 0, 255); in luminance_alpha_delta_unpack() 652 red0 = astc::clamp(red0, 0, 4095); in hdr_rgb_unpack() 653 green0 = astc::clamp(green0, 0, 4095); in hdr_rgb_unpack() 654 blue0 = astc::clamp(blue0, 0, 4095); in hdr_rgb_unpack() 656 red1 = astc::clamp(red1, 0, 4095); in hdr_rgb_unpack() 657 green1 = astc::clamp(green1, 0, 4095); in hdr_rgb_unpack() 658 blue1 = astc::clamp(blue1, 0, 4095); in hdr_rgb_unpack()
|
D | astcenc_mathlib.h | 252 inline T clamp(T v, T mn, T mx) in clamp() function 272 return astc::clamp(v, 0.0f, 1.0f); in clamp1f() 286 return astc::clamp(v, 0.0f, 255.0f); in clamp255f()
|
D | astcenc_entry.cpp | 436 config.tune_partition_count_limit = astc::clamp(config.tune_partition_count_limit, 1u, 4u); in validate_config() 437 …config.tune_2partition_index_limit = astc::clamp(config.tune_2partition_index_limit, 1u, BLOCK_MAX… in validate_config() 438 …config.tune_3partition_index_limit = astc::clamp(config.tune_3partition_index_limit, 1u, BLOCK_MAX… in validate_config() 439 …config.tune_4partition_index_limit = astc::clamp(config.tune_4partition_index_limit, 1u, BLOCK_MAX… in validate_config() 440 config.tune_block_mode_limit = astc::clamp(config.tune_block_mode_limit, 1u, 100u); in validate_config() 442 …config.tune_candidate_limit = astc::clamp(config.tune_candidate_limit, 1u, TUNE_MAX_TRIAL_CANDIDAT… in validate_config() 443 …config.tune_2partitioning_candidate_limit = astc::clamp(config.tune_2partitioning_candidate_limit,… in validate_config() 444 …config.tune_3partitioning_candidate_limit = astc::clamp(config.tune_3partitioning_candidate_limit,… in validate_config() 445 …config.tune_4partitioning_candidate_limit = astc::clamp(config.tune_4partitioning_candidate_limit,… in validate_config()
|
D | astcenc_vecmathlib.h | 328 x = clamp(-126.99999f, 129.0f, x); in exp2() 413 return clamp(0, 32, a); in clz() 455 vint4 lz = clamp(0, 32, a) - 16; in unorm16_to_sf16()
|
D | astcenc_vecmathlib_common_4.h | 119 ASTCENC_SIMD_INLINE vint4 clamp(int minv, int maxv, vint4 a) in clamp() function 219 ASTCENC_SIMD_INLINE vfloat4 clamp(float minv, float maxv, vfloat4 a) in clamp() function
|
/hardware/interfaces/automotive/evs/common/utils/default/ |
D | FormatConvert.cpp | 39 inline float Utils::clamp(float v, float min, float max) { in clamp() function in android::hardware::automotive::evs::common::Utils 59 unsigned char R = (unsigned char)clamp(Rf, 0.0f, 255.0f); in yuvToRgbx() 60 unsigned char G = (unsigned char)clamp(Gf, 0.0f, 255.0f); in yuvToRgbx() 61 unsigned char B = (unsigned char)clamp(Bf, 0.0f, 255.0f); in yuvToRgbx()
|
/hardware/interfaces/audio/aidl/default/alsa/ |
D | Mixer.cpp | 137 [](int percent) -> float { return std::clamp(percent / 100.0f, 0.0f, 1.0f); }); in getVolumes() 163 [](float volume) -> int { return std::floor(std::clamp(volume, 0.0f, 1.0f) * 100); }); in setVolumes() 213 *volume = std::clamp(percents[0] / 100.0f, 0.0f, 1.0f); in getMixerControlVolume() 231 volume = std::clamp(volume, 0.0f, 1.0f); in setMixerControlVolume()
|
/hardware/interfaces/automotive/evs/common/utils/default/include/ |
D | FormatConvert.h | 86 static inline float clamp(float v, float min, float max);
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/VK_QCOM_rotated_copies/ |
D | rotated_addressing_blits.adoc | 88 Implementations must: clamp at the edge of the source image, and may: 89 additionally clamp to the edge of the source region.
|