Home
last modified time | relevance | path

Searched refs:edge0 (Results 1 – 25 of 31) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dsanm.c343 static enum GlyphDir which_direction(enum GlyphEdge edge0, enum GlyphEdge edge1) in which_direction() argument
345 if ((edge0 == LEFT_EDGE && edge1 == RIGHT_EDGE) || in which_direction()
346 (edge1 == LEFT_EDGE && edge0 == RIGHT_EDGE) || in which_direction()
347 (edge0 == BOTTOM_EDGE && edge1 != TOP_EDGE) || in which_direction()
348 (edge1 == BOTTOM_EDGE && edge0 != TOP_EDGE)) in which_direction()
350 else if ((edge0 == TOP_EDGE && edge1 != BOTTOM_EDGE) || in which_direction()
351 (edge1 == TOP_EDGE && edge0 != BOTTOM_EDGE)) in which_direction()
353 else if ((edge0 == LEFT_EDGE && edge1 != RIGHT_EDGE) || in which_direction()
354 (edge1 == LEFT_EDGE && edge0 != RIGHT_EDGE)) in which_direction()
356 else if ((edge0 == TOP_EDGE && edge1 == BOTTOM_EDGE) || in which_direction()
[all …]
/third_party/skia/samplecode/
DSamplePatch.cpp115 SkPoint* edge0 = storage.get(); in draw() local
116 SkPoint* edge1 = edge0 + nu; in draw()
121 eval_patch_edge(fPts + 0, edge0, nu); in draw()
125 edge3[nv] = edge0[0]; // the last shall be first in draw()
136 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
143 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dfunc_common.hpp271 GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x);
274 GLM_FUNC_DECL vecType<T, P> smoothstep(T edge0, T edge1, vecType<T, P> const & x);
277 …GLM_FUNC_DECL vecType<T, P> smoothstep(vecType<T, P> const & edge0, vecType<T, P> const & edge1, v…
Dfunc_common.inl299 …GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & edge0, vecType<T, P> const & ed…
302 …vecType<T, P> const tmp(clamp((x - edge0) / (edge1 - edge0), static_cast<T>(0), static_cast<T>(1))…
602 GLM_FUNC_QUALIFIER genType smoothstep(genType edge0, genType edge1, genType x) argument
606 genType const tmp(clamp((x - edge0) / (edge1 - edge0), genType(0), genType(1)));
611 GLM_FUNC_QUALIFIER vecType<T, P> smoothstep(T edge0, T edge1, vecType<T, P> const & x) argument
613 …p_vector<T, P, vecType, detail::is_aligned<P>::value>::call(vecType<T, P>(edge0), vecType<T, P>(ed…
617 …GLM_FUNC_QUALIFIER vecType<T, P> smoothstep(vecType<T, P> const & edge0, vecType<T, P> const & edg… argument
619 …return detail::compute_smoothstep_vector<T, P, vecType, detail::is_aligned<P>::value>::call(edge0,…
Dfunc_common_simd.inl221 …GLM_FUNC_QUALIFIER static tvec4<float, P> call(tvec4<float, P> const& edge0, tvec4<float, P> const…
224 result.data = glm_vec4_smoothstep(edge0.data, edge1.data, x.data);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/simd/
Dcommon.h205 GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_smoothstep(glm_vec4 edge0, glm_vec4 edge1, glm_vec4 x) in glm_vec4_smoothstep() argument
207 glm_vec4 const sub0 = glm_vec4_sub(x, edge0); in glm_vec4_smoothstep()
208 glm_vec4 const sub1 = glm_vec4_sub(edge1, edge0); in glm_vec4_smoothstep()
/third_party/skia/src/sksl/
Dsksl_public.sksl96 $genType smoothstep($genType edge0, $genType edge1, $genType x);
97 $genType smoothstep(float edge0, float edge1, $genType x);
98 $genHType smoothstep($genHType edge0, $genHType edge1, $genHType x);
99 $genHType smoothstep(half edge0, half edge1, $genHType x);
Dsksl_gpu.sksl105 $genType smoothstep($genType edge0, $genType edge1, $genType x);
106 $genType smoothstep(float edge0, float edge1, $genType x);
107 $genHType smoothstep($genHType edge0, $genHType edge1, $genHType x);
108 $genHType smoothstep(half edge0, half edge1, $genHType x);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dsimd_vec4.hpp318 detail::fvec4SIMD const & edge0,
323 float const & edge0,
Dsimd_vec4.inl474 detail::fvec4SIMD const & edge0, argument
479 return detail::sse_ssp_ps(edge0.Data, edge1.Data, x.Data);
484 float const & edge0, argument
489 return detail::sse_ssp_ps(_mm_set1_ps(edge0), _mm_set1_ps(edge1), x.Data);
/third_party/vk-gl-cts/framework/common/
DtcuVectorUtil.hpp72 inline float smoothStep (float edge0, float edge1, float x) in smoothStep() argument
74 if (x <= edge0) return 0.0f; in smoothStep()
76 float t = de::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); in smoothStep()
/third_party/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c132 nir_smoothstep(nir_builder *b, nir_ssa_def *edge0, nir_ssa_def *edge1, nir_ssa_def *x) in nir_smoothstep() argument
139 nir_fsat(b, nir_fdiv(b, nir_fsub(b, x, edge0), in nir_smoothstep()
140 nir_fsub(b, edge1, edge0))); in nir_smoothstep()
Dnir_builtin_builder.h44 nir_ssa_def* nir_smoothstep(nir_builder *b, nir_ssa_def *edge0,
/third_party/skia/third_party/externals/opengl-registry/extensions/AMD/
DAMD_gpu_shader_half_float.txt575 …| genF16Type smoothstep (genF16Type edge0, | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1…
577 …| genF16Type x) | and 1 when edge0 < x < edge1. This is useful in…
578 …| genF16Type smoothstep (float16_t edge0, | cases where you would want a threshold function…
581 …| | t = clamp((x - edge0) / (edge1 - edge0), 0, …
583 …| | Results are undefined if edge0 >= edge1. …
/third_party/openGLES/extensions/AMD/
DAMD_gpu_shader_half_float.txt575 …| genF16Type smoothstep (genF16Type edge0, | Returns 0.0 if x <= edge0 and 1.0 if x >= edge1…
577 …| genF16Type x) | and 1 when edge0 < x < edge1. This is useful in…
578 …| genF16Type smoothstep (float16_t edge0, | cases where you would want a threshold function…
581 …| | t = clamp((x - edge0) / (edge1 - edge0), 0, …
583 …| | Results are undefined if edge0 >= edge1. …
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktShaderBuiltinPrecisionTests.cpp4375 double applyExact (double edge0, double edge1) const in applyExact() argument
4377 return (edge0 >= edge1) ? TCU_NAN : 0.0; in applyExact()
4380 double precision (const EvalContext&, double, double edge0, double edge1) const in precision() argument
4382 return (edge0 >= edge1) ? TCU_NAN : 0.0; in precision()
4386 ExprP<deFloat16> nanIfGreaterOrEqual(const ExprP<deFloat16>& edge0, const ExprP<deFloat16>& edge1) in nanIfGreaterOrEqual() argument
4388 return app<NanIfGreaterOrEqual< Signature<deFloat16, deFloat16, deFloat16> > >(edge0, edge1); in nanIfGreaterOrEqual()
4391 ExprP<float> nanIfGreaterOrEqual(const ExprP<float>& edge0, const ExprP<float>& edge1) in nanIfGreaterOrEqual() argument
4393 return app<NanIfGreaterOrEqual< Signature<float, float, float> > >(edge0, edge1); in nanIfGreaterOrEqual()
4396 ExprP<double> nanIfGreaterOrEqual(const ExprP<double>& edge0, const ExprP<double>& edge1) in nanIfGreaterOrEqual() argument
4398 return app<NanIfGreaterOrEqual< Signature<double, double, double> > >(edge0, edge1); in nanIfGreaterOrEqual()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderBuiltinPrecisionTests.cpp4375 double applyExact (double edge0, double edge1) const in applyExact() argument
4377 return (edge0 >= edge1) ? TCU_NAN : 0.0; in applyExact()
4380 double precision (const EvalContext&, double, double edge0, double edge1) const in precision() argument
4382 return (edge0 >= edge1) ? TCU_NAN : 0.0; in precision()
4386 ExprP<deFloat16> nanIfGreaterOrEqual(const ExprP<deFloat16>& edge0, const ExprP<deFloat16>& edge1) in nanIfGreaterOrEqual() argument
4388 return app<NanIfGreaterOrEqual< Signature<deFloat16, deFloat16, deFloat16> > >(edge0, edge1); in nanIfGreaterOrEqual()
4391 ExprP<float> nanIfGreaterOrEqual(const ExprP<float>& edge0, const ExprP<float>& edge1) in nanIfGreaterOrEqual() argument
4393 return app<NanIfGreaterOrEqual< Signature<float, float, float> > >(edge0, edge1); in nanIfGreaterOrEqual()
4396 ExprP<double> nanIfGreaterOrEqual(const ExprP<double>& edge0, const ExprP<double>& edge1) in nanIfGreaterOrEqual() argument
4398 return app<NanIfGreaterOrEqual< Signature<double, double, double> > >(edge0, edge1); in nanIfGreaterOrEqual()
[all …]
/third_party/skia/src/sksl/ir/
DSkSLFunctionCall.cpp400 double evaluate_smoothstep(double edge0, double edge1, double x) { in evaluate_smoothstep() argument
401 double t = sk_ieee_double_divide(x - edge0, edge1 - edge0); in evaluate_smoothstep()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DShaderCore.cpp1222 …void ShaderCore::smooth(Vector4f &dst, const Vector4f &edge0, const Vector4f &edge1, const Vector4… in smooth() argument
1224 …Float4 tx = Min(Max((x.x - edge0.x) / (edge1.x - edge0.x), Float4(0.0f)), Float4(1.0f)); dst.x = t… in smooth()
1225 …Float4 ty = Min(Max((x.y - edge0.y) / (edge1.y - edge0.y), Float4(0.0f)), Float4(1.0f)); dst.y = t… in smooth()
1226 …Float4 tz = Min(Max((x.z - edge0.z) / (edge1.z - edge0.z), Float4(0.0f)), Float4(1.0f)); dst.z = t… in smooth()
1227 …Float4 tw = Min(Max((x.w - edge0.w) / (edge1.w - edge0.w), Float4(0.0f)), Float4(1.0f)); dst.w = t… in smooth()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderGLSLstd450.cpp214 auto edge0 = Operand(this, state, insn.word(5)); in EmitExtGLSLstd450() local
219 auto tx = Min(Max((x.Float(i) - edge0.Float(i)) / in EmitExtGLSLstd450()
220 (edge1.Float(i) - edge0.Float(i)), in EmitExtGLSLstd450()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp3949 float edge0 = unionArrays[0][i].getFConst(); in FoldAggregateBuiltIn() local
3953 if (edge0 >= edge1) in FoldAggregateBuiltIn()
3962 float t = gl::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); in FoldAggregateBuiltIn()
/third_party/skia/src/sksl/codegen/
DSkSLVMCodeGenerator.cpp1200 return ternary([](skvm::F32 edge0, skvm::F32 edge1, skvm::F32 x) { in writeIntrinsicCall() argument
1201 skvm::F32 t = skvm::clamp01((x - edge0) / (edge1 - edge0)); in writeIntrinsicCall()
/third_party/ffmpeg/libavfilter/
Dvf_xfade.c258 static inline float smoothstep(float edge0, float edge1, float x) in smoothstep() argument
262 t = av_clipf((x - edge0) / (edge1 - edge0), 0.f, 1.f); in smoothstep()
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_gpu_shader_fp64.txt719 genDType smoothstep(genDType edge0, genDType edge1, genDType x);
720 genDType smoothstep(double edge0, double edge1, genDType x);
/third_party/openGLES/extensions/ARB/
DARB_gpu_shader_fp64.txt729 genDType smoothstep(genDType edge0, genDType edge1, genDType x);
730 genDType smoothstep(double edge0, double edge1, genDType x);

12