Home
last modified time | relevance | path

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

123

/external/skia/src/core/
DSkGpuBlurUtils.cpp96 const SkIRect& srcBounds, in convolve_gaussian_2d() argument
128 auto conv = GrMatrixConvolutionEffect::Make(context, std::move(srcView), srcBounds, in convolve_gaussian_2d()
148 SkIRect srcBounds, in convolve_gaussian() argument
179 srcBounds.contains(srcBackingBounds) && in convolve_gaussian()
184 convolve_gaussian_1d(dstRenderTargetContext.get(), std::move(srcView), srcBounds, 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()
207 int midB = std::min(srcBounds.bottom(), dstBounds.bottom()); in convolve_gaussian()
208 mid = {srcBounds.left() + radius, midA, srcBounds.right() - radius, midB}; in convolve_gaussian()
[all …]
DSkImageFilter.cpp371 bool SkImageFilter_Base::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument
373 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect()
421 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), in applyCropRectAndPad() local
424 if (!this->applyCropRect(ctx, srcBounds, bounds)) { in applyCropRectAndPad()
428 if (srcBounds.contains(*bounds)) { in applyCropRectAndPad()
655 SkIRect SkImageFilter_Base::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument
659 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
DSkMatrixImageFilter.cpp82 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local
84 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()
/external/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp345 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
356 inputBM.extractSubset(&src, srcBounds); in copy_image_with_bounds()
359 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
362 auto srcW = srcBounds.width(), in copy_image_with_bounds()
377 for (;y < srcBounds.top(); y++) { in copy_image_with_bounds()
381 for (;y < srcBounds.bottom(); y++) { in copy_image_with_bounds()
384 for (;x < srcBounds.left(); x++) { in copy_image_with_bounds()
388 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()), in copy_image_with_bounds()
412 SkIRect srcBounds, SkIRect dstBounds) { in cpu_blur() argument
417 return copy_image_with_bounds(ctx, input, srcBounds, dstBounds); in cpu_blur()
[all …]
DSkMatrixConvolutionImageFilter.cpp316 const SkIRect& srcBounds) const { in filterBorderPixels()
319 filterPixels<ClampPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
324 filterPixels<RepeatPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
327 filterPixels<ClampToBlackPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
349 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage() local
353 srcBounds = DetermineRepeatedSrcBound(srcBounds, fKernelOffset, in onFilterImage()
356 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
380 srcBounds.offset(-inputOffset); in onFilterImage()
382 srcBounds.offset(input->subset().x(), input->subset().y()); in onFilterImage()
386 srcBounds, in onFilterImage()
[all …]
DSkLightingImageFilter.cpp296 SkIRect srcBounds = src.bounds(); in lightBitmap() local
301 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
302 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
303 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap()
304 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
311 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
312 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
326 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap()
327 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap()
328 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
[all …]
DSkBlendImageFilter.cpp120 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local
122 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
126 srcBounds.join(foregroundBounds); in onFilterImage()
127 if (srcBounds.isEmpty()) { in onFilterImage()
132 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkMorphologyImageFilter.cpp654 SkIRect srcBounds = bounds; in onFilterImage() local
655 srcBounds.offset(-inputOffset); in onFilterImage()
660 return input->makeSubset(srcBounds); in onFilterImage()
674 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, fType, in onFilterImage()
717 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage()
718 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage()
723 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage()
726 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), in onFilterImage()
728 &dst, height, srcBounds); in onFilterImage()
DSkShaderImageFilter.cpp84 const SkIRect srcBounds = SkIRect::MakeWH(ctx.sourceImage()->width(), in onFilterImage() local
86 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkArithmeticImageFilter.cpp205 SkIRect srcBounds = SkIRect::MakeEmpty(); in onFilterImage() local
207 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
211 srcBounds.join(foregroundBounds); in onFilterImage()
212 if (srcBounds.isEmpty()) { in onFilterImage()
217 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()
/external/skqp/src/effects/imagefilters/
DSkBlurImageFilter.cpp392 SkIRect srcBounds, SkIRect dstBounds) { in copy_image_with_bounds() argument
403 inputBM.extractSubset(&src, srcBounds); in copy_image_with_bounds()
406 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in copy_image_with_bounds()
409 auto srcW = srcBounds.width(), in copy_image_with_bounds()
424 for (;y < srcBounds.top(); y++) { in copy_image_with_bounds()
428 for (;y < srcBounds.bottom(); y++) { in copy_image_with_bounds()
431 for (;x < srcBounds.left(); x++) { in copy_image_with_bounds()
435 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()), in copy_image_with_bounds()
459 SkIRect srcBounds, SkIRect dstBounds) { in cpu_blur() argument
464 return copy_image_with_bounds(source, input, srcBounds, dstBounds); in cpu_blur()
[all …]
DSkMatrixConvolutionImageFilter.cpp254 const SkIRect& srcBounds) const { in filterBorderPixels()
257 filterPixels<ClampPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
260 filterPixels<RepeatPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
263 filterPixels<ClampToBlackPixelFetcher>(src, result, offset, rect, srcBounds); in filterBorderPixels()
326 SkIRect srcBounds = this->onFilterNodeBounds(dstBounds, ctx.ctm(), kReverse_MapDirection, in onFilterImage() local
330 srcBounds = DetermineRepeatedSrcBound(srcBounds, fKernelOffset, in onFilterImage()
333 if (!srcBounds.intersect(dstBounds)) { in onFilterImage()
356 srcBounds.offset(-inputOffset); in onFilterImage()
359 srcBounds, in onFilterImage()
404 srcBounds.offset(-inputOffset); in onFilterImage()
[all …]
DSkLightingImageFilter.cpp292 SkIRect srcBounds = src.bounds(); in lightBitmap() local
297 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
298 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
299 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap()
300 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
307 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
308 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
322 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap()
323 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap()
324 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
[all …]
DSkXfermodeImageFilter.cpp126 SkIRect srcBounds = SkIRect::EmptyIRect(); in onFilterImage() local
128 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage()
132 srcBounds.join(foregroundBounds); in onFilterImage()
133 if (srcBounds.isEmpty()) { in onFilterImage()
138 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkMorphologyImageFilter.cpp669 SkIRect srcBounds = bounds; in onFilterImage() local
670 srcBounds.offset(-inputOffset); in onFilterImage()
675 return input->makeSubset(srcBounds); in onFilterImage()
690 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, type, in onFilterImage()
735 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage()
736 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage()
741 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage()
744 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), in onFilterImage()
746 &dst, height, srcBounds); in onFilterImage()
DSkPaintImageFilter.cpp43 const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); in onFilterImage() local
44 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
DSkOffsetImageFilter.cpp52 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset.fX, srcOffset.fY, in onFilterImage() local
54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
/external/skqp/src/gpu/effects/
DGrMatrixConvolutionEffect.h20 const SkIRect& srcBounds, in Make() argument
29 new GrMatrixConvolutionEffect(std::move(srcProxy), srcBounds, kernelSize, kernel, in Make()
34 const SkIRect& srcBounds,
61 const SkIRect& srcBounds,
/external/skqp/src/gpu/
DSkGpuDevice_drawTexture.cpp189 const SkRect srcBounds = SkRect::MakeIWH(producer->width(), producer->height()); in drawTextureProducer() local
193 dstRect = &srcBounds; in drawTextureProducer()
195 if (!srcBounds.contains(*srcRect)) { in drawTextureProducer()
197 if (!clippedSrcRect.intersect(srcBounds)) { in drawTextureProducer()
212 clippedSrcRect = srcBounds; in drawTextureProducer()
215 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
219 clippedDstRect = srcBounds; in drawTextureProducer()
/external/skia/src/gpu/vk/
DGrVkOpsRenderPass.cpp132 const SkIRect& srcBounds, in adjust_bounds_to_granularity() argument
139 int rightAdj = srcBounds.fRight % granularity.width; in adjust_bounds_to_granularity()
143 dstBounds->fRight = srcBounds.fRight + rightAdj; 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()
158 int bottomAdj = srcBounds.fBottom % granularity.height; in adjust_bounds_to_granularity()
162 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
167 dstBounds->fTop = srcBounds.fTop - srcBounds.fTop % granularity.height; in adjust_bounds_to_granularity()
170 dstBounds->fTop = srcBounds.fTop; in adjust_bounds_to_granularity()
[all …]
/external/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()
/external/skqp/src/core/
DSkImageFilter.cpp302 bool SkImageFilter::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument
304 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect()
385 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), in applyCropRectAndPad() local
388 if (!this->applyCropRect(ctx, srcBounds, bounds)) { in applyCropRectAndPad()
392 if (srcBounds.contains(*bounds)) { in applyCropRectAndPad()
473 SkIRect SkImageFilter::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument
477 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
DSkMatrixImageFilter.cpp66 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local
68 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()

123