/external/skqp/src/effects/imagefilters/ |
D | SkImageSource.cpp | 29 const SkRect& dstRect, in Make() argument 36 srcRect, dstRect, in Make() 50 const SkRect& dstRect, in SkImageSource() argument 55 , fDstRect(dstRect) in SkImageSource() 83 SkRect dstRect; in onFilterImage() local 84 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage() 88 int iLeft = dstRect.fLeft; in onFilterImage() 89 int iTop = dstRect.fTop; in onFilterImage() 92 if (dstRect.width() == bounds.width() && dstRect.height() == bounds.height() && in onFilterImage() 93 iLeft == dstRect.fLeft && iTop == dstRect.fTop) { in onFilterImage() [all …]
|
D | SkTileImageFilter.cpp | 24 sk_sp<SkImageFilter> SkTileImageFilter::Make(const SkRect& srcRect, const SkRect& dstRect, in Make() argument 26 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Make() 29 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Make() 30 SkRect ir = dstRect; in Make() 35 return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), in Make() 36 dstRect.y() - srcRect.y(), in Make() 40 return sk_sp<SkImageFilter>(new SkTileImageFilter(srcRect, dstRect, std::move(input))); in Make() 52 SkRect dstRect; in onFilterImage() local 53 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage() 54 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImage() [all …]
|
D | SkMorphologyImageFilter.cpp | 387 const SkIRect& dstRect, in apply_morphology_rect() argument 398 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect() 405 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument 414 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect_no_bounds() 421 const SkIRect& dstRect, in apply_morphology_pass() argument 426 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass() 427 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass() 428 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass() 433 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass() 435 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass() [all …]
|
/external/skia/src/effects/imagefilters/ |
D | SkImageSource.cpp | 29 const SkRect& dstRect, in Make() argument 36 srcRect, dstRect, in Make() 50 const SkRect& dstRect, in SkImageSource() argument 55 , fDstRect(dstRect) in SkImageSource() 83 SkRect dstRect; in onFilterImage() local 84 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage() 88 int iLeft = dstRect.fLeft; in onFilterImage() 89 int iTop = dstRect.fTop; in onFilterImage() 92 if (dstRect.width() == bounds.width() && dstRect.height() == bounds.height() && in onFilterImage() 93 iLeft == dstRect.fLeft && iTop == dstRect.fTop) { in onFilterImage() [all …]
|
D | SkTileImageFilter.cpp | 24 sk_sp<SkImageFilter> SkTileImageFilter::Make(const SkRect& srcRect, const SkRect& dstRect, in Make() argument 26 if (!SkIsValidRect(srcRect) || !SkIsValidRect(dstRect)) { in Make() 29 if (srcRect.width() == dstRect.width() && srcRect.height() == dstRect.height()) { in Make() 30 SkRect ir = dstRect; in Make() 35 return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), in Make() 36 dstRect.y() - srcRect.y(), in Make() 40 return sk_sp<SkImageFilter>(new SkTileImageFilter(srcRect, dstRect, std::move(input))); in Make() 52 SkRect dstRect; in onFilterImage() local 53 ctx.ctm().mapRect(&dstRect, fDstRect); in onFilterImage() 54 if (!dstRect.intersect(SkRect::Make(ctx.clipBounds()))) { in onFilterImage() [all …]
|
D | SkMorphologyImageFilter.cpp | 390 const SkIRect& dstRect, in apply_morphology_rect() argument 401 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect() 408 const SkIRect& dstRect, in apply_morphology_rect_no_bounds() argument 417 SkRect::Make(dstRect), SkRect::Make(srcRect)); in apply_morphology_rect_no_bounds() 424 const SkIRect& dstRect, in apply_morphology_pass() argument 429 SkIRect lowerSrcRect = srcRect, lowerDstRect = dstRect; in apply_morphology_pass() 430 SkIRect middleSrcRect = srcRect, middleDstRect = dstRect; in apply_morphology_pass() 431 SkIRect upperSrcRect = srcRect, upperDstRect = dstRect; in apply_morphology_pass() 436 lowerDstRect.fRight = dstRect.left() + radius; in apply_morphology_pass() 438 upperDstRect.fLeft = dstRect.right() - radius; in apply_morphology_pass() [all …]
|
/external/skia/samplecode/ |
D | SampleTextureDomain.cpp | 46 SkRect dstRect; in onDrawContent() local 53 dstRect.setXYWH(5, 5, 305, 305); in onDrawContent() 54 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent() 64 dstRect.setXYWH(1, 1, 3, 3); in onDrawContent() 65 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent() 71 dstRect.setXYWH(405, 5, 305, 305); in onDrawContent() 72 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 77 dstRect.setXYWH(5, 405, 305, 305); in onDrawContent() 80 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 90 dstRect.setXYWH(-150, -150, 300, 300); in onDrawContent() [all …]
|
/external/skqp/samplecode/ |
D | SampleTextureDomain.cpp | 46 SkRect dstRect; in onDrawContent() local 53 dstRect.setXYWH(5, 5, 305, 305); in onDrawContent() 54 canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onDrawContent() 64 dstRect.setXYWH(1, 1, 3, 3); in onDrawContent() 65 surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, in onDrawContent() 71 dstRect.setXYWH(405, 5, 305, 305); in onDrawContent() 72 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 77 dstRect.setXYWH(5, 405, 305, 305); in onDrawContent() 80 canvas->drawImageRect(image, srcRect, dstRect, &paint); in onDrawContent() 90 dstRect.setXYWH(-150, -150, 300, 300); in onDrawContent() [all …]
|
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
D | ViESurfaceRenderer.java | 41 private Rect dstRect = new Rect(); field in ViESurfaceRenderer 56 dstRect.right = (int)(dstRect.left + dstRightScale * dstWidth); in changeDestRect() 57 dstRect.bottom = (int)(dstRect.top + dstBottomScale * dstHeight); in changeDestRect() 72 " dstRect.left:" + dstRect.left + in surfaceChanged() 73 " dstRect.top:" + dstRect.top + in surfaceChanged() 74 " dstRect.right:" + dstRect.right + in surfaceChanged() 75 " dstRect.bottom:" + dstRect.bottom); in surfaceChanged() 93 " dstRect.left:" + dstRect.left + in surfaceCreated() 94 " dstRect.top:" + dstRect.top + in surfaceCreated() 95 " dstRect.right:" + dstRect.right + in surfaceCreated() [all …]
|
/external/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 76 const SkIRect& dstRect, in convolve_gaussian_1d() argument 92 SkRect::Make(dstRect), localMatrix); in convolve_gaussian_1d() 191 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian() local 193 *contentRect = dstRect; in convolve_gaussian() 194 convolve_gaussian_1d(dstRenderTargetContext.get(), clip, dstRect, srcOffset, in convolve_gaussian() 206 topRect = SkIRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()); in convolve_gaussian() 207 bottomRect = SkIRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()); in convolve_gaussian() 211 SkIRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()); in convolve_gaussian() 212 dstRect.fTop = midRect.top(); in convolve_gaussian() 213 dstRect.fBottom = midRect.bottom(); in convolve_gaussian() [all …]
|
/external/skqp/src/core/ |
D | SkGpuBlurUtils.cpp | 75 const SkIRect& dstRect, in convolve_gaussian_1d() argument 91 SkRect::Make(dstRect), localMatrix); in convolve_gaussian_1d() 189 SkIRect dstRect = SkIRect::MakeWH(srcRect.width(), srcRect.height()); in convolve_gaussian() local 191 *contentRect = dstRect; in convolve_gaussian() 192 convolve_gaussian_1d(dstRenderTargetContext.get(), clip, dstRect, srcOffset, in convolve_gaussian() 204 topRect = SkIRect::MakeLTRB(0, 0, dstRect.right(), midRect.top()); in convolve_gaussian() 205 bottomRect = SkIRect::MakeLTRB(0, midRect.bottom(), dstRect.right(), dstRect.bottom()); in convolve_gaussian() 209 SkIRect::MakeLTRB(midRect.right(), midRect.top(), dstRect.width(), midRect.bottom()); in convolve_gaussian() 210 dstRect.fTop = midRect.top(); in convolve_gaussian() 211 dstRect.fBottom = midRect.bottom(); in convolve_gaussian() [all …]
|
/external/skqp/gm/ |
D | tileimagefilter.cpp | 64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local 70 dstRect, in onDraw() 78 canvas->drawRect(dstRect, blue); in onDraw() 94 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local 96 sk_sp<SkImageFilter> tile(SkTileImageFilter::Make(srcRect, dstRect, nullptr)); in onDraw() 103 canvas->clipRect(dstRect); in onDraw() 104 canvas->saveLayer(&dstRect, &paint); in onDraw() 108 canvas->drawRect(dstRect, blue); in onDraw() 114 dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() 121 tile = SkTileImageFilter::Make(srcRect, dstRect, std::move(green)); in onDraw() [all …]
|
D | verylargebitmap.cpp | 50 SkRect dstRect = SkRect::MakeWH(128.f, 128.f); in show_image() local 53 canvas->clipRect(dstRect); in show_image() 56 canvas->drawRect(dstRect, borderPaint); in show_image() 58 dstRect.offset(SkIntToScalar(150), 0); in show_image() 62 canvas->drawImageRect(image, subset, dstRect, nullptr); in show_image() 63 canvas->drawRect(dstRect, borderPaint); in show_image() 65 dstRect.offset(SkIntToScalar(150), 0); in show_image() 66 canvas->drawImageRect(image, dstRect, nullptr); in show_image() 67 canvas->drawRect(dstRect, borderPaint); in show_image()
|
D | drawbitmaprect.cpp | 160 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 188 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, nullptr); in onDraw() 195 SkScalar baseline = dstRect.height() + font.getSize() + SK_Scalar1 * 3; in onDraw() 200 canvas->drawRect(dstRect, blackPaint); in onDraw() 202 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 204 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw() 206 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw() 229 fProc(canvas, image.get(), bm, srcRect, dstRect, &paint); in onDraw()
|
D | drawminibitmaprect.cpp | 84 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 114 canvas->drawImageRect(fImage.get(), srcRect, dstRect, &paint, in onDraw() 118 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 120 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw() 122 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
|
D | resizeimagefilter.cpp | 32 SkRect dstRect; in draw() local 33 canvas->getTotalMatrix().mapRect(&dstRect, rect); in draw() 35 SkScalar deviceScaleX = deviceSize.width() / dstRect.width(); in draw() 36 SkScalar deviceScaleY = deviceSize.height() / dstRect.height(); in draw()
|
/external/skia/gm/ |
D | tileimagefilter.cpp | 64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw() local 70 dstRect, in onDraw() 78 canvas->drawRect(dstRect, blue); in onDraw() 94 SkRect dstRect = SkRect::MakeWH(SkIntToScalar(fBitmap->width() * 2), in onDraw() local 96 sk_sp<SkImageFilter> tile(SkTileImageFilter::Make(srcRect, dstRect, nullptr)); in onDraw() 103 canvas->clipRect(dstRect); in onDraw() 104 canvas->saveLayer(&dstRect, &paint); in onDraw() 108 canvas->drawRect(dstRect, blue); in onDraw() 114 dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() 121 tile = SkTileImageFilter::Make(srcRect, dstRect, std::move(green)); in onDraw() [all …]
|
D | verylargebitmap.cpp | 50 SkRect dstRect = SkRect::MakeWH(128.f, 128.f); in show_image() local 53 canvas->clipRect(dstRect); in show_image() 56 canvas->drawRect(dstRect, borderPaint); in show_image() 58 dstRect.offset(SkIntToScalar(150), 0); in show_image() 62 canvas->drawImageRect(image, subset, dstRect, nullptr); in show_image() 63 canvas->drawRect(dstRect, borderPaint); in show_image() 65 dstRect.offset(SkIntToScalar(150), 0); in show_image() 66 canvas->drawImageRect(image, dstRect, nullptr); in show_image() 67 canvas->drawRect(dstRect, borderPaint); in show_image()
|
D | drawbitmaprect.cpp | 160 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 188 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, nullptr); in onDraw() 195 SkScalar baseline = dstRect.height() + font.getSize() + SK_Scalar1 * 3; in onDraw() 200 canvas->drawRect(dstRect, blackPaint); in onDraw() 202 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 204 if ((dstRect.width() + kPadX) * rowCount > gSize) { in onDraw() 206 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw() 229 fProc(canvas, image.get(), bm, srcRect, dstRect, &paint); in onDraw()
|
D | drawminibitmaprect.cpp | 84 const SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)}; in onDraw() local 114 canvas->drawImageRect(fImage.get(), srcRect, dstRect, &paint, in onDraw() 118 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0); in onDraw() 120 if ((dstRect.width() + 2 * kPadX) * rowCount > gSize) { in onDraw() 122 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY); in onDraw()
|
/external/skqp/src/gpu/ |
D | SkGpuDevice_drawTexture.cpp | 106 SkRect dstRect = dst ? *dst : srcRect; in draw_texture() local 110 srcToDst.setRectToRect(srcRect, dstRect, SkMatrix::kFill_ScaleToFit); in draw_texture() 112 srcToDst.mapRect(&dstRect, srcRect); in draw_texture() 138 rtc->drawTexture(clip, std::move(proxy), filter, color, srcRect, dstRect, aaFlags, constraint, in draw_texture() 146 const SkRect* srcRect, const SkRect* dstRect, in drawPinnedTextureProxy() argument 151 draw_texture(paint, viewMatrix, srcRect, dstRect, aa, constraint, std::move(proxy), in drawPinnedTextureProxy() 157 this->drawTextureProducer(&adjuster, srcRect, dstRect, constraint, viewMatrix, paint, false); in drawPinnedTextureProxy() 162 const SkRect* dstRect, in drawTextureProducer() argument 175 draw_texture(paint, viewMatrix, srcRect, dstRect, aa, constraint, std::move(proxy), in drawTextureProducer() 192 if (!dstRect) { in drawTextureProducer() [all …]
|
/external/skqp/tests/ |
D | GrOpListFlushTest.cpp | 50 SkRect dstRect = SkRect::MakeWH(1, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 53 canvas1->drawRect(dstRect, paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 canvas2->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 62 dstRect.fLeft = i+1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 dstRect.fRight = dstRect.fLeft + 1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 65 canvas1->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skia/tests/ |
D | GrOpListFlushTest.cpp | 50 SkRect dstRect = SkRect::MakeWH(1, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 53 canvas1->drawRect(dstRect, paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 canvas2->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 62 dstRect.fLeft = i+1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 63 dstRect.fRight = dstRect.fLeft + 1; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 65 canvas1->drawImageRect(image.get(), srcRect, dstRect, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Device.cpp | 876 …void Device::ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bo… in ClipDstRect() argument 878 if(dstRect.x0 < clipRect.x0) in ClipDstRect() 880 …float offset = (static_cast<float>(clipRect.x0 - dstRect.x0) / static_cast<float>(dstRect.width())… in ClipDstRect() 889 dstRect.x0 = clipRect.x0; in ClipDstRect() 891 if(dstRect.x1 > clipRect.x1) in ClipDstRect() 893 …float offset = (static_cast<float>(dstRect.x1 - clipRect.x1) / static_cast<float>(dstRect.width())… in ClipDstRect() 902 dstRect.x1 = clipRect.x1; in ClipDstRect() 904 if(dstRect.y0 < clipRect.y0) in ClipDstRect() 906 …float offset = (static_cast<float>(clipRect.y0 - dstRect.y0) / static_cast<float>(dstRect.height()… in ClipDstRect() 915 dstRect.y0 = clipRect.y0; in ClipDstRect() [all …]
|
/external/deqp/framework/platform/raspi/ |
D | tcuRaspiPlatform.cpp | 127 VC_RECT_T dstRect, srcRect; in Window() local 129 dstRect.x = 0; in Window() 130 dstRect.y = 0; in Window() 131 dstRect.width = width; in Window() 132 dstRect.height = height; in Window() 145 …m_dispmanElement = vc_dispmanx_element_add(dispmanUpdate, m_dispmanDisplay, 0/*layer*/, &dstRect, … in Window()
|