/external/libkmsxx/py/tests/ |
ctm_test.py | 6 def ctm_to_blob(ctm, card): 12 i, d = divmod(ctm[x], 1) 20 #print("%f = %08x.%08x" % (ctm[x], view[x * 2 + 1], view[x * 2 + 0])) 41 input("press enter to set normal ctm\n") 43 ctm = [ 1.0, 0.0, 0.0, variable 47 ctmb = ctm_to_blob(ctm, card) 49 crtc.set_prop("CTM", ctmb.id) 51 input("press enter to set new ctm\n") 53 ctm = [ 0.0, 1.0, 0.0, variable 57 ctmb = ctm_to_blob(ctm, card 65 ctm = [ 0.0, 0.0, 1.0, variable [all...] |
/external/pdfium/core/fpdfapi/render/ |
cpdf_devicebuffer.cpp | 46 CFX_Matrix ctm = m_pDevice->GetCTM(); local 47 m_Matrix.Concat(CFX_Matrix(fabs(ctm.a), 0, 0, fabs(ctm.d), 0, 0));
|
/external/skia/include/atlastext/ |
SkAtlasTextTarget.h | 64 /** Pre-translates the current CTM. */ 66 /** Pre-scales the current CTM. */ 68 /** Pre-rotates the current CTM about the origin. */ 70 /** Pre-rotates the current CTM about the (px, py). */ 72 /** Pre-skews the current CTM. */ 74 /** Pre-concats the current CTM. */ 80 const SkMatrix& ctm() const { return *static_cast<const SkMatrix*>(fMatrixStack.back()); } function in class:SkAtlasTextTarget
|
/external/skia/samplecode/ |
SampleGlyphTransform.cpp | 50 SkMatrix ctm; variable 51 ctm.setRotate(fRotate); // d3 rotate takes degrees 52 ctm.postScale(fScale * 4, fScale * 4); 53 ctm.postTranslate(fTranslate.fX + this->width() * 0.8, fTranslate.fY + baseline); 54 canvas->concat(ctm);
|
/external/skia/tests/ |
ShadowTest.cpp | 36 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, 39 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); 42 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); 45 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 48 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 117 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { 127 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); 128 ctm.mapRect(&bounds); 130 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); 135 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY) 145 SkMatrix ctm; local [all...] |
/external/skqp/include/atlastext/ |
SkAtlasTextTarget.h | 64 /** Pre-translates the current CTM. */ 66 /** Pre-scales the current CTM. */ 68 /** Pre-rotates the current CTM about the origin. */ 70 /** Pre-rotates the current CTM about the (px, py). */ 72 /** Pre-skews the current CTM. */ 74 /** Pre-concats the current CTM. */ 80 const SkMatrix& ctm() const { return *static_cast<const SkMatrix*>(fMatrixStack.back()); } function in class:SkAtlasTextTarget
|
/external/skqp/samplecode/ |
SampleGlyphTransform.cpp | 50 SkMatrix ctm; variable 51 ctm.setRotate(fRotate); // d3 rotate takes degrees 52 ctm.postScale(fScale * 4, fScale * 4); 53 ctm.postTranslate(fTranslate.fX + this->width() * 0.8, fTranslate.fY + baseline); 54 canvas->concat(ctm);
|
/external/skqp/tests/ |
ShadowTest.cpp | 36 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, 39 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); 42 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); 45 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 48 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); 117 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { 127 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); 128 ctm.mapRect(&bounds); 130 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); 135 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY) 145 SkMatrix ctm; local [all...] |
/external/skia/gm/ |
pictureshader.cpp | 66 SkMatrix ctm, localMatrix; variable 67 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); 68 ctm.preScale(-1, -1); 70 this->drawScene(canvas, ctm, localMatrix, 0); 72 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); 74 this->drawScene(canvas, ctm, localMatrix, 0); 76 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); 77 ctm.preScale(2, 2); 78 this->drawScene(canvas, ctm, localMatrix, 0); 80 ctm.setTranslate(fSceneSize * 13.8f, fSceneSize * 14.3f) 91 SkMatrix ctm, localMatrix; local [all...] |
lightingshader.cpp | 99 const SkMatrix& ctm = canvas->getTotalMatrix(); local 107 ctm);
|
lightingshader2.cpp | 117 const SkMatrix& ctm = canvas->getTotalMatrix(); local 124 normalSource = SkNormalSource::MakeFromNormalMap(fNormalMapShader, ctm);
|
/external/skqp/gm/ |
pictureshader.cpp | 66 SkMatrix ctm, localMatrix; variable 67 ctm.setTranslate(fSceneSize * 2.1f, fSceneSize * 13.8f); 68 ctm.preScale(-1, -1); 70 this->drawScene(canvas, ctm, localMatrix, 0); 72 ctm.setTranslate(fSceneSize * 2.4f, fSceneSize * 12.8f); 74 this->drawScene(canvas, ctm, localMatrix, 0); 76 ctm.setTranslate(fSceneSize * 4.8f, fSceneSize * 12.3f); 77 ctm.preScale(2, 2); 78 this->drawScene(canvas, ctm, localMatrix, 0); 80 ctm.setTranslate(fSceneSize * 13.8f, fSceneSize * 14.3f) 91 SkMatrix ctm, localMatrix; local [all...] |
lightingshader.cpp | 99 const SkMatrix& ctm = canvas->getTotalMatrix(); local 107 ctm);
|
lightingshader2.cpp | 117 const SkMatrix& ctm = canvas->getTotalMatrix(); local 124 normalSource = SkNormalSource::MakeFromNormalMap(fNormalMapShader, ctm);
|
/external/perfetto/src/tracing/core/ |
shared_memory_arbiter_impl.cc | 193 CommitDataRequest::ChunksToMove* ctm = local 195 ctm->set_page(static_cast<uint32_t>(page_idx)); 196 ctm->set_chunk(chunk_idx); 197 ctm->set_target_buffer(target_buffer);
|
/external/harfbuzz_ng/util/ |
helper-cairo.cc | 132 cairo_matrix_t ctm, font_matrix; local 135 cairo_matrix_init_identity (&ctm); 145 &ctm,
|
/external/skia/include/core/ |
SkImageFilter.h | 60 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, 62 : fCTM(ctm) 68 const SkMatrix& ctm() const { return fCTM; } function in class:SkImageFilter::Context 78 * The SkImageFilterCache Key, for example, requires a finite ctm (no infinities 132 * It includes the clip bounds, CTM and cache. 166 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm, 242 * ImageFilters can natively handle scaling and translate components in the CTM. Only some of 352 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 371 virtual SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 399 * CTM, applying it to the initial bounds, and intersecting the result wit [all...] |
/external/skia/src/core/ |
SkDraw_vertices.cpp | 310 const SkMatrix* ctm = fMatrix; local 318 ctm = &tmpCtm; 330 auto blitter = SkCreateRasterPipelineBlitter(fDst, p, *ctm, &innerAlloc);
|
SkRecordDraw.cpp | 207 const SkMatrix& ctm() const { return fCTM; } function in class:SkRecords::FillBounds 243 SkMatrix ctm; member in struct:SkRecords::FillBounds::SaveBounds 246 // Only Restore, SetMatrix, Concat, and Translate change the CTM. 284 sb.ctm = this->fCTM; 477 if (!fSaveStack[i].ctm.invert(&inverse)) { 484 fSaveStack[i].ctm.mapRect(rect); 498 // as we go using updateCTM() to maintain the exact CTM (fCTM).
|
/external/skia/src/gpu/ |
SkGpuDevice_drawTexture.cpp | 174 static void draw_texture(GrRenderTargetContext* rtc, const GrClip& clip, const SkMatrix& ctm, 226 ctm, std::move(textureXform)); 229 dstRect, aa, aaFlags, constraint, ctm, std::move(textureXform)); 235 const GrClip& clip, const SkMatrix& ctm, 248 draw_texture(rtc, clip, ctm, paint, src, dst, dstClip, aa, aaFlags, constraint, 261 // combining by not baking anything about the srcRect, dstRect, or ctm, into the texture 269 paint.getFilterQuality(), ctm, srcToDst, 289 combinedMatrix.setConcat(ctm, srcToDst); 312 if (!SkPaintToGrPaintWithTexture(context, rtc->colorSpaceInfo(), paint, ctm, 327 rtc->fillQuadWithEdgeAA(clip, std::move(grPaint), aa, aaFlags, ctm, dstClip, srcClip) 377 SkMatrix ctm = this->ctm(); local [all...] |
/external/skia/src/gpu/text/ |
GrTextBlob.cpp | 242 SkMatrix ctm; local 253 ctm = viewMatrix; 266 // space independently of the CTM. This allows the CTM to be correct for the 273 // Scale can be applied to CTM -- no effects. 275 ctm.preConcat(pathMatrix); 280 // way the CTM will remain the same so it can be used by the effects. 302 ctm = SkMatrix::MakeTrans(originShift.x() + pathGlyph.fX, 309 target->drawShape(clip, runPaint, ctm, shape);
|
/external/skqp/include/core/ |
SkImageFilter.h | 60 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, 62 : fCTM(ctm) 68 const SkMatrix& ctm() const { return fCTM; } function in class:SkImageFilter::Context 78 * The SkImageFilterCache Key, for example, requires a finite ctm (no infinities 132 * It includes the clip bounds, CTM and cache. 166 SkIRect filterBounds(const SkIRect& src, const SkMatrix& ctm, 242 * ImageFilters can natively handle scaling and translate components in the CTM. Only some of 352 virtual SkIRect onFilterBounds(const SkIRect&, const SkMatrix& ctm, 371 virtual SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm, 399 * CTM, applying it to the initial bounds, and intersecting the result wit [all...] |
/external/skqp/src/core/ |
SkDraw_vertices.cpp | 310 const SkMatrix* ctm = fMatrix; local 318 ctm = &tmpCtm; 330 auto blitter = SkCreateRasterPipelineBlitter(fDst, p, *ctm, &innerAlloc);
|
SkRecordDraw.cpp | 203 const SkMatrix& ctm() const { return fCTM; } function in class:SkRecords::FillBounds 239 SkMatrix ctm; member in struct:SkRecords::FillBounds::SaveBounds 242 // Only Restore, SetMatrix, Concat, and Translate change the CTM. 280 sb.ctm = this->fCTM; 472 if (!fSaveStack[i].ctm.invert(&inverse)) { 479 fSaveStack[i].ctm.mapRect(rect); 493 // as we go using updateCTM() to maintain the exact CTM (fCTM).
|
/external/skqp/src/gpu/text/ |
GrTextBlob.cpp | 242 SkMatrix ctm; local 253 ctm = viewMatrix; 266 // space independently of the CTM. This allows the CTM to be correct for the 273 // Scale can be applied to CTM -- no effects. 275 ctm.preConcat(pathMatrix); 280 // way the CTM will remain the same so it can be used by the effects. 302 ctm = SkMatrix::MakeTrans(originShift.x() + pathGlyph.fX, 309 target->drawShape(clip, runPaint, ctm, shape);
|