/external/skqp/src/effects/imagefilters/ |
D | SkBlurImageFilter.cpp | 392 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 …]
|
D | SkMatrixConvolutionImageFilter.cpp | 254 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 …]
|
D | SkLightingImageFilter.cpp | 292 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 …]
|
D | SkXfermodeImageFilter.cpp | 126 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()
|
D | SkMorphologyImageFilter.cpp | 669 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()
|
D | SkPaintImageFilter.cpp | 43 const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); in onFilterImage() local 44 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
D | SkArithmeticImageFilter.cpp | 180 SkIRect srcBounds = SkIRect::EmptyIRect(); in onFilterImage() local 182 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage() 186 srcBounds.join(foregroundBounds); in onFilterImage() 187 if (srcBounds.isEmpty()) { in onFilterImage() 192 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
D | SkOffsetImageFilter.cpp | 52 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset.fX, srcOffset.fY, in onFilterImage() local 54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
/external/skia/src/effects/imagefilters/ |
D | SkBlurImageFilter.cpp | 392 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 …]
|
D | SkMatrixConvolutionImageFilter.cpp | 254 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 …]
|
D | SkLightingImageFilter.cpp | 294 SkIRect srcBounds = src.bounds(); in lightBitmap() local 299 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap() 300 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap() 301 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap() 302 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap() 309 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap() 310 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap() 324 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap() 325 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap() 326 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap() [all …]
|
D | SkXfermodeImageFilter.cpp | 128 SkIRect srcBounds = SkIRect::EmptyIRect(); in onFilterImage() local 130 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage() 134 srcBounds.join(foregroundBounds); in onFilterImage() 135 if (srcBounds.isEmpty()) { in onFilterImage() 140 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
D | SkMorphologyImageFilter.cpp | 672 SkIRect srcBounds = bounds; in onFilterImage() local 673 srcBounds.offset(-inputOffset); in onFilterImage() 678 return input->makeSubset(srcBounds); in onFilterImage() 693 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, type, in onFilterImage() 738 call_proc_X(procX, inputBM, &tmp, width, srcBounds); in onFilterImage() 739 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in onFilterImage() 744 call_proc_X(procX, inputBM, &dst, width, srcBounds); in onFilterImage() 747 inputBM.getAddr32(srcBounds.left(), srcBounds.top()), in onFilterImage() 749 &dst, height, srcBounds); in onFilterImage()
|
D | SkPaintImageFilter.cpp | 43 const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); in onFilterImage() local 44 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
D | SkArithmeticImageFilter.cpp | 181 SkIRect srcBounds = SkIRect::EmptyIRect(); in onFilterImage() local 183 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(), in onFilterImage() 187 srcBounds.join(foregroundBounds); in onFilterImage() 188 if (srcBounds.isEmpty()) { in onFilterImage() 193 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
D | SkOffsetImageFilter.cpp | 52 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset.fX, srcOffset.fY, in onFilterImage() local 54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImage()
|
/external/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 20 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/effects/ |
D | GrMatrixConvolutionEffect.h | 20 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/ |
D | SkGpuDevice_drawTexture.cpp | 189 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/dng_sdk/source/ |
D | dng_resample.cpp | 510 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()
|
D | dng_render.cpp | 1269 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/ |
D | SkImageFilter.cpp | 302 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()
|
D | SkMatrixImageFilter.cpp | 66 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local 68 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()
|
/external/skia/src/core/ |
D | SkImageFilter.cpp | 305 bool SkImageFilter::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument 307 SkIRect tmpDst = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection, nullptr); in applyCropRect() 388 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), in applyCropRectAndPad() local 391 if (!this->applyCropRect(ctx, srcBounds, bounds)) { in applyCropRectAndPad() 395 if (srcBounds.contains(*bounds)) { in applyCropRectAndPad() 476 SkIRect SkImageFilter::DetermineRepeatedSrcBound(const SkIRect& srcBounds, in DetermineRepeatedSrcBound() argument 480 SkIRect tmp = srcBounds; in DetermineRepeatedSrcBound()
|
D | SkMatrixImageFilter.cpp | 66 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage() local 68 const SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage()
|