Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 25 of 259) sorted by relevance

1234567891011

/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/
Dvp9_quant_common.c233 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
235 return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
237 return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
244 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
252 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
254 return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
256 return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
263 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
273 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
Dvp9_common.h55 static INLINE int clamp(int value, int low, int high) { in clamp() function
72 return (uint16_t)clamp(val, 0, 255); in clip_pixel_high()
74 return (uint16_t)clamp(val, 0, 1023); in clip_pixel_high()
76 return (uint16_t)clamp(val, 0, 4095); in clip_pixel_high()
Dvp9_mv.h47 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv()
48 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
/external/llvm/test/CodeGen/R600/
Dllvm.AMDGPU.clamp.ll4 declare float @llvm.AMDGPU.clamp.f32(float, float, float) nounwind readnone
5 declare float @llvm.AMDIL.clamp.f32(float, float, float) nounwind readnone
15 %clamp = call float @llvm.AMDGPU.clamp.f32(float %src, float 0.0, float 1.0) nounwind readnone
16 store float %clamp, float addrspace(1)* %out, align 4
25 %clamp = call float @llvm.AMDIL.clamp.f32(float %src, float 0.0, float 1.0) nounwind readnone
26 store float %clamp, float addrspace(1)* %out, align 4
Dkcache-fold.ll39 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00)
40 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00)
41 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00)
42 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00)
87 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00)
88 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00)
89 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00)
90 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00)
99 declare float @llvm.AMDIL.clamp.(float, float, float) readnone
Dschedule-fs-loop.ll33 %17 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00)
34 %18 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00)
35 %19 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00)
36 %20 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
51 declare float @llvm.AMDIL.clamp.(float, float, float) #0
Dschedule-fs-loop-nested.ll46 %30 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00)
47 %31 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00)
48 %32 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00)
49 %33 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
84 declare float @llvm.AMDIL.clamp.(float, float, float) #0
Dschedule-fs-loop-nested-if.ll47 %27 = call float @llvm.AMDIL.clamp.(float %temp.0, float 0.000000e+00, float 1.000000e+00)
48 %28 = call float @llvm.AMDIL.clamp.(float %temp1.0, float 0.000000e+00, float 1.000000e+00)
49 %29 = call float @llvm.AMDIL.clamp.(float %temp2.0, float 0.000000e+00, float 1.000000e+00)
50 %30 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
77 declare float @llvm.AMDIL.clamp.(float, float, float) #0
/external/deqp/framework/common/
DtcuTexLookupVerifier.cpp618 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
619 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
668 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
669 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
670 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
671 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
731 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
732 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid()
733 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
734 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid()
[all …]
DtcuTexCompareVerifier.cpp66 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); in execCompare()
67 …const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference… in execCompare()
586 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid()
587 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid()
588 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid()
589 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid()
712 const float minA0 = de::clamp((uBounds0.x()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
713 const float maxA0 = de::clamp((uBounds0.y()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
714 const float minB0 = de::clamp((vBounds0.x()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
715 const float maxB0 = de::clamp((vBounds0.y()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid()
[all …]
DtcuFuzzyImageCompare.cpp60 return (deUint8)de::clamp((int)(v + 0.5f), 0, 255); in roundToUint8Sat()
132 int i0 = de::clamp(x0, 0, w-1); in bilinearSample()
133 int i1 = de::clamp(x1, 0, w-1); in bilinearSample()
134 int j0 = de::clamp(y0, 0, h-1); in bilinearSample()
135 int j1 = de::clamp(y1, 0, h-1); in bilinearSample()
181 deUint32 p = readUnorm8<SrcChannels>(src, de::clamp(i+kx-shiftX, 0, src.getWidth()-1), j); in separableConvolve()
200 deUint32 p = readUnorm8<DstChannels>(tmpAccess, de::clamp(j+ky-shiftY, 0, tmp.getWidth()-1), i); in separableConvolve()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_offset.c46 float clamp; member
94 if (offset->clamp) in do_offset_tri()
95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri()
96 MIN2(zoffset, offset->clamp); in do_offset_tri()
133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
Ddraw_pipe_offset.c46 float clamp; member
94 if (offset->clamp) in do_offset_tri()
95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri()
96 MIN2(zoffset, offset->clamp); in do_offset_tri()
133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
/external/deqp/modules/gles31/functional/
Des31fShaderPackingFunctionTests.cpp213 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
214 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
303 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); in iterate()
304 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); in iterate()
404 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
405 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
815 …const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, … in iterate()
816 …const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, … in iterate()
817 …const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, … in iterate()
818 …const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, … in iterate()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/util/
DMathUtils.java24 public static int clamp(int value, int a, int b) { in clamp() method in MathUtils
42 public static long clamp(long value, long a, long b) { in clamp() method in MathUtils
60 public static float clamp(float value, float a, float b) { in clamp() method in MathUtils
/external/libvpx/libvpx/vp9/common/
Dvp9_quant_common.c125 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
129 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
139 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
Dvp9_mv.h39 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv()
40 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
/external/libvpx/libvpx/vp9/common/arm/neon/
Dvp9_loopfilter_16_neon.asm152 vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1)
168 ; filter = clamp(filter + 3 * ( qs0 - ps0))
173 vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3)
174 vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4)
179 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2)
180 vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1)
189 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter)
190 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
Dvp9_loopfilter_neon.asm237 vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1)
249 ; filter = clamp(filter + 3 * ( qs0 - ps0))
254 vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3)
255 vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4)
259 vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2)
260 vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1)
269 vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter)
270 vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter)
539 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1)
549 ; filter = clamp(filter + 3 * ( qs0 - ps0))
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/arm/neon/
Dvp9_loopfilter_16_neon.asm152 vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1)
168 ; filter = clamp(filter + 3 * ( qs0 - ps0))
173 vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3)
174 vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4)
179 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2)
180 vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1)
189 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter)
190 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
Dvp9_loopfilter_neon.asm237 vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1)
249 ; filter = clamp(filter + 3 * ( qs0 - ps0))
254 vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3)
255 vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4)
259 vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2)
260 vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1)
269 vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter)
270 vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter)
539 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1)
549 ; filter = clamp(filter + 3 * ( qs0 - ps0))
[all …]
/external/chromium_org/ppapi/proxy/
Dcompositor_layer_resource.cc27 float clamp(float value) { in clamp() function
116 data_.color->red = clamp(red); in SetColor()
117 data_.color->green = clamp(green); in SetColor()
118 data_.color->blue = clamp(blue); in SetColor()
119 data_.color->alpha = clamp(alpha); in SetColor()
276 data_.common.opacity = clamp(opacity); in SetOpacity()
/external/libvpx/libvpx/vp8/common/arm/neon/
Dmbloopfilter_neon.asm381 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1)
396 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0))
406 vqadd.s8 q2, q13, q11 ; Filter1 = clamp(Filter2+4)
407 vqadd.s8 q13, q13, q12 ; Filter2 = clamp(Filter2+3)
417 vqsub.s8 q7, q7, q2 ; qs0 = clamp(qs0 - Filter1)
419 vqadd.s8 q6, q6, q13 ; ps0 = clamp(ps0 + Filter2)
441 vqshrn.s16 d0, q0, #7 ; u = clamp((63 + Filter2 * 9)>>7)
443 vqshrn.s16 d24, q12, #7 ; u = clamp((63 + Filter2 * 18)>>7)
445 vqshrn.s16 d28, q14, #7 ; u = clamp((63 + Filter2 * 27)>>7)
450 vqsub.s8 q11, q9, q0 ; s = clamp(qs2 - u)
[all …]
/external/deqp/framework/referencerenderer/
DrrFragmentOperations.cpp35 using tcu::clamp;
38 using de::clamp;
110 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilCompare()
145 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilSFail()
152 …case STENCILOP_INCR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits)… in executeStencilSFail()
153 …case STENCILOP_DECR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue-1, 0, (1<<numStencilBits)… in executeStencilSFail()
175 float sampleDepth = de::clamp(sampleDepthFloat, 0.0f, 1.0f); \ in executeDepthCompare()
258 const float clampedDepth = de::clamp(frag.sampleDepths[fragSampleNdx], 0.0f, 1.0f); in executeDepthWrite()
286 …case STENCILOP_INCR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue+1, … in executeStencilDpFailAndPass()
287 …case STENCILOP_DECR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue-1, … in executeStencilDpFailAndPass()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DUtils.java39 public final static int clamp(int value, int min, int max) { in clamp() method in Utils
52 result = clamp(value, max, min); in clamp()

1234567891011