/third_party/skia/bench/ |
H A D | RotatedRectBench.cpp | 74 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 D | RectBench.cpp | 33 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 D | GrQuadBench.cpp | 15 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 D | GrQuadCropTest.cpp | 138 // 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 D | GrQuadBufferTest.cpp | 50 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 D | scaledemoji.cpp | 188 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 D | glyph_pos.cpp | 76 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 D | 3d.cpp | 31 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 D | patharcto.cpp | 85 // 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 D | gradients.cpp | 288 // 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 D | lp_setup_point.c | 86 * 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 D | lp_linear_interp.c | 123 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 D | codegen.c | 84 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 D | disasm.c | 204 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 D | codegen.h | 77 unsigned perspective : 2; member 91 unsigned perspective : 2; member
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_perspective.c | 53 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 D | matrix_decompose.hpp | 37 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 D | QuadRasterizer.hpp | 49 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 D | QuadRasterizer.hpp | 55 Float4 interpolate(Float4 &x, Float4 &D, Float4 &rhw, Pointer<Byte> planeEquation, bool flat, bool perspective, bool clamp);
|
H A D | SetupProcessor.hpp | 48 bool perspective : 1; member
|
H A D | QuadRasterizer.cpp | 319 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 D | matrix.js | 288 // 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 D | SetupRoutine.hpp | 36 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 D | SetupRoutine.hpp | 36 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 D | Matrix.h | 43 static Matrix4 perspective(float fov, float aspectRatio, float n, float f);
|