Home
last modified time | relevance | path

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

/external/skia/src/effects/
DSkBlurImageFilter.cpp85 SkIRect srcBounds = src.bounds(); in onFilterImageDeprecated() local
86 srcBounds.offset(srcOffset); in onFilterImageDeprecated()
88 if (!this->applyCropRect(this->mapContext(ctx), srcBounds, &dstBounds)) { in onFilterImageDeprecated()
91 if (!srcBounds.intersect(dstBounds)) { in onFilterImageDeprecated()
107 src.extractSubset(dst, srcBounds); in onFilterImageDeprecated()
108 offset->fX = srcBounds.x(); in onFilterImageDeprecated()
109 offset->fY = srcBounds.y(); in onFilterImageDeprecated()
137 … const SkPMColor* s = src.getAddr32(srcBounds.x() - srcOffset.x(), srcBounds.y() - srcOffset.y()); in onFilterImageDeprecated()
138 srcBounds.offset(-dstBounds.x(), -dstBounds.y()); in onFilterImageDeprecated()
140 …SkIRect srcBoundsT = SkIRect::MakeLTRB(srcBounds.top(), srcBounds.left(), srcBounds.bottom(), srcB… in onFilterImageDeprecated()
[all …]
DSkGpuBlurUtils.cpp76 const SkRect* srcBounds) { in convolve_gaussian_2d() argument
82 if (srcBounds) { in convolve_gaussian_2d()
83 srcBounds->roundOut(&bounds); in convolve_gaussian_2d()
90 srcBounds ? GrTextureDomain::kDecal_Mode : GrTextureDomain::kIgnore_Mode, in convolve_gaussian_2d()
104 const SkRect* srcBounds, in convolve_gaussian() argument
108 if (!srcBounds) { in convolve_gaussian()
113 SkRect midRect = *srcBounds, leftRect, rightRect; in convolve_gaussian()
118 bounds[0] = SkScalarToFloat(srcBounds->left()) / texture->width(); in convolve_gaussian()
119 bounds[1] = SkScalarToFloat(srcBounds->right()) / texture->width(); in convolve_gaussian()
130 bounds[0] = SkScalarToFloat(srcBounds->top()) / texture->height(); in convolve_gaussian()
[all …]
DSkLightingImageFilter.cpp221 SkIRect srcBounds = src.bounds(); in lightBitmap() local
226 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
227 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
228 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds); in lightBitmap()
229 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
236 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds); in lightBitmap()
237 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds); in lightBitmap()
251 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds); in lightBitmap()
252 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds); in lightBitmap()
253 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds); in lightBitmap()
[all …]
DSkMergeImageFilter.cpp80 SkIRect srcBounds; in onFilterImageDeprecated() local
81 inputs[i].getBounds(&srcBounds); in onFilterImageDeprecated()
82 srcBounds.offset(offsets[i]); in onFilterImageDeprecated()
84 bounds = srcBounds; in onFilterImageDeprecated()
87 bounds.join(srcBounds); in onFilterImageDeprecated()
DSkMorphologyImageFilter.cpp94 SkIRect srcBounds = bounds; in filterImageGeneric() local
95 srcBounds.offset(-srcOffset); in filterImageGeneric()
98 src.extractSubset(dst, srcBounds); in filterImageGeneric()
118 callProcX(procX, src, &temp, width, srcBounds); in filterImageGeneric()
119 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height()); in filterImageGeneric()
122 callProcX(procX, src, dst, width, srcBounds); in filterImageGeneric()
124 callProcY(procY, src, dst, height, srcBounds); in filterImageGeneric()
629 SkIRect srcBounds = bounds; in filterImageGPUGeneric() local
630 srcBounds.offset(-srcOffset); in filterImageGPUGeneric()
632 input.extractSubset(result, srcBounds); in filterImageGPUGeneric()
[all …]
DSkTileImageFilter.cpp66 SkIRect srcBounds; in onFilterImageDeprecated() local
67 source.getBounds(&srcBounds); in onFilterImageDeprecated()
69 if (!SkIRect::Intersects(srcIRect, srcBounds)) { in onFilterImageDeprecated()
73 if (srcBounds.contains(srcIRect)) { in onFilterImageDeprecated()
DSkColorFilterImageFilter.cpp69 SkIRect srcBounds = src.bounds(); in onFilterImageDeprecated() local
70 srcBounds.offset(srcOffset); in onFilterImageDeprecated()
71 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImageDeprecated()
DSkOffsetImageFilter.cpp40 SkIRect srcBounds = src.bounds(); in onFilterImageDeprecated() local
41 srcBounds.offset(srcOffset); in onFilterImageDeprecated()
42 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImageDeprecated()
DSkDropShadowImageFilter.cpp64 SkIRect srcBounds = src.bounds(); in onFilterImageDeprecated() local
65 srcBounds.offset(srcOffset); in onFilterImageDeprecated()
67 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImageDeprecated()
DSkDisplacementMapEffect.cpp231 SkIRect srcBounds = color.bounds(); in onFilterImageDeprecated() local
232 srcBounds.offset(colorOffset); in onFilterImageDeprecated()
233 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in onFilterImageDeprecated()
402 SkIRect srcBounds = colorBM.bounds(); in filterImageGPUDeprecated() local
403 srcBounds.offset(colorOffset); in filterImageGPUDeprecated()
407 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { in filterImageGPUDeprecated()
DSkGpuBlurUtils.h41 const SkRect* srcBounds,
/external/skia/src/opts/
DSkBlurImageFilter_opts.h87 int box_blur_double(const SkPMColor** src, int srcStride, const SkIRect& srcBounds, SkPMColor** dst… in box_blur_double() argument
102 int left = srcBounds.left(); in box_blur_double()
103 int right = srcBounds.right(); in box_blur_double()
104 int top = srcBounds.top(); in box_blur_double()
105 int bottom = srcBounds.bottom(); in box_blur_double()
187 top = box_blur_double<srcDirection, dstDirection>(&src, srcStride, srcBounds, &dst, \
222 static void box_blur(const SkPMColor* src, int srcStride, const SkIRect& srcBounds, SkPMColor* dst, in box_blur() argument
224 int left = srcBounds.left(); in box_blur()
225 int right = srcBounds.right(); in box_blur()
226 int top = srcBounds.top(); in box_blur()
[all …]
/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp105 const SkRect srcBounds = SkRect::MakeIWH(producer->width(), producer->height()); in drawTextureProducer() local
109 dstRect = &srcBounds; in drawTextureProducer()
111 if (!srcBounds.contains(*srcRect)) { in drawTextureProducer()
113 if (!clippedSrcRect.intersect(srcBounds)) { in drawTextureProducer()
128 clippedSrcRect = srcBounds; in drawTextureProducer()
131 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) { in drawTextureProducer()
135 clippedDstRect = srcBounds; in drawTextureProducer()
/external/skia/src/core/
DSkMatrixImageFilter.cpp61 SkIRect srcBounds, dstBounds; in onFilterImageDeprecated() local
62 src.getBounds(&srcBounds); in onFilterImageDeprecated()
63 srcBounds.offset(srcOffset); in onFilterImageDeprecated()
64 SkRect srcRect = SkRect::Make(srcBounds); in onFilterImageDeprecated()
DSkImageFilter.cpp380 bool SkImageFilter::applyCropRect(const Context& ctx, const SkIRect& srcBounds, in applyCropRect() argument
382 this->onFilterNodeBounds(srcBounds, ctx.ctm(), dstBounds, kForward_MapDirection); in applyCropRect()
395 SkIRect srcBounds; in applyCropRectDeprecated() local
396 src.getBounds(&srcBounds); in applyCropRectDeprecated()
397 srcBounds.offset(*srcOffset); in applyCropRectDeprecated()
399 this->onFilterNodeBounds(srcBounds, ctx.ctm(), &dstBounds, kForward_MapDirection); in applyCropRectDeprecated()
405 if (srcBounds.contains(*bounds)) { in applyCropRectDeprecated()
DSkOpts.h29 …typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkPMColor*, int, int, int…
DSkDraw.cpp1324 const SkRect srcBounds = SkRect::MakeIWH(bitmap.width(), bitmap.height()); in drawBitmap() local
1326 this->drawRect(srcBounds, paintWithShader, &prematrix, dstBounds); in drawBitmap()
1328 draw.drawRect(srcBounds, paintWithShader); in drawBitmap()
/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()
Ddng_resample.h285 const dng_rect &srcBounds,
/external/skia/include/core/
DSkImageFilter.h406 bool applyCropRect(const Context&, const SkIRect& srcBounds, SkIRect* dstBounds) const;