Home
last modified time | relevance | path

Searched refs:CLAMP (Results 1 – 10 of 10) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_yuv.h118 *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()
Dformat_utils.h164 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()
Du_format_other.c300 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()
Du_format_zs.c304 *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/
Dbitpack_helpers.h151 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()
Du_math.h626 #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()
Dmacros.h360 #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/
Dmm_jpegdec_test.c45 #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/
Dtypes.hal156 CLAMP,
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_video.c642 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()