Searched defs:clamp (Results 1 - 25 of 81) sorted by relevance

1234

/external/libvpx/libvpx/vp8/common/
H A Dpostproc.h20 int clamp; member in struct:postproc_state
/external/libvpx/libvpx/vp9/common/
H A Dvp9_postproc.h31 int clamp; member in struct:postproc_state
/external/libvpx/libvpx/vpx_dsp/
H A Dvpx_dsp_common.h52 static INLINE int clamp(int value, int low, int high) { function
63 default: return (uint16_t)clamp(val, 0, 255);
64 case 10: return (uint16_t)clamp(val, 0, 1023);
65 case 12: return (uint16_t)clamp(val, 0, 4095);
/external/replicaisland/tools/
H A DExtractPoints.js293 function clamp(input) { function
/external/mesa3d/src/mesa/main/
H A Dpolygon.c240 GLfloat factor, GLfloat units, GLfloat clamp)
244 ctx->Polygon.OffsetClamp == clamp)
250 ctx->Polygon.OffsetClamp = clamp;
253 ctx->Driver.PolygonOffset( ctx, factor, units, clamp );
277 _mesa_PolygonOffsetClampEXT( GLfloat factor, GLfloat units, GLfloat clamp )
288 _mesa_debug(ctx, "glPolygonOffsetClampEXT %f %f %f\n", factor, units, clamp);
290 _mesa_polygon_offset_clamp(ctx, factor, units, clamp);
239 _mesa_polygon_offset_clamp(struct gl_context *ctx, GLfloat factor, GLfloat units, GLfloat clamp) argument
H A Dblend.c860 _mesa_ClampColor(GLenum target, GLenum clamp) argument
872 if (clamp != GL_TRUE && clamp != GL_FALSE && clamp != GL_FIXED_ONLY_ARB) {
873 _mesa_error(ctx, GL_INVALID_ENUM, "glClampColorARB(clamp)");
882 ctx->Light.ClampVertexColor = clamp;
889 ctx->Color.ClampFragmentColor = clamp;
893 ctx->Color.ClampReadColor = clamp;
906 get_clamp_color(const struct gl_framebuffer *fb, GLenum clamp) argument
908 if (clamp
[all...]
/external/replicaisland/src/com/replica/replicaisland/
H A DUtils.java39 public final static int clamp(int value, int min, int max) { method in class:Utils
52 result = clamp(value, max, min);
/external/brotli/c/enc/
H A Dliteral_cost.c21 static size_t UTF8Position(size_t last, size_t c, size_t clamp) { argument
25 return BROTLI_MIN(size_t, 1, clamp);
31 return BROTLI_MIN(size_t, 2, clamp);
/external/deqp/external/openglcts/modules/common/
H A DglcPolygonOffsetClampTests.hpp41 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/deqp/framework/delibs/decpp/
H A DdeDefs.hpp45 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/libmojo/ui/gfx/geometry/
H A Dsize_f.h27 : width_(clamp(width)), height_(clamp(height)) {}
36 void set_width(float width) { width_ = clamp(width); }
37 void set_height(float height) { height_ = clamp(height); }
70 static constexpr float clamp(float f) { return f > kTrivial ? f : 0.f; } function in class:gfx::SizeF
/external/libvpx/libvpx/test/
H A Dadd_noise_test.cc47 const int clamp = vpx_setup_noise(4.4, noise, kNoiseSize); local
54 GetParam()(s, noise, clamp, clamp, width, height, width));
73 GetParam()(s, noise, clamp, clamp, width, height, width));
77 EXPECT_GT(static_cast<int>(s[i]), clamp) << "i = " << i;
84 GetParam()(s, noise, clamp, clamp, width, height, width));
88 EXPECT_LT(static_cast<int>(s[i]), 255 - clamp) << "i = " << i;
99 const int clamp local
[all...]
/external/pdfium/third_party/base/
H A Dstl_util.h71 // std::clamp(), some day.
73 constexpr const T& clamp(const T& v, const T& lo, const T& hi) { function in namespace:pdfium
/external/libxcam/modules/ocl/
H A Dcl_pyramid_blender.cpp117 clamp(int32_t i, int32_t min, int32_t max) function in namespace:XCam
176 tmp_ptr[i] += buf_ptr[clamp(i + j, 0, buf_len)] * coeff[g_radius + j];
H A Dcl_utils.cpp45 clamp (float &value, float min, float max) function in namespace:XCam
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_offset.c47 float clamp; member in struct:offset_stage
115 if (offset->clamp)
116 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) :
117 MIN2(zoffset, offset->clamp);
180 offset->clamp = rast->offset_clamp;
195 offset->clamp = 0.0f;
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_state_inlines.h42 boolean clamp)
46 return clamp ? R300_COMB_FCN_ADD_CLAMP : R300_COMB_FCN_ADD_NOCLAMP;
48 return clamp ? R300_COMB_FCN_SUB_CLAMP : R300_COMB_FCN_SUB_NOCLAMP;
50 return clamp ? R300_COMB_FCN_RSUB_CLAMP : R300_COMB_FCN_RSUB_NOCLAMP;
41 r300_translate_blend_function(int blend_func, boolean clamp) argument
/external/mesa3d/src/gallium/state_trackers/nine/
H A Dnine_limits.h46 } clamp; member in union:nine_state_behaviour::__anon16868
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;
/external/syslinux/com32/lib/jpeg/
H A Dbgr24.c56 static unsigned char clamp(int i) function
103 *p++ = clamp(b);
105 *p++ = clamp(g);
107 *p++ = clamp(r);
159 *p++ = clamp(b);
161 *p++ = clamp(g);
163 *p++ = clamp(r);
168 *p++ = clamp(b);
170 *p++ = clamp(g);
172 *p++ = clamp(
[all...]
H A Dbgra32.c56 static unsigned char clamp(int i) function
103 *p++ = clamp(b);
105 *p++ = clamp(g);
107 *p++ = clamp(r);
160 *p++ = clamp(b);
162 *p++ = clamp(g);
164 *p++ = clamp(r);
171 *p++ = clamp(b);
173 *p++ = clamp(g);
175 *p++ = clamp(
[all...]
H A Drgb24.c56 static unsigned char clamp(int i) function
102 *p++ = clamp(r);
104 *p++ = clamp(g);
106 *p++ = clamp(b);
158 *p++ = clamp(r);
160 *p++ = clamp(g);
162 *p++ = clamp(b);
167 *p++ = clamp(r);
169 *p++ = clamp(g);
171 *p++ = clamp(
[all...]
H A Drgba32.c56 static unsigned char clamp(int i) function
103 *p++ = clamp(r);
105 *p++ = clamp(g);
107 *p++ = clamp(b);
160 *p++ = clamp(r);
162 *p++ = clamp(g);
164 *p++ = clamp(b);
171 *p++ = clamp(r);
173 *p++ = clamp(g);
175 *p++ = clamp(
[all...]
/external/tensorflow/tensorflow/compiler/xla/service/
H A Dgraphviz_example.cc109 auto clamp = builder.AddInstruction(HloInstruction::CreateTernary( local
115 HloInstruction::CreateDot(vshape, clamp, param_v0, dot_dnums));
117 HloInstruction::CreateTuple({dot, param_s, clamp}));
/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dvector_ops_simple_test.cc307 auto clamp = builder.Min(builder.Max(x, zero), one); local
320 auto clamp = builder.Clamp(zero, x, one); local
332 auto clamp = builder.Clamp(zero, x, one); local
344 auto clamp = builder.Clamp(one, x, two); local
365 Computation clamp; local
367 // clamp(y) = clamp<0,5>(y)
368 ComputationBuilder builder(client_, "clamp");
375 clamp = computation_status.ConsumeValueOrDie();
380 // mult_relu_add(z) = clamp(add_hal
[all...]
/external/mesa3d/src/gallium/drivers/ilo/core/
H A Dilo_state_sampler.c221 * TEXCOORDMODE_CLAMP_BORDER samples outside the map will clamp to 0
307 get_gen6_lod_clamp(const struct ilo_dev *dev, float clamp) argument
316 if (clamp > max)
317 clamp = max;
318 else if (clamp < 0.0f)
319 clamp = 0.0f;
321 return (int) (clamp * scale);
357 * 3) if pre-clamp is enabled, LOD is clamped to [MinLod, MaxLod] first
523 /* make a copy so that we can clamp for SNORM and UNORM */
538 /* clamp t
[all...]

Completed in 817 milliseconds

1234