HomeSort by relevance Sort by last modified time
    Searched refs:clamp (Results 151 - 175 of 676) sorted by null

1 2 3 4 5 67 8 91011>>

  /frameworks/rs/driver/runtime/
Android.mk 63 arch/clamp.c
68 arch/clamp.c
178 LOCAL_SRC_FILES_64 += arch/asimd.ll arch/clamp.c
  /frameworks/support/car/src/main/java/androidx/car/widget/
PagedSnapHelper.java 246 * This method will clamp the maximum scroll distance so that a single fling will never scroll
283 outDist[0] = clamp(outDist[0], minDistance, maxDistance);
284 outDist[1] = clamp(outDist[1], minDistance, maxDistance);
354 * @param value The value to clamp.
360 private static int clamp(int value, int min, int max) { method in class:PagedSnapHelper
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Utils.java 99 public static int clamp(int x, int min, int max) { method in class:Utils
106 public static float clamp(float x, float min, float max) { method in class:Utils
113 public static long clamp(long x, long min, long max) { method in class:Utils
  /packages/apps/Gallery2/jni/filters/
wbalance.c 166 rgb[RED] = clamp(Rc);
167 rgb[GREEN] = clamp(Gc);
168 rgb[BLUE] = clamp(Bc);
  /external/skqp/third_party/etc1/
etc1.cpp 130 static inline etc1_byte clamp(int x) { function
199 *q++ = clamp(r + delta);
200 *q++ = clamp(g + delta);
201 *q++ = clamp(b + delta);
319 int decodedG = clamp(g + modifier);
324 int decodedR = clamp(r + modifier);
329 int decodedB = clamp(b + modifier);
  /frameworks/native/opengl/libs/ETC1/
etc1.cpp 122 static inline etc1_byte clamp(int x) { function
191 *q++ = clamp(r + delta);
192 *q++ = clamp(g + delta);
193 *q++ = clamp(b + delta);
311 int decodedG = clamp(g + modifier);
316 int decodedR = clamp(r + modifier);
321 int decodedB = clamp(b + modifier);
  /external/deqp/framework/referencerenderer/
rrFragmentOperations.cpp 36 using tcu::clamp;
39 using de::clamp;
111 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1);
146 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1);
153 case STENCILOP_INCR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits) - 1)) break;
154 case STENCILOP_DECR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue-1, 0, (1<<numStencilBits) - 1)) break;
176 float sampleDepth = de::clamp(sampleDepthFloat, 0.0f, 1.0f); \
259 const float clampedDepth = de::clamp(frag.sampleDepths[fragSampleNdx], 0.0f, 1.0f);
287 case STENCILOP_INCR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits) - 1)) break; \
288 case STENCILOP_DECR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue-1, 0, (1<<numStencilBits) - 1)) break;
    [all...]
  /external/deqp/modules/gles3/functional/
es3fShaderPackingFunctionTests.cpp 209 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
210 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
299 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f);
300 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f);
400 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
401 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1)
    [all...]
  /external/llvm/test/MC/AMDGPU/
vop_sdwa.s 48 // VI: v_cvt_u32_f32_sdwa v0, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:DWORD ; encoding: [0xf9,0x0e,0x00,0x7e,0x00,0x36,0x06,0x06]
49 v_cvt_u32_f32 v0, v0 clamp dst_sel:DWORD
52 // VI: v_fract_f32_sdwa v0, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD ; encoding: [0xf9,0x36,0x00,0x7e,0x00,0x26,0x06,0x06]
53 v_fract_f32 v0, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PAD
60 // VI: v_mov_b32_sdwa v1, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:WORD_1 ; encoding: [0xf9,0x02,0x02,0x7e,0x00,0x36,0x05,0x06]
61 v_mov_b32 v1, v0 clamp src0_sel:WORD_1
64 // VI: v_trunc_f32_sdwa v1, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:WORD_1 ; encoding: [0xf9,0x38,0x02,0x7e,0x00,0x36,0x05,0x06]
65 v_trunc_f32 v1, v0 clamp dst_sel:DWORD src0_sel:WORD_1
76 // VI: v_min_f32_sdwa v0, v0, v0 clamp dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:DWORD src1_sel:BYTE_2 ; encoding: [0xf9,0x00,0x00,0x14,0x00,0x36,0x06,0x02]
77 v_min_f32 v0, v0, v0 clamp dst_sel:DWORD src1_sel:BYTE_
    [all...]
  /external/python/cpython3/Modules/_decimal/tests/
deccheck.py 181 self.p.clamp = self.c.clamp
227 assert(self.c.clamp == self.p.clamp)
228 return self.c.clamp
231 self.c.clamp = val
232 self.p.clamp = val
238 clamp = property(getclamp, setclamp) variable in class:Context
287 maxcontext.clamp = 0
806 if spec['clamp'] == 'rand'
    [all...]
  /external/swiftshader/src/D3D9/
Direct3DSwapChain9.cpp 108 int vertexPercentage = sw::clamp((int)(100 * renderer->getVertexTime(thread) / frameTime), 0, 100);
109 int setupPercentage = sw::clamp((int)(100 * renderer->getSetupTime(thread) / frameTime), 0, 100);
110 int pixelPercentage = sw::clamp((int)(100 * renderer->getPixelTime(thread) / frameTime), 0, 100);
  /packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
FocusOverlayManager.java 420 int left = maxW > 0 ? clamp(x - areaWidth / 2, 0, maxW) : 0;
422 int top = maxH > 0 ? clamp(y - areaHeight / 2, 0, maxH) : 0;
429 private int clamp(int x, int min, int max) { method in class:FocusOverlayManager
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
ImageProcessingTest.java 302 final int clamp(int c) { method in class:ImageProcessingTest.BlendFunc
312 int ia = clamp((int) (255 * a));
313 int ir = clamp((int) (255 * r));
314 int ig = clamp((int) (255 * g));
315 int ib = clamp((int) (255 * b));
325 rgba[0] = (byte) clamp(r);
326 rgba[1] = (byte) clamp(g);
327 rgba[2] = (byte) clamp(b);
328 rgba[3] = (byte) clamp(a);
intrinsic_3dlut.rs 57 v = clamp(v, 0.f, 255.f);
intrinsic_convolve3x3.rs 62 p20 = clamp(p20, 0.f, 255.f);
103 p20 = clamp(p20, 0.f, 255.f);
144 p20 = clamp(p20, 0.f, 255.f);
185 p20 = clamp(p20, 0.f, 255.f);
  /external/deqp/framework/delibs/decpp/
deDefs.hpp 44 //! Clamp x in range a <= x <= b.
45 template<typename T> inline T clamp (T x, T a, T b) { DE_ASSERT(a <= b); return x < a ? a : (x > b ? b : x); } function in namespace:de
  /external/libvpx/libvpx/vpx_dsp/
quantize.c 31 tmp = clamp(abs_coeff + round_ptr[rc != 0], INT16_MIN, INT16_MAX);
80 tmp = clamp(abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1),
154 int tmp = clamp(abs_coeff + round_ptr[rc != 0], INT16_MIN, INT16_MAX);
257 abs_coeff = clamp(abs_coeff, INT16_MIN, INT16_MAX);
  /external/replicaisland/src/com/replica/replicaisland/
SliderPreference.java 100 return (int)Utils.clamp(dValue, 0, MAX_SLIDER_VALUE);
  /packages/apps/LegacyCamera/src/com/android/camera/
FocusManager.java 278 int left = Util.clamp(x - focusWidth / 2, 0, previewWidth - focusWidth);
279 int top = Util.clamp(y - focusHeight / 2, 0, previewHeight - focusHeight);
451 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth);
452 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight);
  /packages/apps/WallpaperPicker/src/com/android/gallery3d/common/
Utils.java 61 public static int clamp(int x, int min, int max) { method in class:Utils
  /frameworks/rs/script_api/include/
rs_math.rsh 725 * clamp: Restrain a value to a range
727 * Clamps a value to a specified high and low bound. clamp() returns min_value
730 * There are two variants of clamp: one where the min and max are scalars applied
741 clamp(float value, float min_value, float max_value);
744 clamp(float2 value, float2 min_value, float2 max_value);
747 clamp(float3 value, float3 min_value, float3 max_value);
750 clamp(float4 value, float4 min_value, float4 max_value);
753 clamp(float2 value, float min_value, float max_value);
756 clamp(float3 value, float min_value, float max_value);
759 clamp(float4 value, float min_value, float max_value)
    [all...]
  /prebuilts/sdk/renderscript/include/
rs_math.rsh 725 * clamp: Restrain a value to a range
727 * Clamps a value to a specified high and low bound. clamp() returns min_value
730 * There are two variants of clamp: one where the min and max are scalars applied
741 clamp(float value, float min_value, float max_value);
744 clamp(float2 value, float2 min_value, float2 max_value);
747 clamp(float3 value, float3 min_value, float3 max_value);
750 clamp(float4 value, float4 min_value, float4 max_value);
753 clamp(float2 value, float min_value, float max_value);
756 clamp(float3 value, float min_value, float max_value);
759 clamp(float4 value, float min_value, float max_value)
    [all...]
  /external/libxcam/cl_kernel/
kernel_gauss_lap_pyramid.cl 106 final_g[i_line] = clamp (final_g[i_line] + 0.5f, 0.0f, 255.0f);
194 data_g = clamp (data_g, 0.0f, 255.0f);
229 out_data = clamp (out_data + 0.5f, 0.0f, 255.0f);
255 out_data = clamp (out_data + 0.5f, 0.0f, 255.0f);
330 lap = clamp (lap, 0.0f, 255.0f);
424 pos = clamp (pos, offset_x, max_pos);
457 out_data = clamp (out_data + 0.5f, 0.0f, 255.0f);
517 result_pre = convert_float4(slm_gauss_y[i_line][clamp (g_x * 2 - 1, 0, image_width * 2)]) / CONV_COEFF;
518 result_next = convert_float4(slm_gauss_y[i_line][clamp (g_x * 2 + 2, 0, image_width * 2)]) / CONV_COEFF;
534 final_g[i_line] = clamp (final_g[i_line] + 0.5f, 0.0f, 255.0f)
    [all...]
  /frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
canny.rs 34 uchar charv = clamp(v * 10, 0, 255);
42 uchar charv = 255 - clamp(v * 10, 0, 255);
50 uchar charv = clamp(v * 10, 0, 255);
58 uchar charv = 255 - clamp(v * 10, 0, 255);
74 clamp(rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, y) - v * 10, 0, 255);
87 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
495 int ix = clamp((int)x, 0, w - 1);
496 int iy = clamp((int)y, 0, h - 1);
498 uchar4 out = {clamp(v * 5, 0, 255), clamp(v, 0, 255), clamp(v, 0, 255), 255}
    [all...]
  /external/mesa3d/src/gallium/drivers/softpipe/
sp_quad_blend.c 59 boolean clamp[PIPE_MAX_COLOR_BUFS]; /**< clamp colors to [0,1]? */ member in struct:blend_quad_stage
856 * Clamp all colors in a quad to [0, 1]
865 quadColor[i][j] = CLAMP(quadColor[i][j], 0.0F, 1.0F);
938 const boolean clamp = bqs->clamp[cbuf]; local
943 if (clamp)
969 /* If fixed-point dest color buffer, need to clamp the incoming
972 if (clamp || softpipe->rasterizer->clamp_fragment_color) {
    [all...]

Completed in 633 milliseconds

1 2 3 4 5 67 8 91011>>