Home
last modified time | relevance | path

Searched refs:clamp (Results 76 - 100 of 607) sorted by relevance

12345678910>>...25

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_text_field.cpp103 UpdateSelection(std::clamp(selectController_->GetStartIndex(), 0, textWidth), in ProcessSelection()
104 std::clamp(selectController_->GetEndIndex(), 0, textWidth)); in ProcessSelection()
/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_linear_track.cpp246 dyOffset = std::clamp(current, offset.GetY() + size * HALF, offset.GetY() + trackLength - size * HALF); in PaintSliderSteps()
248 dyOffset = std::clamp(current, offset.GetY(), offset.GetY() + trackLength); in PaintSliderSteps()
268 dxOffset = std::clamp(current, offset.GetX() + size * HALF, offset.GetX() + trackLength - size * HALF); in PaintSliderSteps()
270 dxOffset = std::clamp(current, offset.GetX(), offset.GetX() + trackLength); in PaintSliderSteps()
291 dyOffset = std::clamp(current, offset.GetY() + size * HALF, offset.GetY() + trackLength - size * HALF); in PaintSliderSteps()
293 dyOffset = std::clamp(current, offset.GetY(), offset.GetY() + trackLength); in PaintSliderSteps()
314 dxOffset = std::clamp(current, offset.GetX() + size * HALF, offset.GetX() + trackLength - size * HALF); in PaintSliderSteps()
316 dxOffset = std::clamp(current, offset.GetX(), offset.GetX() + trackLength); in PaintSliderSteps()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DStateManager9.cpp443 dxViewport.X = gl::clamp(actualViewport.x, 0, static_cast<int>(mRenderTargetBounds.width)); in setViewportState()
444 dxViewport.Y = gl::clamp(actualViewport.y, 0, static_cast<int>(mRenderTargetBounds.height)); in setViewportState()
446 gl::clamp(actualViewport.width, 0, in setViewportState()
449 gl::clamp(actualViewport.height, 0, in setViewportState()
554 rect.left = gl::clamp(scissor.x, 0, static_cast<int>(mRenderTargetBounds.width)); in setScissorRect()
555 rect.top = gl::clamp(scissor.y, 0, static_cast<int>(mRenderTargetBounds.height)); in setScissorRect()
557 gl::clamp(scissor.x + scissor.width, 0, static_cast<int>(mRenderTargetBounds.width)); in setScissorRect()
559 gl::clamp(scissor.y + scissor.height, 0, static_cast<int>(mRenderTargetBounds.height)); in setScissorRect()
H A DFramebuffer9.cpp176 rect.left = gl::clamp(area.x, 0L, static_cast<LONG>(desc.Width)); in readPixelsImpl()
177 rect.top = gl::clamp(area.y, 0L, static_cast<LONG>(desc.Height)); in readPixelsImpl()
178 rect.right = gl::clamp(area.x + area.width, 0L, static_cast<LONG>(desc.Width)); in readPixelsImpl()
179 rect.bottom = gl::clamp(area.y + area.height, 0L, static_cast<LONG>(desc.Height)); in readPixelsImpl()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_blend.c59 boolean clamp[PIPE_MAX_COLOR_BUFS]; /**< clamp colors to [0,1]? */ member
940 const boolean clamp = bqs->clamp[cbuf]; in blend_fallback() local
945 if (clamp) in blend_fallback()
971 /* If fixed-point dest color buffer, need to clamp the incoming in blend_fallback()
974 if (clamp || softpipe->rasterizer->clamp_fragment_color) { in blend_fallback()
997 /* If fixed-point dest color buffer, need to clamp the outgoing in blend_fallback()
1000 if (clamp) { in blend_fallback()
1060 /* If fixed-point dest color buffer, need to clamp th in blend_single_add_src_alpha_inv_src_alpha()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dpolygon.h41 GLfloat factor, GLfloat units, GLfloat clamp);
/third_party/mesa3d/src/amd/compiler/
H A Daco_opt_value_numbering.cpp176 return a3.clamp == b3.clamp && a3.omod == b3.omod && a3.opsel == b3.opsel; in operator ()()
199 aSDWA.neg[1] == bSDWA.neg[1] && aSDWA.clamp == bSDWA.clamp && in operator ()()
236 a3P.clamp == b3P.clamp; in operator ()()
H A Daco_optimizer.cpp66 * (2) The second pass combines instructions like mad, omod, clamp and
89 /* label_{abs,neg,mul,omod2,omod4,omod5,clamp} are used for both 16 and
1780 if (vop3 && (vop3->abs[!i] || vop3->neg[!i] || vop3->clamp || vop3->omod)) in label_instruction()
1825 case aco_opcode::v_med3_f32: { /* clamp */ in label_instruction()
2247 new_vop3->clamp = cmp_vop3.clamp; in combine_comparison_ordering()
2372 new_vop3->clamp = cmp_vop3.clamp; in combine_constant_comparison_ordering()
2423 new_vop3->clamp = cmp_vop3.clamp; in combine_inverse_comparison()
2548 create_vop3_for_op3(opt_ctx& ctx, aco_opcode opcode, aco_ptr<Instruction>& instr, Operand operands[3], bool neg[3], bool abs[3], uint8_t opsel, bool clamp, unsigned omod) create_vop3_for_op3() argument
2576 bool neg[3], abs[3], clamp, precise; combine_three_valu_op() local
2646 bool clamp = false; combine_add_or_then_and_lshl() local
2669 bool neg[3], abs[3], clamp, precise; combine_minmax() local
2944 bool neg[3], abs[3], clamp, precise; combine_clamp() local
4007 bool clamp = false; combine_instruction() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/filter/include/
H A Dfilter_distort_para.h32 distortionK_ = std::clamp(distortionK, -1.0f, 1.0f); in SetDistortionK()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dwrap.hpp31 GLM_FUNC_DECL genType clamp(genType const& Texcoord);
/third_party/node/deps/npm/node_modules/jsbn/
H A Dindex.js166 this.clamp();
170 // (protected) clamp off excess high words
270 r.clamp();
288 r.clamp();
321 r.clamp();
333 r.clamp();
351 r.clamp();
398 r.clamp();
494 x.clamp();
538 BigInteger.prototype.clamp
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Dshape_component.h194 strokeState_.SetOpacity(std::clamp(opacity, 0.0, 1.0), true, option); in SetStrokeOpacity()
199 fillState_.SetOpacity(std::clamp(opacity, 0.0, 1.0), true, option); in SetFillOpacity()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_fade_controller.cpp95 velocity = std::clamp(velocity, MIN_VELOCITY, MAX_VELOCITY); in ProcessAbsorb()
97 opacityCeil_ = std::clamp(velocity * VELOCITY_FACTOR, opacityFloor_, MAX_OPACITY); in ProcessAbsorb()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Devaluator.h95 return std::clamp(static_cast<int32_t>(std::pow(value, 1.0 / GAMMA_FACTOR)), 0, UINT8_MAX); in ConvertLinearToGamma()
103 uint8_t gammaAlpha = std::clamp(static_cast<int32_t>(alpha), 0, UINT8_MAX); in ConvertLinearToGamma()
H A Dchain_animation.cpp48 spaceDelta = std::clamp(spaceDelta, minSpace_ - space_, maxSpace_ - space_); in SetDelta()
51 curPosition_ = std::clamp(curPosition_ + delta, minSpace_ - spaceDelta, maxSpace_ - spaceDelta); in SetDelta()
60 curPosition = std::clamp(curPosition + delta, minSpace_, maxSpace_); in GetDeltaPredict()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_controller.cpp95 velocity = std::clamp(velocity, MIN_VELOCITY, MAX_VELOCITY); in ProcessAbsorb()
97 opacityCeil_ = std::clamp(velocity * VELOCITY_FACTOR, opacityFloor_, MAX_OPACITY); in ProcessAbsorb()
/third_party/mesa3d/src/compiler/glsl/
H A Dir_equals.cpp155 if (!possibly_null_equals(clamp, other->clamp, ignore)) in equals()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/
H A Dsvg_base_declaration.cpp262 attrs.fillState.SetOpacity(std::clamp(StringToDouble(val), 0.0, 1.0));
272 attrs.fillState.SetOpacity(std::clamp(StringToDouble(val), 0.0, 1.0));
309 attrs.opacity = std::clamp(StringToDouble(val), 0.0, 1.0);
361 attrs.strokeState.SetOpacity(std::clamp(StringToDouble(val), 0.0, 1.0));
407 attrs.strokeState.SetOpacity(std::clamp(StringToDouble(val), 0.0, 1.0));
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
H A Dfunc_common.hpp173 /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a>
176 GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal);
179 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, T minVal, T maxVal);
182 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, vecType<T, P> const & minVal, vecType<T, P> const & maxVal);
262 /// t = clamp ((x - edge0) / (edge1 - edge0), 0, 1);
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_post_process_common.h31 return clamp(vignette, 0.0, 1.0); in getVignetteCoeff()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DvalidationGL46_autogen.h36 GLfloat clamp);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dmagnifier_controller.cpp52 std::clamp(left, 0.f, static_cast<float>(rootFrameSize.Width() - magnifierNodeWidth_.ConvertToPx())); in UpdateMagnifierOffsetX()
81 magnifierY = std::clamp(magnifierY, 0.f, static_cast<float>(screenHeight - menuHeight)); in UpdateMagnifierOffsetY()
87 offsetY_ = std::clamp(magnifierY, 0.f, static_cast<float>(MAGNIFIER_OFFSETY.ConvertToPx())); in UpdateMagnifierOffsetY()
90 std::clamp(magnifierPaintOffsetY, 0.f, static_cast<float>(rootFrameSize.Height() - menuHeight)); in UpdateMagnifierOffsetY()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_layout_algorithm.cpp266 std::clamp(static_cast<int32_t>( in Layout()
274 halfDisplayCounts_ = std::clamp( in Layout()
316 double adjustedScale = std::clamp(fontScale, pickerTheme->GetNormalFontScale(), in AdjustFontSizeScale()
336 std::clamp(systemFontScale, pickerTheme->GetNormalFontScale(), pickerTheme->GetMaxTwoFontScale()); in ReCalcItemHeightScale()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/
H A Drs_render_modifier.cpp192 int16_t a = std::clamp<int16_t>(backgroundColor.GetAlpha(), 0, UINT8_MAX); in CalculateInvertColor()
193 int16_t r = 255 - std::clamp<int16_t>(backgroundColor.GetRed(), 0, UINT8_MAX); in CalculateInvertColor()
194 int16_t g = 255 - std::clamp<int16_t>(backgroundColor.GetGreen(), 0, UINT8_MAX); in CalculateInvertColor()
195 int16_t b = 255 - std::clamp<int16_t>(backgroundColor.GetBlue(), 0, UINT8_MAX); in CalculateInvertColor()
/third_party/mesa3d/src/panfrost/bifrost/
H A Dbi_opt_mod_props.c51 * while the FADD pipe cannot encode a clamp. Either case in in bi_takes_fabs()
55 return !(I->clamp && bi_would_impact_abs(arch, I, repl, s)); in bi_takes_fabs()
192 /* RSCALE has restrictions on how the clamp may be used, only used for
193 * specialized transcendental sequences that set the clamp explicitly anyway */
208 return bi_opcode_props[I->op].clamp; in bi_takes_clamp()
226 I->clamp |= use->clamp; in bi_optimizer_clamp()

Completed in 33 milliseconds

12345678910>>...25