Home
last modified time | relevance | path

Searched refs:srcRect (Results 1 – 25 of 56) sorted by relevance

123

/external/skia/src/effects/
DSkGpuBlurUtils.cpp49 const SkRect& srcRect, in convolve_gaussian_1d() argument
61 context->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), dstRect, srcRect); in convolve_gaussian_1d()
67 const SkRect& srcRect, in convolve_gaussian_2d() argument
84 context->drawNonAARectToRect(rt, clip, paint, SkMatrix::I(), dstRect, srcRect); in convolve_gaussian_2d()
90 const SkRect& srcRect, in convolve_gaussian() argument
99 convolve_gaussian_1d(context, rt, clip, srcRect, dstRect, texture, in convolve_gaussian()
103 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in convolve_gaussian()
104 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; in convolve_gaussian()
105 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; in convolve_gaussian()
109 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); in convolve_gaussian()
[all …]
DSkTileImageFilter.cpp19 SkTileImageFilter* SkTileImageFilter::Create(const SkRect& srcRect, const SkRect& dstRect, in Create() argument
21 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Create()
24 return SkNEW_ARGS(SkTileImageFilter, (srcRect, dstRect, input)); in Create()
46 SkRect srcRect; in onFilterImage() local
47 ctx.ctm().mapRect(&srcRect, fSrcRect); in onFilterImage()
49 srcRect.roundOut(&srcIRect); in onFilterImage()
87 SkRect srcRect; in onFilterBounds() local
88 ctm.mapRect(&srcRect, fSrcRect); in onFilterBounds()
90 srcRect.roundOut(&srcIRect); in onFilterBounds()
DSkMorphologyImageFilter.cpp567 const SkIRect& srcRect, in apply_morphology_rect() argument
580 SkRect::Make(srcRect)); in apply_morphology_rect()
587 const SkIRect& srcRect, in apply_morphology_rect_no_bounds() argument
598 SkRect::Make(srcRect)); in apply_morphology_rect_no_bounds()
605 const SkIRect& srcRect, in apply_morphology_pass() argument
611 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass()
612 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass()
613 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass()
615 bounds[0] = (SkIntToScalar(srcRect.left()) + 0.5f) / texture->width(); in apply_morphology_pass()
616 bounds[1] = (SkIntToScalar(srcRect.right()) - 0.5f) / texture->width(); in apply_morphology_pass()
[all …]
DSkMagnifierImageFilter.cpp259 SkImageFilter* SkMagnifierImageFilter::Create(const SkRect& srcRect, SkScalar inset, in Create() argument
262 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) { in Create()
266 if (srcRect.fLeft < 0 || srcRect.fTop < 0) { in Create()
269 return SkNEW_ARGS(SkMagnifierImageFilter, (srcRect, inset, input)); in Create()
273 SkMagnifierImageFilter::SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, in SkMagnifierImageFilter() argument
275 : INHERITED(1, &input), fSrcRect(srcRect), fInset(inset) { in SkMagnifierImageFilter()
276 SkASSERT(srcRect.x() >= 0 && srcRect.y() >= 0 && inset >= 0); in SkMagnifierImageFilter()
DSkXfermodeImageFilter.cpp168 SkRect srcRect; in filterImageGPU() local
169 src.getBounds(&srcRect); in filterImageGPU()
181 context->drawRect(dst->asRenderTarget(), GrClip::WideOpen(), paint, SkMatrix::I(), srcRect); in filterImageGPU()
/external/skia/gm/
Dpictureimagefilter.cpp57 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw() local
63 SkPictureImageFilter::Create(fPicture, srcRect)); in onDraw()
90 canvas->scale(200 / srcRect.width(), 200 / srcRect.height()); in onDraw()
91 canvas->translate(-srcRect.fLeft, -srcRect.fTop); in onDraw()
92 fillRectFiltered(canvas, srcRect, pictureSource); in onDraw()
95 canvas->translate(srcRect.width(), 0); in onDraw()
96 fillRectFiltered(canvas, srcRect, pictureSourceResampled); in onDraw()
99 canvas->translate(srcRect.width(), 0); in onDraw()
100 fillRectFiltered(canvas, srcRect, pictureSourcePixelated); in onDraw()
Dresizeimagefilter.cpp64 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
68 srcRect, in onDraw()
72 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
74 srcRect, in onDraw()
78 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
80 srcRect, in onDraw()
84 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
86 srcRect, in onDraw()
105 canvas->translate(srcRect.width() + SkIntToScalar(10), 0); in onDraw()
107 srcRect, in onDraw()
Dmatriximagefilter.cpp68 SkRect srcRect = SkRect::MakeWH(96, 96); in onDraw() local
71 draw(canvas, srcRect, checkerboard, matrix, kNone_SkFilterQuality); in onDraw()
73 canvas->translate(srcRect.width() + margin, 0); in onDraw()
74 draw(canvas, srcRect, checkerboard, matrix, kLow_SkFilterQuality); in onDraw()
78 canvas->translate(srcRect.width() + margin, 0); in onDraw()
79 draw(canvas, srcRect, checkerboard, matrix, kMedium_SkFilterQuality); in onDraw()
81 canvas->translate(srcRect.width() + margin, 0); in onDraw()
82 draw(canvas, srcRect, checkerboard, matrix, kHigh_SkFilterQuality); in onDraw()
Dbitmapsource.cpp55 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw() local
61 …SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(SkBitmapSource::Create(fBitmap, srcRect, srcRect)); in onDraw()
62 …Unref<SkImageFilter> bitmapSourceSrcRectDstRect(SkBitmapSource::Create(fBitmap, srcRect, dstRect)); in onDraw()
Dtileimagefilter.cpp64 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(bitmap->width()/4), in onDraw() local
74 SkTileImageFilter::Create(srcRect, dstRect, tileInput)); in onDraw()
93 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width()), in onDraw() local
97 SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create(srcRect, dstRect, NULL)); in onDraw()
Ddrawbitmaprect.cpp183 SkIRect srcRect = SkIRect::MakeXYWH((gBmpSize - w) / 2, (gBmpSize - h) / 2, w, h); in onDraw() local
184 fProc(canvas, fImage, fLargeBitmap, &srcRect, dstRect); in onDraw()
215 SkIRect srcRect; in onDraw() local
222 srcRect.setXYWH(1, 1, 3, 3); in onDraw()
229 canvas->drawBitmapRect(bm, &srcRect, dstRect, &paint); in onDraw()
Dbitmapsource2.cpp60 SkRect srcRect = SkRect::MakeLTRB(0, 0, in onDraw() local
64 SkAutoTUnref<SkImageFilter> filter(SkBitmapSource::Create(fBM, srcRect, dstRect, fFilter)); in onDraw()
/external/skia/samplecode/
DSampleTextureDomain.cpp47 SkRect srcRect; in onDrawContent() local
54 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
56 canvas->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); in onDrawContent()
65 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
67 surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, in onDrawContent()
72 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
74 canvas->drawImageRect(image, &srcRect, dstRect, &paint); in onDrawContent()
78 srcRect.setXYWH(1, 1, 3, 3); in onDrawContent()
86 canvas->drawImageRect(image, &srcRect, dstRect, &paint); in onDrawContent()
/external/skia/tests/
DReadPixelsTest.cpp169 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead() local
171 if (!clippedSrcRect.intersect(srcRect)) { in checkRead()
177 int devx = bx + srcRect.fLeft; in checkRead()
178 int devy = by + srcRect.fTop; in checkRead()
341 const SkIRect& srcRect = testRects[rect]; in DEF_GPUTEST() local
345 init_bitmap(&bmp, srcRect, bmi, in DEF_GPUTEST()
355 bool success = canvas.readPixels(&bmp, srcRect.fLeft, srcRect.fTop); in DEF_GPUTEST()
360 bool expectSuccess = SkIRect::Intersects(srcRect, DEV_RECT); in DEF_GPUTEST()
367 checkRead(reporter, bmp, srcRect.fLeft, srcRect.fTop, in DEF_GPUTEST()
378 bool success = canvas.readPixels(srcRect, &wkbmp); in DEF_GPUTEST()
[all …]
/external/deqp/framework/platform/raspi/
DtcuRaspiPlatform.cpp127 VC_RECT_T dstRect, srcRect; in Window() local
134 srcRect.x = 0; in Window()
135 srcRect.y = 0; in Window()
136 srcRect.width = width << 16; in Window()
137 srcRect.height = height << 16; in Window()
145 …nt_add(dispmanUpdate, m_dispmanDisplay, 0/*layer*/, &dstRect, 0/*src*/, &srcRect, DISPMANX_PROTECT… in Window()
/external/skia/src/gpu/
DSkGpuDevice.cpp917 static inline int get_tile_count(const SkIRect& srcRect, int tileSize) { in get_tile_count() argument
918 int tilesX = (srcRect.fRight / tileSize) - (srcRect.fLeft / tileSize) + 1; in get_tile_count()
919 int tilesY = (srcRect.fBottom / tileSize) - (srcRect.fTop / tileSize) + 1; in get_tile_count()
1072 static bool has_aligned_samples(const SkRect& srcRect, in has_aligned_samples() argument
1079 SkScalarAbs(transformedRect.width() - srcRect.width()) < in has_aligned_samples()
1081 SkScalarAbs(transformedRect.height() - srcRect.height()) < in has_aligned_samples()
1088 static bool may_color_bleed(const SkRect& srcRect, in may_color_bleed() argument
1093 SkASSERT(!has_aligned_samples(srcRect, transformedRect)); in may_color_bleed()
1094 SkRect innerSrcRect(srcRect), innerTransformedRect, in may_color_bleed()
1114 const SkRect& srcRect, in needs_texture_domain() argument
[all …]
DSkGrPixelRef.cpp67 SkIRect srcRect; in copy_to_new_texture_pixelref() local
72 srcRect = SkIRect::MakeWH(texture->width(), texture->height()); in copy_to_new_texture_pixelref()
78 srcRect = *subset; in copy_to_new_texture_pixelref()
91 context->copySurface(dst->asRenderTarget(), texture, srcRect, SkIPoint::Make(0,0), in copy_to_new_texture_pixelref()
DGrInOrderDrawBuffer.cpp122 const SkIRect& srcRect, in onCopySurface() argument
124 SkASSERT(this->getGpu()->canCopySurface(dst, src, srcRect, dstPoint)); in onCopySurface()
125 GrTargetCommands::Cmd* cmd = fCommands->recordCopySurface(dst, src, srcRect, dstPoint); in onCopySurface()
DGrCommandBuilder.cpp66 const SkIRect& srcRect, in recordCopySurface() argument
69 cs->fSrcRect = srcRect; in recordCopySurface()
DGrDrawTarget.h188 const SkIRect& srcRect,
196 const SkIRect& srcRect,
311 const SkIRect& srcRect,
/external/skia/include/effects/
DSkTileImageFilter.h22 static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect,
34 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
35 : INHERITED(1, &input, NULL), fSrcRect(srcRect), fDstRect(dstRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
DSkBitmapSource.h20 const SkRect& srcRect, const SkRect& dstRect,
22 return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect, filterQuality));
32 const SkRect& srcRect, const SkRect& dstRect,
/external/skia/src/core/
DSkMatrixImageFilter.cpp64 SkRect srcRect = SkRect::Make(srcBounds); in onFilterImage() local
71 matrix.mapRect(&dstRect, srcRect); in onFilterImage()
86 canvas.drawBitmap(src, srcRect.x(), srcRect.y(), &paint); in onFilterImage()
/external/skia/tools/
Dfiltermain.cpp370 if (NULL == dbmr->srcRect()) { in check_7()
376 if (dbmr->srcRect()->width() != dbmr->dstRect().width() || in check_7()
377 dbmr->srcRect()->height() != dbmr->dstRect().height()) { in check_7()
430 SkScalar newSrcLeft = dbmr->srcRect()->fLeft + clip2->rect().fLeft - dbmr->dstRect().fLeft; in apply_7()
431 SkScalar newSrcTop = dbmr->srcRect()->fTop + clip2->rect().fTop - dbmr->dstRect().fTop; in apply_7()
517 if (NULL == dbmr->srcRect()) { in check_8()
523 if (dbmr->srcRect()->width() != dbmr->dstRect().width() || in check_8()
524 dbmr->srcRect()->height() != dbmr->dstRect().height()) { in check_8()
545 if (dbmr->srcRect()) { in apply_8()
546 newSrcLeft = dbmr->srcRect()->fLeft + clip->rect().fLeft - dbmr->dstRect().fLeft; in apply_8()
[all …]
/external/deqp/modules/gles3/functional/
Des3fFramebufferBlitTests.cpp58 …e, const char* desc, deUint32 filter, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dst… in BlitRectCase() argument
62 , m_srcRect (srcRect) in BlitRectCase()
167 …, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dst…
172 …, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dst… in BlitNearestFilterConsistencyCase() argument
173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase()
459 …deUint32 format, deUint32 srcBuffers, const IVec2& srcSize, const IVec4& srcRect, deUint32 dstBuff… in BlitDepthStencilCase() argument
464 , m_srcRect (srcRect) in BlitDepthStencilCase()
936 IVec4 srcRect; in init() member
948 IVec4 srcRect; in init() member
987 IVec4 srcRect = copyRects[rectNdx].srcRect.swizzle(srcSwz[0], srcSwz[1], srcSwz[2], srcSwz[3]); in init() local
[all …]

123