Home
last modified time | relevance | path

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

/external/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp57 SkIRect inputBounds, SkIRect dstBounds, SkIPoint inputOffset, SkIPoint* offset) const;
345 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
359 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
360 dstBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
363 dstW = dstBounds.width(), in copy_image_with_bounds()
364 dstH = dstBounds.height(); in copy_image_with_bounds()
394 for (;x < dstBounds.right(); x++) { in copy_image_with_bounds()
399 for (;y < dstBounds.bottom(); y++) { in copy_image_with_bounds()
403 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
404 dstBounds.height()), in copy_image_with_bounds()
[all …]
DSkMatrixConvolutionImageFilter.cpp340 SkIRect dstBounds; in onFilterImage() local
341 input = this->applyCropRectAndPad(this->mapContext(ctx), input.get(), &inputOffset, &dstBounds); in onFilterImage()
349 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage()
356 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
377 offset->fX = dstBounds.left(); in onFilterImage()
378 offset->fY = dstBounds.top(); in onFilterImage()
379 dstBounds.offset(-inputOffset); in onFilterImage()
405 dstBounds.offset(input->subset().x(), input->subset().y()); in onFilterImage()
406 return DrawWithFP(context, std::move(fp), dstBounds, ctx.colorType(), ctx.colorSpace(), in onFilterImage()
431 const SkImageInfo info = SkImageInfo::MakeN32(dstBounds.width(), dstBounds.height(), in onFilterImage()
[all …]
/external/skqp/src/effects/imagefilters/
DSkBlurImageFilter.cpp61 SkIRect inputBounds, SkIRect dstBounds, SkIPoint inputOffset,
392 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
406 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
407 dstBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
410 dstW = dstBounds.width(), in copy_image_with_bounds()
411 dstH = dstBounds.height(); in copy_image_with_bounds()
441 for (;x < dstBounds.right(); x++) { in copy_image_with_bounds()
446 for (;y < dstBounds.bottom(); y++) { in copy_image_with_bounds()
450 return SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(dstBounds.width(), in copy_image_with_bounds()
451 dstBounds.height()), in copy_image_with_bounds()
[all …]
DSkMatrixConvolutionImageFilter.cpp317 SkIRect dstBounds; in onFilterImage() local
318 input = this->applyCropRectAndPad(this->mapContext(ctx), input.get(), &inputOffset, &dstBounds); in onFilterImage()
326 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage()
333 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
353 offset->fX = dstBounds.left(); in onFilterImage()
354 offset->fY = dstBounds.top(); in onFilterImage()
355 dstBounds.offset(-inputOffset); in onFilterImage()
371 return DrawWithFP(context, std::move(fp), dstBounds, ctx.outputProperties()); in onFilterImage()
393 const SkImageInfo info = SkImageInfo::MakeN32(dstBounds.width(), dstBounds.height(), in onFilterImage()
401 offset->fX = dstBounds.fLeft; in onFilterImage()
[all …]
/external/skia/src/core/
DSkGpuBlurUtils.cpp97 const SkIRect& dstBounds, in convolve_gaussian_2d() argument
111 context, srcColorType, std::move(finalCS), dstFit, dstBounds.size(), SkSurfaceProps(), in convolve_gaussian_2d()
139 SkRect::Make(dstBounds.size()), SkRect::Make(dstBounds)); in convolve_gaussian_2d()
149 SkIRect dstBounds, in convolve_gaussian() argument
165 context, srcColorType, std::move(finalCS), fit, dstBounds.size(), SkSurfaceProps(), 1, in convolve_gaussian()
171 auto rtcToSrcOffset = dstBounds.topLeft(); in convolve_gaussian()
183 auto dstRect = SkIRect::MakeSize(dstBounds.size()); in convolve_gaussian()
201 top = {dstBounds.left(), dstBounds.top() , dstBounds.right(), srcBounds.top() }; in convolve_gaussian()
202 bottom = {dstBounds.left(), srcBounds.bottom(), dstBounds.right(), dstBounds.bottom()}; in convolve_gaussian()
206 int midA = std::max(srcBounds.top() , dstBounds.top() ); in convolve_gaussian()
[all …]
DSkMatrixImageFilter.cpp88 SkIRect dstBounds; in onFilterImage() local
89 dstRect.roundOut(&dstBounds); in onFilterImage()
91 sk_sp<SkSpecialSurface> surf(ctx.makeSurface(dstBounds.size())); in onFilterImage()
101 canvas->translate(-SkIntToScalar(dstBounds.x()), -SkIntToScalar(dstBounds.y())); in onFilterImage()
110 offset->fX = dstBounds.fLeft; in onFilterImage()
111 offset->fY = dstBounds.fTop; in onFilterImage()
DSkGpuBlurUtils.h52 SkIRect dstBounds,
DSkImageFilter.cpp372 SkIRect* dstBounds) const { in applyCropRect()
374 fCropRect.applyTo(tmpDst, ctx.ctm(), this->affectsTransparentBlack(), dstBounds); in applyCropRect()
380 return dstBounds->intersect(ctx.clipBounds()); in applyCropRect()
DSkImageFilter_Base.h295 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;
DSkDraw.cpp1076 const SkRect* dstBounds, const SkSamplingOptions& sampling, in drawBitmap() argument
1135 if (dstBounds) { in drawBitmap()
1136 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap()
/external/skqp/src/core/
DSkMatrixImageFilter.cpp72 SkIRect dstBounds; in onFilterImage() local
73 dstRect.roundOut(&dstBounds); in onFilterImage()
75 sk_sp<SkSpecialSurface> surf(input->makeSurface(ctx.outputProperties(), dstBounds.size())); in onFilterImage()
85 canvas->translate(-SkIntToScalar(dstBounds.x()), -SkIntToScalar(dstBounds.y())); in onFilterImage()
95 offset->fX = dstBounds.fLeft; in onFilterImage()
96 offset->fY = dstBounds.fTop; in onFilterImage()
DSkGpuBlurUtils.h42 const SkIRect& dstBounds,
DSkGpuBlurUtils.cpp455 const SkIRect& dstBounds, in GaussianBlur() argument
470 const SkImageInfo finalDestII = SkImageInfo::Make(dstBounds.width(), dstBounds.height(), in GaussianBlur()
480 SkIPoint srcOffset = SkIPoint::Make(-dstBounds.x(), -dstBounds.y()); in GaussianBlur()
DSkImageFilter.cpp303 SkIRect* dstBounds) const { in applyCropRect()
305 fCropRect.applyTo(tmpDst, ctx.ctm(), this->affectsTransparentBlack(), dstBounds); in applyCropRect()
311 return dstBounds->intersect(ctx.clipBounds()); in applyCropRect()
DSkDraw.cpp1065 const SkRect* dstBounds, const SkPaint& origPaint) const { in drawBitmap() argument
1122 if (dstBounds) { in drawBitmap()
1123 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap()
/external/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp131 void adjust_bounds_to_granularity(SkIRect* dstBounds, in adjust_bounds_to_granularity() argument
143 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity()
144 if (dstBounds->fRight > maxWidth) { in adjust_bounds_to_granularity()
145 dstBounds->fRight = maxWidth; in adjust_bounds_to_granularity()
146 dstBounds->fLeft = 0; in adjust_bounds_to_granularity()
148 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity()
151 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity()
152 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity()
162 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
163 if (dstBounds->fBottom > maxHeight) { in adjust_bounds_to_granularity()
[all …]
/external/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,
/external/skqp/src/gpu/vk/
DGrVkGpu.cpp2210 void adjust_bounds_to_granularity(SkIRect* dstBounds, const SkIRect& srcBounds, in adjust_bounds_to_granularity() argument
2219 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity()
2220 if (dstBounds->fRight > maxWidth) { in adjust_bounds_to_granularity()
2221 dstBounds->fRight = maxWidth; in adjust_bounds_to_granularity()
2222 dstBounds->fLeft = 0; in adjust_bounds_to_granularity()
2224 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity()
2227 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity()
2228 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity()
2238 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
2239 if (dstBounds->fBottom > maxHeight) { in adjust_bounds_to_granularity()
[all …]
/external/skqp/include/core/
DSkImageFilter.h405 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;