/external/skqp/gm/ |
D | drawbitmaprect.cpp | 91 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc() argument 93 canvas->drawBitmapRect(bm, srcR, dstR, paint); in bitmapproc() 96 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc() argument 98 if (!bm.bounds().contains(srcR)) { in bitmapsubsetproc() 99 bitmapproc(canvas, nullptr, bm, srcR, dstR, paint); in bitmapsubsetproc() 104 if (bm.extractSubset(&subset, srcR)) { in bitmapsubsetproc() 109 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument 111 canvas->drawImageRect(image, srcR, dstR, paint); in imageproc() 115 const SkIRect& srcR, const SkRect& dstR, const SkPaint* paint) { in imagesubsetproc() argument 116 if (!image->bounds().contains(srcR)) { in imagesubsetproc() [all …]
|
D | bitmaprect.cpp | 68 SkRect srcR; in onDraw() local 69 srcR.set(src[i]); in onDraw() 73 canvas->drawBitmapRect(bitmap, srcR, dstR, &paint, in onDraw() 80 canvas->drawRect(srcR, paint); in onDraw() 143 SkRect srcR = { 0.5f, 0.5f, 2.5f, 2.5f }; in onDraw() local 146 canvas->drawBitmapRect(bitmap, srcR, dstR, nullptr, SkCanvas::kStrict_SrcRectConstraint); in onDraw()
|
/external/skia/gm/ |
D | drawbitmaprect.cpp | 108 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc() argument 111 canvas->drawImageRect(bm.asImage(), SkRect::Make(srcR), dstR, sampling, paint, in bitmapproc() 115 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc() argument 118 if (!bm.bounds().contains(srcR)) { in bitmapsubsetproc() 119 bitmapproc(canvas, nullptr, bm, srcR, dstR, sampling, paint); in bitmapsubsetproc() 124 if (bm.extractSubset(&subset, srcR)) { in bitmapsubsetproc() 129 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument 131 canvas->drawImageRect(image, SkRect::Make(srcR), dstR, sampling, paint, in imageproc() 136 const SkIRect& srcR, const SkRect& dstR, in imagesubsetproc() argument 138 if (!image->bounds().contains(srcR)) { in imagesubsetproc() [all …]
|
D | bitmaprect.cpp | 76 SkRect srcR; in onDraw() local 77 srcR.set(src[i]); in onDraw() 81 canvas->drawImageRect(image.get(), srcR, dstR, sampling, &paint, in onDraw() 89 canvas->drawRect(srcR, paint); in onDraw() 152 SkRect srcR = { 0.5f, 0.5f, 2.5f, 2.5f }; in onDraw() local 155 canvas->drawImageRect(bitmap.asImage(), srcR, dstR, SkSamplingOptions(), in onDraw()
|
/external/skqp/src/core/ |
D | SkDevice.cpp | 172 SkRect srcR, dstR; in drawImageNine() local 173 while (iter.next(&srcR, &dstR)) { in drawImageNine() 174 this->drawImageRect(image, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); in drawImageNine() 182 SkRect srcR, dstR; in drawBitmapNine() local 183 while (iter.next(&srcR, &dstR)) { in drawBitmapNine() 184 this->drawBitmapRect(bitmap, &srcR, dstR, paint, SkCanvas::kStrict_SrcRectConstraint); in drawBitmapNine() 193 SkRect srcR, dstR; in drawImageLattice() local 198 while (iter.next(&srcR, &dstR, &isFixedColor, &c)) { in drawImageLattice() 199 if (isFixedColor || (srcR.width() <= 1.0f && srcR.height() <= 1.0f && in drawImageLattice() 200 image->readPixels(info, &c, 4, srcR.fLeft, srcR.fTop))) { in drawImageLattice() [all …]
|
D | SkImageInfo.cpp | 112 SkIRect srcR = SkIRect::MakeXYWH(x, y, fInfo.width(), fInfo.height()); in trim() local 113 if (!srcR.intersect(0, 0, srcWidth, srcHeight)) { in trim() 128 fInfo = fInfo.makeWH(srcR.width(), srcR.height()); in trim() 129 fX = srcR.x(); in trim() 130 fY = srcR.y(); in trim()
|
D | SkBlitter_ARGB32.cpp | 27 static inline SkPMColor blend_lcd16(int srcA, int srcR, int srcG, int srcB, in blend_lcd16() argument 57 blend_32(srcR, dstR, maskR), in blend_lcd16() 62 static inline SkPMColor blend_lcd16_opaque(int srcR, int srcG, int srcB, in blend_lcd16_opaque() argument 92 blend_32(srcR, dstR, maskR), in blend_lcd16_opaque() 305 int srcR = SkColorGetR(src); in blit_row_lcd16() local 314 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 322 __m128i src_sse = _mm_set1_epi32(SkPackARGB32(0xFF, srcR, srcG, srcB)); in blit_row_lcd16() 363 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 376 int srcR = SkColorGetR(src); in blit_row_lcd16_opaque() local 383 *dst = blend_lcd16_opaque(srcR, srcG, srcB, *dst, *mask, opaqueDst); in blit_row_lcd16_opaque() [all …]
|
D | SkColorMatrixFilterRowMajor255.cpp | 19 const float* srcR = src + 0; in transpose_and_scale01() local 25 dst[i + 0] = *srcR++; in transpose_and_scale01() 31 dst[16] = *srcR * (1/255.0f); in transpose_and_scale01()
|
/external/skqp/samplecode/ |
D | SampleBitmapRect.cpp | 114 SkRect srcR; in onDrawContent() local 115 srcR.set(fSrcPts[0], fSrcPts[1]); in onDrawContent() 116 srcR = SkRect::MakeXYWH(fSrcPts[0].fX, fSrcPts[0].fY, 32, 32); in onDrawContent() 117 srcR.offset(-srcR.width()/2, -srcR.height()/2); in onDrawContent() 129 canvas->drawRect(srcR, paint); in onDrawContent() 133 canvas->drawBitmapRect(bitmap, srcR, fDstR[i], &paint, in onDrawContent()
|
D | SampleStrokePath.cpp | 20 SkRect srcR = { 0, 0, 72000, 54000 }; in test_huge_stroke() local 39 matrix.setRectToRect(srcR, dstR, SkMatrix::kCenter_ScaleToFit); in test_huge_stroke()
|
/external/skia/src/core/ |
D | SkImageInfo.cpp | 138 SkIRect srcR = SkIRect::MakeXYWH(x, y, fInfo.width(), fInfo.height()); in trim() local 139 if (!srcR.intersect({0, 0, srcWidth, srcHeight})) { in trim() 154 fInfo = fInfo.makeDimensions(srcR.size()); in trim() 155 fX = srcR.x(); in trim() 156 fY = srcR.y(); in trim()
|
D | SkBlitter_ARGB32.cpp | 27 static inline SkPMColor blend_lcd16(int srcA, int srcR, int srcG, int srcB, in blend_lcd16() argument 57 blend_32(srcR, dstR, maskR), in blend_lcd16() 62 static inline SkPMColor blend_lcd16_opaque(int srcR, int srcG, int srcB, in blend_lcd16_opaque() argument 92 blend_32(srcR, dstR, maskR), in blend_lcd16_opaque() 305 int srcR = SkColorGetR(src); in blit_row_lcd16() local 314 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 322 __m128i src_sse = _mm_set1_epi32(SkPackARGB32(0xFF, srcR, srcG, srcB)); in blit_row_lcd16() 363 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 376 int srcR = SkColorGetR(src); in blit_row_lcd16_opaque() local 383 *dst = blend_lcd16_opaque(srcR, srcG, srcB, *dst, *mask, opaqueDst); in blit_row_lcd16_opaque() [all …]
|
D | SkDevice.cpp | 170 SkRect srcR, dstR; in drawImageLattice() local 175 while (iter.next(&srcR, &dstR, &isFixedColor, &c)) { in drawImageLattice() 177 if (isFixedColor || (srcR.width() <= 1.0f && srcR.height() <= 1.0f && in drawImageLattice() 178 image->readPixels(nullptr, info, &c, 4, srcR.fLeft, srcR.fTop))) { in drawImageLattice() 188 this->drawImageRect(image, &srcR, dstR, SkSamplingOptions(filter), paint, in drawImageLattice()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/ |
D | ResizeWithCropOrPadOp.java | 69 int srcR; in apply() local 80 srcR = w; in apply() 87 srcR = srcL + targetWidth; in apply() 100 Rect src = new Rect(srcL, srcT, srcR, srcB); in apply()
|
/external/skqp/tests/ |
D | BitmapCopyTest.cpp | 202 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() local 210 int sx = x - dstX + srcR.x(); in DEF_TEST() 211 int sy = y - dstY + srcR.y(); in DEF_TEST() 212 if (srcR.contains(sx, sy)) { in DEF_TEST()
|
D | DrawBitmapRectTest.cpp | 247 SkIRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST() local 250 canvas.drawBitmapRect(src, srcR, dstR, nullptr); in DEF_TEST()
|
/external/skia/tests/ |
D | BitmapCopyTest.cpp | 197 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() local 205 int sx = x - dstX + srcR.x(); in DEF_TEST() 206 int sy = y - dstY + srcR.y(); in DEF_TEST() 207 if (srcR.contains(sx, sy)) { in DEF_TEST()
|
D | DrawBitmapRectTest.cpp | 251 SkRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST() local 254 canvas.drawImageRect(src.asImage(), srcR, dstR, SkSamplingOptions(), nullptr, in DEF_TEST()
|
/external/skqp/src/gpu/ops/ |
D | GrLatticeOp.cpp | 252 SkIRect srcR; in onPrepareDraws() local 260 while (patch.fIter->next(&srcR, &dstR)) { in onPrepareDraws() 261 Sk4f coords(SkIntToScalar(srcR.fLeft), SkIntToScalar(srcR.fTop), in onPrepareDraws() 262 SkIntToScalar(srcR.fRight), SkIntToScalar(srcR.fBottom)); in onPrepareDraws()
|
/external/skia/src/gpu/ops/ |
D | GrLatticeOp.cpp | 261 SkIRect srcR; in onPrepareDraws() local 268 while (patch.fIter->next(&srcR, &dstR)) { in onPrepareDraws() 269 Sk4f coords(SkIntToScalar(srcR.fLeft), SkIntToScalar(srcR.fTop), in onPrepareDraws() 270 SkIntToScalar(srcR.fRight), SkIntToScalar(srcR.fBottom)); in onPrepareDraws()
|
/external/skqp/src/image/ |
D | SkSurface.cpp | 215 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels() local 217 if (SkIRect::Intersects(srcR, dstR)) { in writePixels() 219 if (srcR.contains(dstR)) { in writePixels()
|
D | SkImage_Lazy.cpp | 147 const SkIRect srcR = SkIRect::MakeWH(genW, genH); in generate_pixels() local 149 if (!srcR.contains(dstR)) { in generate_pixels() 158 if (srcR != dstR) { in generate_pixels() 172 if (srcR != dstR) { in generate_pixels()
|
/external/skia/modules/skottie/src/ |
D | Skottie.cpp | 473 const SkRect srcR = SkRect::MakeSize(this->size()); in render() local 475 canvas->concat(SkMatrix::RectToRect(srcR, *dstR, SkMatrix::kCenter_ScaleToFit)); in render() 479 canvas->clipRect(srcR); in render() 486 canvas->saveLayer(srcR, nullptr); in render()
|
/external/skia/samplecode/ |
D | SampleStrokePath.cpp | 20 SkRect srcR = { 0, 0, 72000, 54000 }; in test_huge_stroke() local 38 canvas->concat(SkMatrix::RectToRect(srcR, dstR, SkMatrix::kCenter_ScaleToFit)); in test_huge_stroke()
|
/external/skia/src/image/ |
D | SkSurface.cpp | 288 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels() local 290 if (SkIRect::Intersects(srcR, dstR)) { in writePixels() 292 if (srcR.contains(dstR)) { in writePixels()
|