/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
FadeTexture.java | 75 return Utils.clamp(1.0f - r, 0.0f, 1.0f);
|
/packages/services/Car/evs/app/ |
FormatConvert.cpp | 32 static inline float clamp(float v, float min, float max) { function 49 unsigned char R = (unsigned char)clamp(Rf, 0.0f, 255.0f); 50 unsigned char G = (unsigned char)clamp(Gf, 0.0f, 255.0f); 51 unsigned char B = (unsigned char)clamp(Bf, 0.0f, 255.0f);
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
AnnotationsMergerTest.kt | 48 public @IntRange(from=10,to=20) int clamp(int i) { return 10; } 66 method @androidx.annotation.IntRange(from=10, to=20) public int clamp(int); 86 public int clamp(int i) { return 10; } 108 <item name="test.pkg.MyTest int clamp(int)"> 114 <item name="test.pkg.MyTest int clamp(int) 0"> 126 method @androidx.annotation.IntRange(from=10, to=20) public int clamp(@androidx.annotation.IntRange(from=-1L, to=java.lang.Integer.MAX_VALUE) int);
|
/external/deqp/external/openglcts/modules/common/ |
glcPolygonOffsetClampTests.hpp | 41 GLfloat clamp; member in struct:glcts::PolygonOffsetClampValues 43 PolygonOffsetClampValues(GLfloat _f, GLfloat _u, GLfloat _c) : factor(_f), units(_u), clamp(_c) 66 /** Test verifies if polygon offset clamp works as expected for non-zero, finite clamp values 79 /** Base class for polygon offset clamp depth values verifying 108 /** Test verifies if polygon offset clamp works as expected for zero and infinite clamp values 123 /** Test verifies if polygon offset clamp works as expected for zero and infinite clamp values
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
nine_limits.h | 46 } clamp; member in union:nine_state_behaviour::__anon30213 60 [D3DRS_##o] = {NINE_STATE_CLAMP, {.clamp = {m, M}}} 191 if (Value < behaviour.u.clamp.min) 192 Value = behaviour.u.clamp.min; 193 else if (Value > behaviour.u.clamp.max) 194 Value = behaviour.u.clamp.max;
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { function 94 static inline float4 clamp(float4 amount, float low, float high) { function 103 static inline int2 clamp(int2 amount, int low, int high) { function 110 static inline float2 clamp(float2 amount, float low, float high) { function 117 static inline int clamp(int amount, int low, int high) { function 121 static inline float clamp(float amount, float low, float high) { function
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
resize.rs | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 89 p = clamp(p + 0.5f, 0.f, 255.f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
threshold.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, 0.f, 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
threshold_half.rs | 88 int validH = clamp((int)y + r, (int)0, (int)(height - 1)); 94 out.xyz = convert_uchar3(clamp(blurredPixel, (half) 0.f, (half) 255.f)); 110 int validX = clamp((int)x + r, (int)0, (int)(width - 1));
|
/external/deqp/framework/common/ |
tcuTexLookupVerifier.cpp | 652 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); 653 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); 706 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); 707 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); 708 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); 709 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); 773 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); 774 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); 775 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); 776 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f) [all...] |
tcuTexCompareVerifier.cpp | 66 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); 67 const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference_); 609 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); 610 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); 611 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); 612 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); 735 const float minA0 = de::clamp((uBounds0.x()-0.5f)-float(i0), 0.0f, 1.0f); 736 const float maxA0 = de::clamp((uBounds0.y()-0.5f)-float(i0), 0.0f, 1.0f); 737 const float minB0 = de::clamp((vBounds0.x()-0.5f)-float(j0), 0.0f, 1.0f); 738 const float maxB0 = de::clamp((vBounds0.y()-0.5f)-float(j0), 0.0f, 1.0f) [all...] |
/prebuilts/go/darwin-x86/test/ |
copy.go | 89 func clamp(n int) int { func 109 n := copy(my8(output8[out:clamp(out+length)]), input8[in:clamp(in+length)]) 111 n = copy(my8(outputS[out:clamp(out+length)]), myS(inputS[in:clamp(in+length)])) 113 n = copy(my16(output16[out:clamp(out+length)]), input16[in:clamp(in+length)]) 115 n = copy(my32(output32[out:clamp(out+length)]), my32b(input32[in:clamp(in+length)])) 117 n = copy(my64(output64[out:clamp(out+length)]), input64[in:clamp(in+length)] [all...] |
/prebuilts/go/linux-x86/test/ |
copy.go | 89 func clamp(n int) int { func 109 n := copy(my8(output8[out:clamp(out+length)]), input8[in:clamp(in+length)]) 111 n = copy(my8(outputS[out:clamp(out+length)]), myS(inputS[in:clamp(in+length)])) 113 n = copy(my16(output16[out:clamp(out+length)]), input16[in:clamp(in+length)]) 115 n = copy(my32(output32[out:clamp(out+length)]), my32b(input32[in:clamp(in+length)])) 117 n = copy(my64(output64[out:clamp(out+length)]), input64[in:clamp(in+length)] [all...] |
/device/generic/goldfish/camera/ |
Converters.h | 133 clamp(int x) function in namespace:android 192 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8) 193 #define YUV2GO(C, D, E) clamp((298 * (C) - 100 * (D) - 208 * (E) + 128) >> 8) 194 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8) 199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) 200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) 201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8)
|
/device/google/cuttlefish_common/guest/hals/camera/ |
Converters.h | 148 static __inline__ int clamp(int x) { function in namespace:android 206 #define YUV2RO(C, D, E) clamp((298 * (C) + 409 * (E) + 128) >> 8) 207 #define YUV2GO(C, D, E) clamp((298 * (C)-100 * (D)-208 * (E) + 128) >> 8) 208 #define YUV2BO(C, D, E) clamp((298 * (C) + 516 * (D) + 128) >> 8) 213 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) 215 clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) 216 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8)
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
vktShaderPackingFunctionTests.cpp | 214 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 215 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 322 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); 323 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); 437 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 438 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1) [all...] |
/external/deqp/modules/gles31/functional/ |
es31fShaderPackingFunctionTests.cpp | 213 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 214 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1); 303 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); 304 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); 404 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1); 405 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1) [all...] |
/external/libxcam/cl_kernel/ |
kernel_defog_dcp.cl | 44 r = clamp (r, 0.0f, 255.0f); 45 g = clamp (g, 0.0f, 255.0f); 46 b = clamp (b, 0.0f, 255.0f); 120 out_data = clamp (out_data, 0.0f, 255.0f); 123 out_data = clamp (out_data, 0.0f, 255.0f); 132 out_data = clamp (out_data, 0.0f, 255.0f);
|
/external/swiftshader/src/Renderer/ |
Color.hpp | 95 r = clamp(c.r >> 4, 0, 255); 96 g = clamp(c.g >> 4, 0, 255); 97 b = clamp(c.b >> 4, 0, 255); 98 a = clamp(c.a >> 4, 0, 255); 104 r = ifloor(clamp(c.r * 256.0f, 0.0f, 255.0f)); 105 g = ifloor(clamp(c.g * 256.0f, 0.0f, 255.0f)); 106 b = ifloor(clamp(c.b * 256.0f, 0.0f, 255.0f)); 107 a = ifloor(clamp(c.a * 256.0f, 0.0f, 255.0f)); 140 r = iround(clamp(c.r * 4095.0f, -4096.0f, 4095.0f)); 141 g = iround(clamp(c.g * 4095.0f, -4096.0f, 4095.0f)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
Paper.java | 136 mValue = Utils.clamp(mValue + deltaDistance, -1.0f, 1.0f); 146 float finish = Utils.clamp(mValue + velocity * VELOCITY_FACTOR, 155 float t = Utils.clamp((float)(now() - mStartTime) / mDuration, 0.0f, 1.0f);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
resize.rs | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 89 p = clamp(p + 0.5f, 0.f, 255.f);
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/rs/ |
hdr_merge.rs | 78 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/rs/ |
hdr_merge.rs | 78 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
|
/development/samples/browseable/HdrViewfinder/src/rs/ |
hdr_merge.rs | 78 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
|