Home
last modified time | relevance | path

Searched refs:dstBounds (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp339 SkIRect dstBounds; in onFilterImage() local
340 input = this->applyCropRectAndPad(this->mapContext(ctx), input.get(), &inputOffset, &dstBounds); in onFilterImage()
348 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage()
355 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
376 offset->fX = dstBounds.left(); in onFilterImage()
377 offset->fY = dstBounds.top(); in onFilterImage()
378 dstBounds.offset(-inputOffset); in onFilterImage()
404 dstBounds.offset(input->subset().x(), input->subset().y()); in onFilterImage()
405 return DrawWithFP(context, std::move(fp), dstBounds, ctx.colorType(), ctx.colorSpace(), in onFilterImage()
430 const SkImageInfo info = SkImageInfo::MakeN32(dstBounds.width(), dstBounds.height(), in onFilterImage()
[all …]
DSkBlurImageFilter.cpp60 SkIRect inputBounds, SkIRect dstBounds, SkIPoint inputOffset, SkIPoint* offset) const;
692 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
706 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
707 dstBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
710 dstW = dstBounds.width(), in copy_image_with_bounds()
711 dstH = dstBounds.height(); in copy_image_with_bounds()
741 for (;x < dstBounds.right(); x++) { in copy_image_with_bounds()
746 for (;y < dstBounds.bottom(); y++) { in copy_image_with_bounds()
750 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
751 dstBounds.height()), in copy_image_with_bounds()
[all …]
DSkImageImageFilter.cpp105 const SkRect dstBounds = ctx.ctm().mapRect(fDstRect); in onFilterImage() local
106 const SkIRect dstIBounds = dstBounds.roundOut(); in onFilterImage()
119 const bool passthroughDstOffsets = SkScalarIsInt(dstBounds.fLeft) && in onFilterImage()
120 SkScalarIsInt(dstBounds.fTop); in onFilterImage()
122 SkScalarIsInt(fSrcRect.width()) && fSrcRect.width() == dstBounds.width() && in onFilterImage()
123 SkScalarIsInt(fSrcRect.height()) && fSrcRect.height() == dstBounds.height(); in onFilterImage()
/third_party/skia/src/core/
DSkGpuBlurUtils.cpp103 const SkIRect& dstBounds, in convolve_gaussian_2d() argument
117 rContext, srcColorType, std::move(finalCS), dstFit, dstBounds.size(), SkSurfaceProps(), in convolve_gaussian_2d()
145 SkRect::Make(dstBounds.size()), SkRect::Make(dstBounds)); in convolve_gaussian_2d()
156 SkIRect dstBounds, in convolve_gaussian() argument
172 rContext, srcColorType, std::move(finalCS), fit, dstBounds.size(), SkSurfaceProps(), 1, in convolve_gaussian()
178 auto rtcToSrcOffset = dstBounds.topLeft(); in convolve_gaussian()
190 auto dstRect = SkIRect::MakeSize(dstBounds.size()); in convolve_gaussian()
208 top = {dstBounds.left(), dstBounds.top() , dstBounds.right(), srcBounds.top() }; in convolve_gaussian()
209 bottom = {dstBounds.left(), srcBounds.bottom(), dstBounds.right(), dstBounds.bottom()}; in convolve_gaussian()
213 int midA = std::max(srcBounds.top() , dstBounds.top() ); in convolve_gaussian()
[all …]
DSkMatrixImageFilter.cpp87 SkIRect dstBounds; in onFilterImage() local
88 dstRect.roundOut(&dstBounds); in onFilterImage()
90 sk_sp<SkSpecialSurface> surf(ctx.makeSurface(dstBounds.size())); in onFilterImage()
100 canvas->translate(-SkIntToScalar(dstBounds.x()), -SkIntToScalar(dstBounds.y())); in onFilterImage()
109 offset->fX = dstBounds.fLeft; in onFilterImage()
110 offset->fY = dstBounds.fTop; in onFilterImage()
DSkGpuBlurUtils.h57 SkIRect dstBounds,
DSkImageFilter.cpp379 SkIRect* dstBounds) const { in applyCropRect()
381 fCropRect.applyTo(tmpDst, ctx.ctm(), this->onAffectsTransparentBlack(), dstBounds); in applyCropRect()
387 return dstBounds->intersect(ctx.clipBounds()); in applyCropRect()
DSkImageFilter_Base.h279 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;
DSkDraw.cpp1065 const SkRect* dstBounds, const SkSamplingOptions& sampling, in drawBitmap() argument
1124 if (dstBounds) { in drawBitmap()
1125 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap()
/third_party/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp132 void adjust_bounds_to_granularity(SkIRect* dstBounds, in adjust_bounds_to_granularity() argument
144 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity()
145 if (dstBounds->fRight > maxWidth) { in adjust_bounds_to_granularity()
146 dstBounds->fRight = maxWidth; in adjust_bounds_to_granularity()
147 dstBounds->fLeft = 0; in adjust_bounds_to_granularity()
149 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity()
152 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity()
153 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity()
163 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
164 if (dstBounds->fBottom > maxHeight) { in adjust_bounds_to_granularity()
[all …]
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_resample.cpp511 const dng_rect &dstBounds,
534 const dng_rect &dstBounds, in dng_resample_task() argument
541 , fDstBounds (dstBounds) in dng_resample_task()
545 , fRowScale ((srcBounds.H () != 0) ? dstBounds.H () / (real64) srcBounds.H () : 0) in dng_resample_task()
546 , fColScale ((srcBounds.W () != 0) ? dstBounds.W () / (real64) srcBounds.W () : 0) in dng_resample_task()
833 const dng_rect &dstBounds, in ResampleImage() argument
840 dstBounds, in ResampleImage()
844 dstBounds); in ResampleImage()
Ddng_resample.h286 const dng_rect &dstBounds,