Home
last modified time | relevance | path

Searched refs:srcBounds (Results 1 – 25 of 28) sorted by relevance

12

/third_party/skia/src/core/
DSkGpuBlurUtils.cpp102 const SkIRect& srcBounds, in convolve_gaussian_2d() argument
134 auto conv = GrMatrixConvolutionEffect::Make(rContext, std::move(srcView), srcBounds, in convolve_gaussian_2d()
155 SkIRect srcBounds, in convolve_gaussian() argument
186 srcBounds.contains(srcBackingBounds) && in convolve_gaussian()
191 convolve_gaussian_1d(dstSDC.get(), std::move(srcView), srcBounds, 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()
214 int midB = std::min(srcBounds.bottom(), dstBounds.bottom()); in convolve_gaussian()
215 mid = {srcBounds.left() + radius, midA, srcBounds.right() - radius, midB}; in convolve_gaussian()
[all …]
DSkImageFilter.cpp378 bool SkImageFilter_Base::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument
380 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect()
428 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), in applyCropRectAndPad() local
431 if (!this->applyCropRect(ctx, srcBounds, bounds)) { in applyCropRectAndPad()
435 if (srcBounds.contains(*bounds)) { in applyCropRectAndPad()
656 SkIRect SkImageFilter_Base::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument
660 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
DSkMatrixImageFilter.cpp81 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local
83 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()
DSkImageFilter_Base.h279 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;
332 static SkIRect DetermineRepeatedSrcBound(const SkIRect& srcBounds,
DSkGpuBlurUtils.h58 SkIRect srcBounds,
DSkDraw.cpp1123 const SkRect srcBounds = SkRect::MakeIWH(bitmap.width(), bitmap.height()); in drawBitmap() local
1125 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap()
1127 draw.drawRect(srcBounds, paintWithShader); in drawBitmap()
/third_party/skia/src/effects/imagefilters/
DSkMatrixConvolutionImageFilter.cpp315 const SkIRect& srcBounds) const { in filterBorderPixels()
318 filterPixels<ClampPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
323 filterPixels<RepeatPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
326 filterPixels<ClampToBlackPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
348 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage() local
352 srcBounds = DetermineRepeatedSrcBound(srcBounds, fKernelOffset, in onFilterImage()
355 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
379 srcBounds.offset(-inputOffset); in onFilterImage()
381 srcBounds.offset(input->subset().x(), input->subset().y()); in onFilterImage()
385 srcBounds, in onFilterImage()
[all …]
DSkBlurImageFilter.cpp692 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
703 inputBM.extractSubset(&src, srcBounds); in copy_image_with_bounds()
706 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
709 auto srcW = srcBounds.width(), in copy_image_with_bounds()
724 for (;y < srcBounds.top(); y++) { in copy_image_with_bounds()
728 for (;y < srcBounds.bottom(); y++) { in copy_image_with_bounds()
731 for (;x < srcBounds.left(); x++) { in copy_image_with_bounds()
735 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()), in copy_image_with_bounds()
759 SkIRect srcBounds, SkIRect dstBounds) { in cpu_blur() argument
778 return copy_image_with_bounds(ctx, input, srcBounds, dstBounds); in cpu_blur()
[all …]
DSkLightingImageFilter.cpp295 SkIRect srcBounds = src.bounds(); in lightBitmap() local
300 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
301 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
302 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap()
303 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
310 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
311 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
325 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap()
326 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap()
327 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
[all …]
DSkMorphologyImageFilter.cpp644 SkIRect srcBounds = bounds; in onFilterImage() local
645 srcBounds.offset(-inputOffset); in onFilterImage()
650 return input->makeSubset(srcBounds); in onFilterImage()
664 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, fType, in onFilterImage()
707 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage()
708 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage()
713 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage()
716 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), in onFilterImage()
718 &dst, height, srcBounds); in onFilterImage()
DSkBlendImageFilter.cpp143 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local
145 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
149 srcBounds.join(foregroundBounds); in onFilterImage()
150 if (srcBounds.isEmpty()) { in onFilterImage()
155 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkShaderImageFilter.cpp82 const SkIRect srcBounds = SkIRect::MakeWH(ctx.sourceImage()->width(), in onFilterImage() local
84 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkArithmeticImageFilter.cpp202 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local
204 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
208 srcBounds.join(foregroundBounds); in onFilterImage()
209 if (srcBounds.isEmpty()) { in onFilterImage()
214 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkOffsetImageFilter.cpp99 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset.fX, srcOffset.fY, in onFilterImage() local
101 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkDisplacementMapImageFilter.cpp253 const SkIRect srcBounds = SkIRect::MakeXYWH(colorOffset.x(), colorOffset.y(), in onFilterImage() local
259 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
/third_party/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp133 const SkIRect& srcBounds, in adjust_bounds_to_granularity() argument
140 int rightAdj = srcBounds.fRight % granularity.width; in adjust_bounds_to_granularity()
144 dstBounds->fRight = srcBounds.fRight + rightAdj; 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()
159 int bottomAdj = srcBounds.fBottom % granularity.height; in adjust_bounds_to_granularity()
163 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
168 dstBounds->fTop = srcBounds.fTop - srcBounds.fTop % granularity.height; in adjust_bounds_to_granularity()
171 dstBounds->fTop = srcBounds.fTop; in adjust_bounds_to_granularity()
[all …]
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_resample.cpp510 const dng_rect &srcBounds,
533 const dng_rect &srcBounds, in dng_resample_task() argument
540 , fSrcBounds (srcBounds) 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()
832 const dng_rect &srcBounds, in ResampleImage() argument
839 srcBounds, in ResampleImage()
Ddng_render.cpp1269 dng_rect srcBounds = fNegative.DefaultCropArea (); in Render() local
1302 if (srcBounds.Size () != dstSize) in Render()
1312 srcBounds, in Render()
1318 srcBounds = tempImage->Bounds (); in Render()
1324 AutoPtr<dng_image> dstImage (fHost.Make_dng_image (srcBounds.Size (), in Render()
1332 srcBounds.TL ()); in Render()
Ddng_resample.h285 const dng_rect &srcBounds,
/third_party/skia/src/gpu/ops/
DGrOp.h287 void setTransformedBounds(const SkRect& srcBounds, const SkMatrix& m, in setTransformedBounds() argument
289 m.mapRect(&fBounds, srcBounds); in setTransformedBounds()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp274 SkRect srcBounds = SkRect::MakeIWH(image.fWidth, image.fHeight); in optimize_sample_area() local
276 SkRect src = origSrcRect ? *origSrcRect : srcBounds; in optimize_sample_area()
289 if (origSrcRect && !srcBounds.contains(src)) { in optimize_sample_area()
290 if (!src.intersect(srcBounds)) { in optimize_sample_area()
304 : (origSrcRect ? *origSrcRect : srcBounds)); in optimize_sample_area()
/third_party/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.h24 const SkIRect& srcBounds,
DGrMatrixConvolutionEffect.cpp327 const SkIRect& srcBounds, in Make() argument
342 sampler, SkRect::Make(srcBounds), caps); in Make()
/third_party/skia/src/image/
DSkSurface.cpp212 sk_sp<SkImage> SkSurface::makeImageSnapshot(const SkIRect& srcBounds) { in makeImageSnapshot() argument
214 SkIRect bounds = srcBounds; in makeImageSnapshot()
/third_party/skia/src/xps/
DSkXPSDevice.cpp2024 SkRect srcBounds = src ? *src : bitmapBounds; in drawImageRect() local
2025 SkMatrix matrix = SkMatrix::RectToRect(srcBounds, dst); in drawImageRect()
2030 if (!srcBounds.intersect(bitmapBounds)) { in drawImageRect()
2033 matrix.mapRect(&actualDst, srcBounds); in drawImageRect()

12