Searched refs:srcBounds (Results 1 - 25 of 41) sorted by relevance

12

/external/skia/src/core/
H A DSkGpuBlurUtils.h30 * @param srcBounds The source bounds, relative to the source texture. If non-null,
43 const SkIRect& srcBounds,
H A DSkBlurImageFilter.cpp394 SkIRect srcBounds, SkIRect dstBounds) {
405 inputBM.extractSubset(&src, srcBounds);
408 srcBounds.offset(-dstBounds.x(), -dstBounds.y());
411 auto srcW = srcBounds.width(),
426 for (;y < srcBounds.top(); y++) {
430 for (;y < srcBounds.bottom(); y++) {
433 for (;x < srcBounds.left(); x++) {
437 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()),
461 SkIRect srcBounds, SkIRec
[all...]
H A DSkGpuBlurUtils.cpp103 const SkIRect& srcBounds,
112 auto conv = GrMatrixConvolutionEffect::MakeGaussian(std::move(proxy), srcBounds, size, 1.0, 0.0,
127 const SkIRect& srcBounds,
138 SkIRect midRect = srcBounds, leftRect, rightRect;
142 bounds[0] = srcBounds.left();
143 bounds[1] = srcBounds.right();
153 bounds[0] = srcBounds.top();
154 bounds[1] = srcBounds.bottom();
173 // Blur radius covers srcBounds; use bounds over entire draw
194 const SkIRect& srcBounds,
94 convolve_gaussian_2d(GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkIRect& dstRect, const SkIPoint& srcOffset, sk_sp<GrTextureProxy> proxy, int radiusX, int radiusY, SkScalar sigmaX, SkScalar sigmaY, const SkIRect& srcBounds, GrTextureDomain::Mode mode) argument
120 convolve_gaussian(GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkIRect& srcRect, sk_sp<GrTextureProxy> proxy, Direction direction, int radius, float sigma, const SkIRect& srcBounds, const SkIPoint& srcOffset, GrTextureDomain::Mode mode) argument
190 GaussianBlur(GrContext* context, sk_sp<GrTextureProxy> srcProxy, sk_sp<SkColorSpace> colorSpace, const SkIRect& dstBounds, const SkIRect& srcBounds, float sigmaX, float sigmaY, GrTextureDomain::Mode mode, SkBackingFit fit) argument
[all...]
H A DSkMatrixImageFilter.cpp66 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), local
68 const SkRect srcRect = SkRect::Make(srcBounds);
H A DSkImageFilter.cpp352 bool SkImageFilter::applyCropRect(const Context& ctx, const SkIRect& srcBounds, argument
354 SkIRect temp = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection);
438 const SkIRect srcBounds = SkIRect::MakeXYWH(srcOffset->x(), srcOffset->y(), local
441 SkIRect dstBounds = this->onFilterNodeBounds(srcBounds, ctx.ctm(), kForward_MapDirection);
447 if (srcBounds.contains(*bounds)) {
/external/skqp/src/core/
H A DSkGpuBlurUtils.h30 * @param srcBounds The source bounds, relative to the source texture. If non-null,
43 const SkIRect& srcBounds,
H A DSkBlurImageFilter.cpp394 SkIRect srcBounds, SkIRect dstBounds) {
405 inputBM.extractSubset(&src, srcBounds);
408 srcBounds.offset(-dstBounds.x(), -dstBounds.y());
411 auto srcW = srcBounds.width(),
426 for (;y < srcBounds.top(); y++) {
430 for (;y < srcBounds.bottom(); y++) {
433 for (;x < srcBounds.left(); x++) {
437 memcpy(dstPtr, src.getAddr32(x - srcBounds.left(), y - srcBounds.top()),
461 SkIRect srcBounds, SkIRec
[all...]
H A DSkGpuBlurUtils.cpp103 const SkIRect& srcBounds,
112 auto conv = GrMatrixConvolutionEffect::MakeGaussian(std::move(proxy), srcBounds, size, 1.0, 0.0,
127 const SkIRect& srcBounds,
138 SkIRect midRect = srcBounds, leftRect, rightRect;
142 bounds[0] = srcBounds.left();
143 bounds[1] = srcBounds.right();
153 bounds[0] = srcBounds.top();
154 bounds[1] = srcBounds.bottom();
173 // Blur radius covers srcBounds; use bounds over entire draw
194 const SkIRect& srcBounds,
94 convolve_gaussian_2d(GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkIRect& dstRect, const SkIPoint& srcOffset, sk_sp<GrTextureProxy> proxy, int radiusX, int radiusY, SkScalar sigmaX, SkScalar sigmaY, const SkIRect& srcBounds, GrTextureDomain::Mode mode) argument
120 convolve_gaussian(GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkIRect& srcRect, sk_sp<GrTextureProxy> proxy, Direction direction, int radius, float sigma, const SkIRect& srcBounds, const SkIPoint& srcOffset, GrTextureDomain::Mode mode) argument
190 GaussianBlur(GrContext* context, sk_sp<GrTextureProxy> srcProxy, sk_sp<SkColorSpace> colorSpace, const SkIRect& dstBounds, const SkIRect& srcBounds, float sigmaX, float sigmaY, GrTextureDomain::Mode mode, SkBackingFit fit) argument
[all...]
H A DSkMatrixImageFilter.cpp66 const SkIRect srcBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), local
68 const SkRect srcRect = SkRect::Make(srcBounds);
/external/skia/src/effects/
H A DSkLightingImageFilter.cpp293 SkIRect srcBounds = src.bounds(); local
298 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds);
299 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds);
300 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds);
301 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds);
308 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds);
309 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds);
323 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds);
324 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds);
325 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds);
438 drawRect(GrRenderTargetContext* renderTargetContext, sk_sp<GrTextureProxy> srcProxy, const SkMatrix& matrix, const GrClip& clip, const SkRect& dstRect, BoundaryMode boundaryMode, const SkIRect* srcBounds, const SkIRect& bounds) const argument
630 Make(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
675 Make(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1382 makeFragmentProcessor( sk_sp<GrTextureProxy> proxy, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode) const argument
1539 makeFragmentProcessor( sk_sp<GrTextureProxy> proxy, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode) const argument
1690 create_domain(GrTextureProxy* proxy, const SkIRect* srcBounds, GrTextureDomain::Mode mode) argument
1700 GrLightingEffect(ClassID classID, sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1742 GrDiffuseLightingEffect(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight>light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1810 SkIRect srcBounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), local
1982 GrSpecularLightingEffect(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
2030 SkIRect srcBounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), local
[all...]
H A DSkOffsetImageFilter.cpp52 SkIRect srcBounds = SkIRect::MakeWH(input->width(), input->height()); local
53 srcBounds.offset(srcOffset);
54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkPaintImageFilter.cpp43 const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); local
44 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkXfermodeImageFilter.cpp128 SkIRect srcBounds = SkIRect::EmptyIRect(); local
130 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(),
134 srcBounds.join(foregroundBounds);
135 if (srcBounds.isEmpty()) {
140 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkMorphologyImageFilter.cpp563 SkIRect srcBounds = bounds; local
564 srcBounds.offset(-inputOffset);
569 return input->makeSubset(srcBounds);
584 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, type,
629 call_proc_X(procX, inputBM, &tmp, width, srcBounds);
630 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height());
635 call_proc_X(procX, inputBM, &dst, width, srcBounds);
638 inputBM.getAddr32(srcBounds.left(), srcBounds
[all...]
H A DSkArithmeticImageFilter.cpp163 SkIRect srcBounds = SkIRect::EmptyIRect(); local
165 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(),
169 srcBounds.join(foregroundBounds);
170 if (srcBounds.isEmpty()) {
175 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
/external/skqp/src/effects/
H A DSkLightingImageFilter.cpp293 SkIRect srcBounds = src.bounds(); local
298 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds);
299 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds);
300 m[7] = PixelFetcher::Fetch(src, x, y + 1, srcBounds);
301 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds);
308 m[5] = PixelFetcher::Fetch(src, x + 1, y, srcBounds);
309 m[8] = PixelFetcher::Fetch(src, x + 1, y + 1, srcBounds);
323 m[1] = PixelFetcher::Fetch(src, x, y - 1, srcBounds);
324 m[2] = PixelFetcher::Fetch(src, x + 1, y - 1, srcBounds);
325 m[4] = PixelFetcher::Fetch(src, x, y, srcBounds);
438 drawRect(GrRenderTargetContext* renderTargetContext, sk_sp<GrTextureProxy> srcProxy, const SkMatrix& matrix, const GrClip& clip, const SkRect& dstRect, BoundaryMode boundaryMode, const SkIRect* srcBounds, const SkIRect& bounds) const argument
630 Make(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
675 Make(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1382 makeFragmentProcessor( sk_sp<GrTextureProxy> proxy, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode) const argument
1539 makeFragmentProcessor( sk_sp<GrTextureProxy> proxy, const SkMatrix& matrix, const SkIRect* srcBounds, BoundaryMode boundaryMode) const argument
1690 create_domain(GrTextureProxy* proxy, const SkIRect* srcBounds, GrTextureDomain::Mode mode) argument
1700 GrLightingEffect(ClassID classID, sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1742 GrDiffuseLightingEffect(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight>light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar kd, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
1810 SkIRect srcBounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), local
1982 GrSpecularLightingEffect(sk_sp<GrTextureProxy> proxy, sk_sp<const SkImageFilterLight> light, SkScalar surfaceScale, const SkMatrix& matrix, SkScalar ks, SkScalar shininess, BoundaryMode boundaryMode, const SkIRect* srcBounds) argument
2030 SkIRect srcBounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), local
[all...]
H A DSkOffsetImageFilter.cpp52 SkIRect srcBounds = SkIRect::MakeWH(input->width(), input->height()); local
53 srcBounds.offset(srcOffset);
54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkPaintImageFilter.cpp43 const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); local
44 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkXfermodeImageFilter.cpp128 SkIRect srcBounds = SkIRect::EmptyIRect(); local
130 srcBounds = SkIRect::MakeXYWH(backgroundOffset.x(), backgroundOffset.y(),
134 srcBounds.join(foregroundBounds);
135 if (srcBounds.isEmpty()) {
140 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
H A DSkMorphologyImageFilter.cpp563 SkIRect srcBounds = bounds; local
564 srcBounds.offset(-inputOffset);
569 return input->makeSubset(srcBounds);
584 sk_sp<SkSpecialImage> result(apply_morphology(context, input.get(), srcBounds, type,
629 call_proc_X(procX, inputBM, &tmp, width, srcBounds);
630 SkIRect tmpBounds = SkIRect::MakeWH(srcBounds.width(), srcBounds.height());
635 call_proc_X(procX, inputBM, &dst, width, srcBounds);
638 inputBM.getAddr32(srcBounds.left(), srcBounds
[all...]
/external/skia/src/gpu/
H A DSkGpuDevice_drawTexture.cpp197 const SkRect srcBounds = SkRect::MakeIWH(producer->width(), producer->height()); local
201 dstRect = &srcBounds;
203 if (!srcBounds.contains(*srcRect)) {
205 if (!clippedSrcRect.intersect(srcBounds)) {
220 clippedSrcRect = srcBounds;
223 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) {
227 clippedDstRect = srcBounds;
/external/skqp/src/gpu/
H A DSkGpuDevice_drawTexture.cpp197 const SkRect srcBounds = SkRect::MakeIWH(producer->width(), producer->height()); local
201 dstRect = &srcBounds;
203 if (!srcBounds.contains(*srcRect)) {
205 if (!clippedSrcRect.intersect(srcBounds)) {
220 clippedSrcRect = srcBounds;
223 if (!srcToDstMatrix.setRectToRect(srcBounds, *dstRect, SkMatrix::kFill_ScaleToFit)) {
227 clippedDstRect = srcBounds;
/external/dng_sdk/source/
H A Ddng_resample.cpp510 const dng_rect &srcBounds,
533 const dng_rect &srcBounds,
540 , fSrcBounds (srcBounds)
545 , fRowScale ((srcBounds.H () != 0) ? dstBounds.H () / (real64) srcBounds.H () : 0)
546 , fColScale ((srcBounds.W () != 0) ? dstBounds.W () / (real64) srcBounds.W () : 0)
832 const dng_rect &srcBounds,
839 srcBounds,
531 dng_resample_task(const dng_image &srcImage, dng_image &dstImage, const dng_rect &srcBounds, const dng_rect &dstBounds, const dng_resample_function &kernel) argument
829 ResampleImage(dng_host &host, const dng_image &srcImage, dng_image &dstImage, const dng_rect &srcBounds, const dng_rect &dstBounds, const dng_resample_function &kernel) argument
/external/skia/src/gpu/ops/
H A DGrOp.h184 void setTransformedBounds(const SkRect& srcBounds, const SkMatrix& m, argument
186 m.mapRect(&fBounds, srcBounds);
/external/skqp/src/gpu/ops/
H A DGrOp.h184 void setTransformedBounds(const SkRect& srcBounds, const SkMatrix& m, argument
186 m.mapRect(&fBounds, srcBounds);

Completed in 5701 milliseconds

12