Home
last modified time | relevance | path

Searched refs:dstRect (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/src/effects/
DSkImageSource.cpp28 const SkRect& dstRect, in Make() argument
35 srcRect, dstRect, in Make()
49 const SkRect& dstRect, in SkImageSource() argument
54 , fDstRect(dstRect) in SkImageSource()
82 SkRect dstRect; in onFilterImage() local
83 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
87 int iLeft = dstRect.fLeft; in onFilterImage()
88 int iTop = dstRect.fTop; in onFilterImage()
91 if (dstRect.width() == bounds.width() && dstRect.height() == bounds.height() && in onFilterImage()
92 iLeft == dstRect.fLeft && iTop == dstRect.fTop) { in onFilterImage()
[all …]
DSkTileImageFilter.cpp23 sk_sp<SkImageFilter> SkTileImageFilter::Make(const SkRect& srcRect, const SkRect& dstRect, in Make() argument
25 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Make()
28 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Make()
29 SkRect ir = dstRect; in Make()
34 return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), in Make()
35 dstRect.y() - srcRect.y(), in Make()
39 return sk_sp<SkImageFilter>(new SkTileImageFilter(srcRect, dstRect, std::move(input))); in Make()
51 SkRect dstRect; in onFilterImage() local
52 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage()
53 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImage()
[all …]
DSkMorphologyImageFilter.cpp403 const SkIRect& dstRect, in apply_morphology_rect() argument
418 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect()
425 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument
438 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect_no_bounds()
445 const SkIRect& dstRect, in apply_morphology_pass() argument
450 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass()
451 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass()
452 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass()
457 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass()
459 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass()
[all …]
/external/skia/samplecode/
DSampleTextureDomain.cpp48 SkRect dstRect; in onDrawContent() local
55 dstRect.setXYWH(5, 5, 305, 305); in onDrawContent()
56 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent()
66 dstRect.setXYWH(1, 1, 3, 3); in onDrawContent()
67 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent()
73 dstRect.setXYWH(405, 5, 305, 305); in onDrawContent()
74 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
79 dstRect.setXYWH(5, 405, 305, 305); in onDrawContent()
85 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent()
96 dstRect.setXYWH(-150, -150, 300, 300); in onDrawContent()
[all …]
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
DViESurfaceRenderer.java41 private Rect dstRect = new Rect(); field in ViESurfaceRenderer
56 dstRect.right = (int)(dstRect.left + dstRightScale * dstWidth); in changeDestRect()
57 dstRect.bottom = (int)(dstRect.top + dstBottomScale * dstHeight); in changeDestRect()
72 " dstRect.left:" + dstRect.left + in surfaceChanged()
73 " dstRect.top:" + dstRect.top + in surfaceChanged()
74 " dstRect.right:" + dstRect.right + in surfaceChanged()
75 " dstRect.bottom:" + dstRect.bottom); in surfaceChanged()
93 " dstRect.left:" + dstRect.left + in surfaceCreated()
94 " dstRect.top:" + dstRect.top + in surfaceCreated()
95 " dstRect.right:" + dstRect.right + in surfaceCreated()
[all …]
/external/skia/src/core/
DSkGpuBlurUtils.cpp71 const SkIRect& dstRect, in convolve_gaussian_1d() argument
91 SkRect::Make(dstRect), localMatrix); in convolve_gaussian_1d()
96 const SkIRect& dstRect, in convolve_gaussian_2d() argument
121 SkRect::Make(dstRect), localMatrix); in convolve_gaussian_2d()
134 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian() local
136 convolve_gaussian_1d(renderTargetContext, clip, dstRect, srcOffset, in convolve_gaussian()
146 topRect = SkIRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()); in convolve_gaussian()
147 bottomRect = SkIRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()); in convolve_gaussian()
151 SkIRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()); in convolve_gaussian()
152 dstRect.fTop = midRect.top(); in convolve_gaussian()
[all …]
DSkMatrixImageFilter.cpp68 SkRect dstRect; in onFilterImage() local
69 matrix.mapRect(&dstRect, srcRect); in onFilterImage()
71 dstRect.roundOut(&dstBounds); in onFilterImage()
/external/skia/gm/
Dtileimagefilter.cpp64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local
70 dstRect, in onDraw()
78 canvas->drawRect(dstRect, blue); in onDraw()
94 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local
96 sk_sp<SkImageFilter> tile(SkTileImageFilter::Make(srcRect, dstRect, nullptr)); in onDraw()
103 canvas->clipRect(dstRect); in onDraw()
104 canvas->saveLayer(&dstRect, &paint); in onDraw()
108 canvas->drawRect(dstRect, blue); in onDraw()
114 dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw()
121 tile = SkTileImageFilter::Make(srcRect, dstRect, std::move(green)); in onDraw()
[all …]
Dverylargebitmap.cpp50 SkRect dstRect = SkRect::MakeWH(128.f, 128.f); in show_image() local
53 canvas->clipRect(dstRect); in show_image()
56 canvas->drawRect(dstRect, borderPaint); in show_image()
58 dstRect.offset(SkIntToScalar(150), 0); in show_image()
62 canvas->drawImageRect(image, subset, dstRect, nullptr); in show_image()
63 canvas->drawRect(dstRect, borderPaint); in show_image()
65 dstRect.offset(SkIntToScalar(150), 0); in show_image()
66 canvas->drawImageRect(image, dstRect, nullptr); in show_image()
67 canvas->drawRect(dstRect, borderPaint); in show_image()
Ddrawbitmaprect.cpp166 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
194 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, nullptr); in onDraw()
201 SkScalar baseline = dstRect.height() + in onDraw()
209 canvas->drawRect(dstRect, blackPaint); in onDraw()
211 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
213 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw()
215 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
239 fProc(canvas, image.get(), bm, srcRect, dstRect, &paint); in onDraw()
Ddrawminibitmaprect.cpp87 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local
117 canvas->drawImageRect(fImage.get(), srcRect, dstRect, &paint, in onDraw()
121 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw()
123 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw()
125 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
Dresizeimagefilter.cpp32 SkRect dstRect; in draw() local
33 canvas->getTotalMatrix().mapRect(&dstRect, rect); in draw()
35 SkScalar deviceScaleX = deviceSize.width() / dstRect.width(); in draw()
36 SkScalar deviceScaleY = deviceSize.height() / dstRect.height(); in draw()
Dimagesource.cpp47 const SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); in onDraw() local
67 SkImageSource::Make(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); in onDraw()
74 SkImageSource::Make(fImage, bounds, dstRect, kHigh_SkFilterQuality)); in onDraw()
Dimagesource2.cpp66 const SkRect dstRect = SkRect::MakeLTRB(0.75f, 0.75f, 225.75f, 225.75f); in onDraw() local
69 p.setImageFilter(SkImageSource::Make(fImage, srcRect, dstRect, fFilter)); in onDraw()
Dtallstretchedbitmaps.cpp88 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(bmp.width()), 10.f * itemHeight); in onDraw() local
91 canvas->drawBitmapRect(bmp, subRect, dstRect, &paint); in onDraw()
/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp92 const SkRect* dstRect, in drawTextureProducer() argument
108 if (!dstRect) { in drawTextureProducer()
109 dstRect = &srcBounds; in drawTextureProducer()
116 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
122 clippedDstRect = *dstRect; in drawTextureProducer()
123 if (!srcToDstMatrix.setRectToRect(*srcRect, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
129 if (dstRect) { in drawTextureProducer()
130 clippedDstRect = *dstRect; in drawTextureProducer()
131 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
DGrTextureProducer.cpp28 const SkRect dstRect = SkRect::MakeIWH(copyParams.fWidth, copyParams.fHeight); in CopyOnGpu() local
31 SkBackingFit::kExact, dstRect.width(), dstRect.height(), config, nullptr); in CopyOnGpu()
48 bool resizing = localRect.width() != dstRect.width() || in CopyOnGpu()
49 localRect.height() != dstRect.height(); in CopyOnGpu()
74 copyRTC->fillRectToRect(GrNoClip(), std::move(paint), GrAA::kNo, SkMatrix::I(), dstRect, in CopyOnGpu()
DGrSWMaskHelper.cpp168 SkRect dstRect = SkRect::Make(deviceSpaceRectToDraw); in DrawToTargetWithShapeMask() local
177 paint.getColor(), SkMatrix::I(), dstRect, nullptr, &invert); in DrawToTargetWithShapeMask()
/external/deqp/framework/platform/raspi/
DtcuRaspiPlatform.cpp127 VC_RECT_T dstRect, srcRect; in Window() local
129 dstRect.x = 0; in Window()
130 dstRect.y = 0; in Window()
131 dstRect.width = width; in Window()
132 dstRect.height = height; in Window()
145 …m_dispmanElement = vc_dispmanx_element_add(dispmanUpdate, m_dispmanDisplay, 0/*layer*/, &dstRect, … in Window()
/external/skia/include/effects/
DSkImageSource.h19 const SkRect& dstRect,
37 const SkRect& dstRect,
DSkTileImageFilter.h38 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, sk_sp<SkImageFilter> input) in SkTileImageFilter() argument
39 : INHERITED(&input, 1, nullptr), fSrcRect(srcRect), fDstRect(dstRect) {} in SkTileImageFilter()
/external/deqp/modules/gles3/functional/
Des3fFramebufferBlitTests.cpp58 …IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect, int cellSize = 8) in BlitRectCase() argument
64 , m_dstRect (dstRect) in BlitRectCase()
167 …har* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect);
172 …char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect) in BlitNearestFilterConsistencyCase() argument
173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase()
459 … IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dstRect, deUint32 copyBuf… in BlitDepthStencilCase() argument
467 , m_dstRect (dstRect) in BlitDepthStencilCase()
937 IVec4 dstRect; in init() member
949 IVec4 dstRect; in init() member
988 IVec4 dstRect = copyRects[rectNdx].dstRect.swizzle(dstSwz[0], dstSwz[1], dstSwz[2], dstSwz[3]); in init() local
[all …]
/external/pdfium/xfa/fde/
Dfde_gedevice.cpp87 const CFX_RectF& dstRect, in DrawImage() argument
107 dib2fxdev.a = dstRect.width; in DrawImage()
108 dib2fxdev.d = -dstRect.height; in DrawImage()
109 dib2fxdev.e = dstRect.left; in DrawImage()
110 dib2fxdev.f = dstRect.bottom(); in DrawImage()
/external/skia/src/gpu/vk/
DGrVkGpu.cpp1423 SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY, in copySurfaceAsCopyImage() local
1425 this->didWriteToSurface(dst, &dstRect); in copySurfaceAsCopyImage()
1475 SkIRect dstRect; in copySurfaceAsBlit() local
1476 dstRect.fLeft = dstPoint.fX; in copySurfaceAsBlit()
1477 dstRect.fRight = dstPoint.fX + srcRect.width(); in copySurfaceAsBlit()
1488 dstRect.fTop = dst->height() - dstPoint.fY - srcVkRect.height(); in copySurfaceAsBlit()
1490 dstRect.fTop = dstPoint.fY; in copySurfaceAsBlit()
1492 dstRect.fBottom = dstRect.fTop + srcVkRect.height(); in copySurfaceAsBlit()
1497 SkTSwap(dstRect.fTop, dstRect.fBottom); in copySurfaceAsBlit()
1506 blitRegion.dstOffsets[0] = { dstRect.fLeft, dstRect.fTop, 0 }; in copySurfaceAsBlit()
[all …]
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.cpp3034 …ultisampleFramebuffer (deUint32 mask, const IVec4& srcRect, const IVec4& dstRect, bool flipX, bool… in blitResolveMultisampleFramebuffer() argument
3039 …bregion(getDrawColorbuffer().toSinglesampleAccess(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer()
3059 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer()
3060 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer()
3078 …Access dst = rr::getSubregion(getDrawDepthbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer()
3080 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer()
3081 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer()
3093 …ampleAccess(rr::getSubregion(getDrawStencilbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRec… in blitResolveMultisampleFramebuffer()
3095 for (int x = 0; x < dstRect.z(); ++x) in blitResolveMultisampleFramebuffer()
3096 for (int y = 0; y < dstRect.w(); ++y) in blitResolveMultisampleFramebuffer()
[all …]

12