Home
last modified time | relevance | path

Searched refs:perspective (Results 1 - 25 of 57) sorted by relevance

123

/third_party/skia/bench/
H A DRotatedRectBench.cpp74 RotRectBench(bool aa, ColorType ct, SkBlendMode mode, bool perspective = false) in RotRectBench()
76 , fPerspective(perspective) in RotRectBench()
113 // Apply some fixed perspective to change how ops may draw the rects
114 SkMatrix perspective; variable
115 perspective.setIdentity();
116 perspective.setPerspX(1e-4f);
117 perspective.setPerspY(1e-3f);
118 perspective.setSkewX(0.1f);
119 canvas->concat(perspective);
205 // Only do a limited run of perspective test
[all...]
H A DRectBench.cpp33 RectBench(int shift, int stroke = 0, bool aa = true, bool perspective = false) in RectBench()
37 , fPerspective(perspective) {} in RectBench()
89 // Apply some fixed perspective to change how ops may draw the rects
90 SkMatrix perspective; variable
91 perspective.setIdentity();
92 perspective.setPerspX(1e-4f);
93 perspective.setPerspY(1e-3f);
94 perspective.setSkewX(0.1f);
95 canvas->concat(perspective);
166 LocalCoordsRectBench(bool aa, bool perspective
[all...]
H A DGrQuadBench.cpp15 GrQuadBoundsBench(bool perspective) in GrQuadBoundsBench() argument
16 : fPerspective(perspective) { in GrQuadBoundsBench()
17 fName.printf("grquad_bounds_%s", perspective ? "3d" : "2d"); in GrQuadBoundsBench()
/third_party/skia/tests/
H A DGrQuadCropTest.cpp138 // unless it's perspective in which case we don't do anything since the code isn't in run_crop_fully_covered_test()
143 ASSERTF(!exact, "Expected no change for perspective"); in run_crop_fully_covered_test()
217 SkMatrix perspective; in test_axis_aligned() local
218 perspective.setPerspY(0.001f); in test_axis_aligned()
219 perspective.setSkewX(8.f / 25.f); in test_axis_aligned()
220 test_axis_aligned_all_clips(r, viewMatrix, &perspective); in test_axis_aligned()
236 SkMatrix perspective; in test_crop_fully_covered() local
237 perspective.setPerspY(0.001f); in test_crop_fully_covered()
238 perspective.setSkewX(8.f / 25.f); in test_crop_fully_covered()
239 run_crop_fully_covered_test(r, GrAA::kNo, viewMatrix, &perspective); in test_crop_fully_covered()
267 SkMatrix perspective; TEST() local
[all...]
H A DGrQuadBufferTest.cpp50 SkMatrix perspective; in generate_quads() local
51 perspective.setPerspX(0.01f); in generate_quads()
52 perspective.setPerspY(0.001f); in generate_quads()
70 quad = GrQuad::MakeFromRect(rect, perspective); in generate_quads()
/third_party/skia/gm/
H A Dscaledemoji.cpp188 SkMatrix perspective; variable
189 perspective.postTranslate(-600, -600);
190 perspective.postConcat(taper);
191 perspective.postRotate(rotate);
192 perspective.postTranslate(600, 600);
193 canvas->concat(perspective);
H A Dglyph_pos.cpp76 SkMatrix perspective; in draw_gm() local
77 perspective.setIdentity(); in draw_gm()
78 perspective.setPerspX(-SkScalarInvert(340)); in draw_gm()
79 perspective.setSkewX(8.0f / 25.0f); in draw_gm()
80 perspective.setSkewY(2.0f / 25.0f); in draw_gm()
82 canvas->concat(perspective); in draw_gm()
H A D3d.cpp31 SkM44 camera, perspective, viewport; in make_ctm() local
36 perspective = SkM44::Perspective(info.fNear, info.fFar, info.fAngle); in make_ctm()
40 return viewport * perspective * camera * model * inv(viewport); in make_ctm()
H A Dpatharcto.cpp85 // addPath() sometimes checks for perspective, so we want to test that in DEF_SIMPLE_GM()
86 const SkScalar x = 0.0001f; // tiny amount of perspective in DEF_SIMPLE_GM()
87 const SkMatrix perspective = SkMatrix::MakeAll(1, 0, 0, in DEF_SIMPLE_GM() local
110 path.addPath(path1, perspective, SkPath::kAppend_AddPathMode); in DEF_SIMPLE_GM()
124 path.addPath(path1, perspective, SkPath::kExtend_AddPathMode); in DEF_SIMPLE_GM()
H A Dgradients.cpp288 // Based on the original gradient slide, but with perspective applied to the
319 // apply an increasing y perspective as we move to the right
320 SkMatrix perspective; variable
321 perspective.setIdentity();
322 perspective.setPerspY(SkIntToScalar(i+1) / 500);
323 perspective.setSkewX(SkIntToScalar(i+1) / 10);
325 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, perspective));
339 // Based on the original gradient slide, but with perspective applied to
354 SkMatrix perspective; variable
355 perspective
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_point.c86 * perspective divide. in point_persp_coeff()
104 * \param perspective does the shader expects pre-multiplied w, i.e.,
113 boolean perspective) in texcoord_coef()
129 if (perspective) { in texcoord_coef()
149 if (perspective) { in texcoord_coef()
161 info->a0[slot][3] = perspective ? w0 : 1.0f; in texcoord_coef()
224 boolean perspective = !!(interp == LP_INTERP_PERSPECTIVE); in setup_point_coefficients() local
227 if (perspective && usage_mask) { in setup_point_coefficients()
267 perspective); in setup_point_coefficients()
277 if (perspective) { in setup_point_coefficients()
108 texcoord_coef(struct lp_setup_context *setup, const struct point_info *info, unsigned slot, unsigned i, unsigned sprite_coord_origin, boolean perspective) texcoord_coef() argument
[all...]
H A Dlp_linear_interp.c123 boolean perspective, in lp_linear_init_interp()
144 if (perspective && oow != 1.0f) { in lp_linear_init_interp()
171 * - premultiply perspective interpolants by w in lp_linear_init_interp()
232 boolean perspective, in lp_linear_init_interp()
120 lp_linear_init_interp(struct lp_linear_interp *interp, int x, int y, int width, int height, unsigned usage_mask, boolean perspective, float oow, const float *a0, const float *dadx, const float *dady) lp_linear_init_interp() argument
229 lp_linear_init_interp(struct lp_linear_interp *interp, int x, int y, int width, int height, unsigned usage_mask, boolean perspective, float oow, const float *a0, const float *dadx, const float *dady) lp_linear_init_interp() argument
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
H A Dcodegen.c84 f->imm.perspective = 3; in ppir_codegen_encode_varying()
91 f->imm.perspective = 1; in ppir_codegen_encode_varying()
97 switch (load->perspective) { in ppir_codegen_encode_varying()
99 f->imm.perspective = 0; in ppir_codegen_encode_varying()
102 f->imm.perspective = 2; in ppir_codegen_encode_varying()
105 f->imm.perspective = 3; in ppir_codegen_encode_varying()
120 f->reg.perspective = 1; in ppir_codegen_encode_varying()
123 switch (load->perspective) { in ppir_codegen_encode_varying()
125 f->reg.perspective = 0; in ppir_codegen_encode_varying()
128 f->reg.perspective in ppir_codegen_encode_varying()
[all...]
H A Ddisasm.c204 bool perspective = varying->imm.source_type < 2 && varying->imm.perspective; in print_varying() local
205 if (perspective) in print_varying()
207 fprintf(fp, ".perspective"); in print_varying()
208 switch (varying->imm.perspective) in print_varying()
242 switch (varying->imm.perspective) { in print_varying()
266 if (varying->imm.perspective) in print_varying()
H A Dcodegen.h77 unsigned perspective : 2; member
91 unsigned perspective : 2; member
/third_party/ffmpeg/libavfilter/
H A Dvf_perspective.c53 int (*perspective)(AVFilterContext *ctx, member
95 AVFILTER_DEFINE_CLASS(perspective); variable
433 case LINEAR: s->perspective = resample_linear; break; in init()
434 case CUBIC: s->perspective = resample_cubic; break; in init()
474 ff_filter_execute(ctx, s->perspective, &td, NULL, in filter_frame()
506 .name = "perspective",
507 .description = NULL_IF_CONFIG_SMALL("Correct the perspective of video."),
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dmatrix_decompose.hpp37 tvec3<T, P> & scale, tquat<T, P> & orientation, tvec3<T, P> & translation, tvec3<T, P> & skew, tvec4<T, P> & perspective);
/third_party/skia/third_party/externals/swiftshader/src/Device/
H A DQuadRasterizer.hpp49 Float4 interpolate(Float4 &x, Float4 &D, Float4 &rhw, Pointer<Byte> planeEquation, bool flat, bool perspective);
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DQuadRasterizer.hpp55 Float4 interpolate(Float4 &x, Float4 &D, Float4 &rhw, Pointer<Byte> planeEquation, bool flat, bool perspective, bool clamp);
H A DSetupProcessor.hpp48 bool perspective : 1; member
H A DQuadRasterizer.cpp319 Float4 QuadRasterizer::interpolate(Float4 &x, Float4 &D, Float4 &rhw, Pointer<Byte> planeEquation, bool flat, bool perspective, bool clamp)
327 if(perspective)
348 return state.perspective || (shader && shader->isVPosDeclared() && fullPixelPositionRegister);
/third_party/skia/modules/canvaskit/
H A Dmatrix.js288 // Create a 4x4 matrix representing a perspective. All arguments are scalars.
290 CanvasKit.M44.perspective = function(near, far, angle) {
292 throw 'far must be greater than near when constructing M44 using perspective.';
423 // returns a matrix that sets up a 3D perspective view from a given camera.
439 var perspective = CanvasKit.M44.perspective(cam['near'], cam['far'], cam['angle']);
446 viewport, perspective, camera, CanvasKit.M44.mustInvert(viewport));
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSetupRoutine.hpp36 void setupGradient(Pointer<Byte> &primitive, Pointer<Byte> &triangle, Float4 &w012, Float4 (&m)[3], Pointer<Byte> &v0, Pointer<Byte> &v1, Pointer<Byte> &v2, int attribute, int planeEquation, bool flatShading, bool perspective);
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DSetupRoutine.hpp36 void setupGradient(Pointer<Byte> &primitive, Pointer<Byte> &triangle, Float4 &w012, Float4 (&m)[3], Pointer<Byte> &v0, Pointer<Byte> &v1, Pointer<Byte> &v2, int attribute, int planeEquation, bool flatShading, bool sprite, bool perspective, bool wrap, int component);
/third_party/skia/third_party/externals/angle2/util/
H A DMatrix.h43 static Matrix4 perspective(float fov, float aspectRatio, float n, float f);

Completed in 12 milliseconds

123