Home
last modified time | relevance | path

Searched refs:kImageSize (Results 1 – 14 of 14) sorted by relevance

/external/skqp/gm/
Dflippity.cpp18 static const int kImageSize = 128; variable
23 static const int kCellSize = kImageSize+2*kLabelSize;
28 { 0, kImageSize }, // LL
29 { kImageSize, kImageSize }, // LR
31 { kImageSize, 0 }, // UR
97 SkImageInfo::Make(kImageSize, kImageSize, kRGBA_8888_SkColorType, kOpaque_SkAlphaType); in make_reference_image()
111 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, false, kImageSize, kImageSize, in make_reference_image()
132 tmp.preScale(1.0f/kImageSize, 1.0f/kImageSize); in UVMatToGeomMatForImage()
135 tmp.postScale(kImageSize, kImageSize); in UVMatToGeomMatForImage()
162 SkRect::MakeXYWH(kInset, 0, kImageSize-kInset, kImageSize), in drawImageWithMatrixAndLabels()
[all …]
Danisotropic.cpp24 return SkISize::Make(2*kImageSize + 3*kSpacer, in onISize()
25 kNumVertImages*kImageSize + (kNumVertImages+1)*kSpacer); in onISize()
34 fBM.allocN32Pixels(kImageSize, kImageSize, true); in onOnceBeforeDraw()
45 canvas.translate(kImageSize/2.0f, kImageSize/2.0f); in onOnceBeforeDraw()
49 cos * kImageSize/2, sin * kImageSize/2, p); in onOnceBeforeDraw()
100 static constexpr int kImageSize = 256; member in skiagm::AnisotropicGM
Dimagesource2.cpp44 auto surface(SkSurface::MakeRasterN32Premul(kImageSize, kImageSize)); in onOnceBeforeDraw()
49 for (int x = 0; x < kImageSize; x += 3) { in onOnceBeforeDraw()
51 SkIntToScalar(3), SkIntToScalar(kImageSize)); in onOnceBeforeDraw()
64 SkIntToScalar(kImageSize), in onDraw()
65 SkIntToScalar(kImageSize)); in onDraw()
76 static constexpr int kImageSize = 503; member in skiagm::ImageSourceGM
/external/skia/gm/
Dflippity.cpp43 static const int kImageSize = 128; variable
48 static const int kCellSize = kImageSize+2*kLabelSize;
53 { 0, kImageSize }, // LL
54 { kImageSize, kImageSize }, // LR
56 { kImageSize, 0 }, // UR
121 SkImageInfo::Make(kImageSize, kImageSize, kRGBA_8888_SkColorType, kOpaque_SkAlphaType); in make_reference_image()
157 tmp.preScale(1.0f/kImageSize, 1.0f/kImageSize); in UVMatToGeomMatForImage()
160 tmp.postScale(kImageSize, kImageSize); in UVMatToGeomMatForImage()
186 SkRect::MakeXYWH(kInset, 0, kImageSize-kInset, kImageSize), in drawImageWithMatrixAndLabels()
187 SkRect::MakeXYWH(0, kInset, kImageSize, kImageSize-kInset), in drawImageWithMatrixAndLabels()
[all …]
Danisotropic.cpp34 return SkISize::Make(2*kImageSize + 3*kSpacer, in onISize()
35 kNumVertImages*kImageSize + (kNumVertImages+1)*kSpacer); in onISize()
44 auto info = SkImageInfo::MakeN32(kImageSize, kImageSize, kOpaque_SkAlphaType); in onOnceBeforeDraw()
55 canvas->translate(kImageSize/2.0f, kImageSize/2.0f); in onOnceBeforeDraw()
60 cos * kImageSize/2, sin * kImageSize/2, p); in onOnceBeforeDraw()
110 static constexpr int kImageSize = 256; member in skiagm::AnisotropicGM
Dimagesource2.cpp56 auto surface(SkSurface::MakeRasterN32Premul(kImageSize, kImageSize)); in onOnceBeforeDraw()
61 for (int x = 0; x < kImageSize; x += 3) { in onOnceBeforeDraw()
63 SkIntToScalar(3), SkIntToScalar(kImageSize)); in onOnceBeforeDraw()
76 SkIntToScalar(kImageSize), in onDraw()
77 SkIntToScalar(kImageSize)); in onDraw()
88 static constexpr int kImageSize = 503; member in skiagm::ImageSourceGM
Dycbcrimage.cpp42 return SkISize::Make(2*kPad+kImageSize, 2*kPad+kImageSize); in onISize()
53 if (!ycbcrHelper->createBackendTexture(kImageSize, kImageSize)) { in createYCbCrImage()
103 static const int kImageSize = 112; member in skiagm::YCbCrImageGM
Dtexelsubset.cpp73 int w = kTestPad + 2*kN*(kImageSize.width() + 2*kDrawPad + kTestPad); in onISize()
74 int h = kTestPad + 2*kN*(kImageSize.height() + 2*kDrawPad + kTestPad); in onISize()
82 SkASSERT(fBitmap.dimensions() == kImageSize); in onOnceBeforeDraw()
210 static constexpr SkISize kImageSize = {128, 88}; member in skiagm::TexelSubset
/external/skia/bench/
DImageCycleBench.cpp39 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw()
51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw()
65 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad)); in onDraw()
70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
71 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
72 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad); in onDraw()
87 static constexpr SkISize kImageSize{4, 4}; member in ImageCycle
DAAClipBench.cpp94 static const int kImageSize = 400; member in NestedAAClipBench
103 SkIntToScalar(kImageSize), in NestedAAClipBench()
104 SkIntToScalar(kImageSize)); in NestedAAClipBench()
106 fSizes[0].set(SkIntToScalar(kImageSize), SkIntToScalar(kImageSize)); in NestedAAClipBench()
/external/skqp/bench/
DImageCycleBench.cpp37 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw()
49 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw()
64 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad)); in onDraw()
69 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
70 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
71 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad); in onDraw()
83 static constexpr SkISize kImageSize{4, 4}; member in ImageCycle
DAAClipBench.cpp96 static const int kImageSize = 400; member in NestedAAClipBench
105 SkIntToScalar(kImageSize), in NestedAAClipBench()
106 SkIntToScalar(kImageSize)); in NestedAAClipBench()
108 fSizes[0].set(SkIntToScalar(kImageSize), SkIntToScalar(kImageSize)); in NestedAAClipBench()
/external/libyuv/files/unit_test/
Dconvert_test.cc1376 const int kImageSize = benchmark_width_ * benchmark_height_ >= kMinJpeg in TEST_F() local
1379 const int kSize = kImageSize + kOff; in TEST_F()
1405 const int kImageSize = benchmark_width_ * benchmark_height_ >= kMinJpeg in TEST_F() local
1408 const int kSize = kImageSize + kOff; in TEST_F()
1410 const int kBufSize = kImageSize * kMultiple + kOff; in TEST_F()
1432 const int kImageSize = benchmark_width_ * benchmark_height_ >= kMinJpeg in TEST_F() local
1435 const int kSize = kImageSize + kOff; in TEST_F()
/external/angle/src/tests/gl_tests/
DTextureTest.cpp1895 constexpr size_t kImageSize = 256; in TEST_P() local
1896 std::array<GLColor, kImageSize * kImageSize> kMipColors[2]; in TEST_P()
1906 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kImageSize, kImageSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
1916 glTexImage2D(GL_TEXTURE_2D, 1, GL_RGBA, kImageSize, kImageSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()