Searched refs:CLAMP (Results 1 – 10 of 10) sorted by relevance
/hardware/google/gfxstream/guest/mesa/src/util/format/ |
D | u_format_yuv.h | 118 *r = CLAMP(_r, 0, 255); in util_format_yuv_to_rgb_8unorm() 119 *g = CLAMP(_g, 0, 255); in util_format_yuv_to_rgb_8unorm() 120 *b = CLAMP(_b, 0, 255); in util_format_yuv_to_rgb_8unorm()
|
D | format_utils.h | 164 return CLAMP(src, u_intN_min(dst_size), u_intN_max(dst_size)); in _mesa_signed_to_signed() 170 return CLAMP(src, 0, u_uintN_max(dst_size)); in _mesa_signed_to_unsigned()
|
D | u_format_other.c | 300 value |= (uint16_t)(((int8_t)(CLAMP(src[0], -1, 1) * 0x7f)) & 0xff) ; in util_format_r8g8bx_snorm_pack_rgba_float() 301 value |= (uint16_t)((((int8_t)(CLAMP(src[1], -1, 1) * 0x7f)) & 0xff) << 8) ; in util_format_r8g8bx_snorm_pack_rgba_float()
|
D | u_format_zs.c | 304 *dst++ = z32_float_to_z32_unorm(CLAMP(z, 0.0f, 1.0f)); in util_format_z32_float_unpack_z_32unorm() 862 *dst = z32_float_to_z32_unorm(CLAMP(*src, 0.0f, 1.0f)); in util_format_z32_float_s8x24_uint_unpack_z_32unorm()
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | bitpack_helpers.h | 151 const int64_t int_val = llroundf(CLAMP(v, min, max) * factor); in util_bitpack_sfixed_clamp() 197 const uint64_t uint_val = llroundf(CLAMP(v, min, max) * factor); in util_bitpack_ufixed_clamp()
|
D | u_math.h | 626 #define CLAMP( X, MIN, MAX ) ( (X)>(MIN) ? ((X)>(MAX) ? (MAX) : (X)) : (MIN) ) macro 629 #define SATURATE( X ) CLAMP(X, 0.0f, 1.0f) 803 lod = CLAMP(lod, -32, 31); in util_quantize_lod_bias()
|
D | macros.h | 360 #define CLAMP( X, MIN, MAX ) ( (X)>(MIN) ? ((X)>(MAX) ? (MAX) : (X)) : (MIN) ) macro 363 #define SATURATE( X ) CLAMP(X, 0.0f, 1.0f)
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpegdec_test.c | 45 #define CLAMP(x, min, max) MIN(MAX((x), (min)), (max)) macro 368 format = CLAMP(format, 0, num_formats); in mm_jpegdec_test_get_input()
|
/hardware/interfaces/renderscript/1.0/ |
D | types.hal | 156 CLAMP,
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_video.c | 642 params->chroma_offset_l0[i][j] = CLAMP(params->delta_chroma_offset_l0[i][j] - in h265_pred_weight_table() 685 params->chroma_offset_l1[i][j] = CLAMP(params->delta_chroma_offset_l1[i][j] - in h265_pred_weight_table()
|