/external/skia/tests/ |
D | DeviceTest.cpp | 43 static const int kHeight = 90; 45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight); 50 bm.tryAllocN32Pixels(kWidth, kHeight); 56 SkASSERT(kHeight == special->height()); 58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 65 SkASSERT(kHeight == special->height()); 67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 73 SkASSERT(2*kHeight == special->height()); 74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); 83 static const int kHeight = 90; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [all …]
|
D | ShaderImageFilterTest.cpp | 17 static const int kHeight = 10; in test_unscaled() local 19 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_unscaled() 23 filterResult.allocN32Pixels(kWidth, kHeight); in test_unscaled() 27 paintResult.allocN32Pixels(kWidth, kHeight); in test_unscaled() 54 for (int y = 0; y < kHeight; ++y) { in test_unscaled() 65 static const int kHeight = 10; in test_scaled() local 67 SkIRect ir = SkIRect::MakeWH(kWidth, kHeight); in test_scaled() 71 filterResult.allocN32Pixels(kWidth, kHeight); in test_scaled() 75 paintResult.allocN32Pixels(kWidth, kHeight); in test_scaled() 104 for (int y = 0; y < kHeight; ++y) { in test_scaled()
|
D | PromiseImageTest.cpp | 129 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 134 kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 145 {kWidth, kHeight}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 155 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 199 const int kHeight = 10; in DEF_GPUTEST() local 235 kHeight, in DEF_GPUTEST() 244 SkImageInfo info = SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, in DEF_GPUTEST() 252 {kWidth, kHeight}, in DEF_GPUTEST() 279 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 284 kWidth, kHeight, kAlpha_8_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/external/skqp/tests/ |
D | DeviceTest.cpp | 43 static const int kHeight = 90; 45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight); 50 bm.tryAllocN32Pixels(kWidth, kHeight); 56 SkASSERT(kHeight == special->height()); 58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 65 SkASSERT(kHeight == special->height()); 67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 73 SkASSERT(2*kHeight == special->height()); 74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); 83 static const int kHeight = 90; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [all …]
|
D | GrUploadPixelsTests.cpp | 25 const int kHeight = 16; in basic_texture_test() local 26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test() 27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() 29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test() 31 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test() 37 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test() 44 kHeight)); in basic_texture_test() 50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test() 61 proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test() 67 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test() [all …]
|
D | GrTestingBackendTextureUploadTest.cpp | 20 const int kHeight = 16; in testing_only_texture_test() local 23 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 24 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in testing_only_texture_test() 26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test() 40 kHeight, in testing_only_texture_test() 60 kHeight, ct, dstBuffer, rowBytes); in testing_only_texture_test() 65 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test() 66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test() 70 kWidth, kHeight)); in testing_only_texture_test()
|
D | PromiseImageTest.cpp | 138 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 145 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 155 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 165 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 295 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 301 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 311 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 321 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 418 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 424 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | GpuRectanizerTest.cpp | 16 static const int kHeight = 1024; variable 21 REPORTER_ASSERT(reporter, kHeight == rectanizer->height()); in test_rectanizer_basic() 46 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight); in test_skyline() 53 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight); in test_pow2() 65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
|
/external/libyuv/files/unit_test/ |
D | convert_test.cc | 65 const int kHeight = benchmark_height_; \ 67 const int kSrcHalfHeight = SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); \ 69 const int kDstHalfHeight = SUBSAMPLE(kHeight, DST_SUBSAMP_Y); \ 70 align_buffer_page_end(src_y, kWidth* kHeight* SRC_BPC + OFF); \ 75 align_buffer_page_end(dst_y_c, kWidth* kHeight* DST_BPC); \ 78 align_buffer_page_end(dst_y_opt, kWidth* kHeight* DST_BPC); \ 81 MemRandomize(src_y + OFF, kWidth * kHeight * SRC_BPC); \ 84 memset(dst_y_c, 1, kWidth* kHeight* DST_BPC); \ 87 memset(dst_y_opt, 101, kWidth* kHeight* DST_BPC); \ 98 NEG kHeight); \ [all …]
|
/external/angle/src/tests/gl_tests/ |
D | ComputeShaderTest.cpp | 33 template <class T, GLint kWidth, GLint kHeight> 37 const std::array<T, kWidth * kHeight> &inputData, in runSharedMemoryTest() 38 const std::array<T, kWidth * kHeight> &expectedValues) in runSharedMemoryTest() 44 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest() 45 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, in runSharedMemoryTest() 49 constexpr T initData[kWidth * kHeight] = {}; in runSharedMemoryTest() 51 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest() 52 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, initData); in runSharedMemoryTest() 69 T outputValues[kWidth * kHeight] = {}; in runSharedMemoryTest() 76 glReadPixels(0, 0, kWidth, kHeight, GL_RED_INTEGER, format, outputValues); in runSharedMemoryTest() [all …]
|
D | BlitFramebufferANGLETest.cpp | 1924 constexpr const GLsizei kHeight = 256; in TEST_P() local 1929 kHeight * 2); in TEST_P() 1930 initColorFBO(&targetFBO, &targetRBO, GL_RGBA8, kWidth, kHeight); in TEST_P() 1937 glViewport(0, 0, kWidth, kHeight); in TEST_P() 1943 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P() 1950 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, kHeight / 4, GLColor::red); in TEST_P() 1951 EXPECT_PIXEL_COLOR_EQ(kWidth / 4, 3 * kHeight / 4, GLColor::green); in TEST_P() 1952 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, kHeight / 4, GLColor::blue); in TEST_P() 1953 EXPECT_PIXEL_COLOR_EQ(3 * kWidth / 4, 3 * kHeight / 4, GLColor::yellow); in TEST_P() 1962 glBlitFramebuffer(0, 0, kWidth * 2, kHeight * 2, kWidth, 0, 0, kHeight, GL_COLOR_BUFFER_BIT, in TEST_P() [all …]
|
D | MultisampleCompatibilityTest.cpp | 19 const GLint kHeight = 64; variable 69 kHeight); in prepareForDraw() 84 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in prepareForDraw() 97 glViewport(0, 0, kWidth, kHeight); in prepareForDraw() 112 glBlitFramebufferANGLE(0, 0, kWidth, kHeight, 0, 0, kWidth, kHeight, GL_COLOR_BUFFER_BIT, in prepareForVerify() 187 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P() 213 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P() 243 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P() 266 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P() 301 kHeight); in prepareForDraw() [all …]
|
D | FramebufferMixedSamplesTest.cpp | 19 const GLuint kHeight = 100; variable 74 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kWidth, kHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, in prepareForDraw() 88 kWidth, kHeight); in prepareForDraw() 95 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, kWidth, kHeight); in prepareForDraw() 109 glViewport(0, 0, kWidth, kHeight); in prepareForDraw() 193 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P() 213 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P() 238 const GLint kResultSize = kWidth * kHeight * 4; in TEST_P() 258 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, results[pass].get()); in TEST_P()
|
/external/skqp/gm/ |
D | stlouisarch.cpp | 22 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); } in onISize() 28 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0); in onOnceBeforeDraw() 33 SkScalar yPos = kHeight / 2 + 10; in onOnceBeforeDraw() 42 bigCubic->cubicTo(0, kHeight, in onOnceBeforeDraw() 43 kWidth, kHeight, in onOnceBeforeDraw() 49 SkScalar yPos = kHeight / 2; in onOnceBeforeDraw() 59 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw() 64 SkScalar yPos = kHeight / 2 - 10; in onOnceBeforeDraw() 73 canvas->translate(0, -kHeight); in onDraw() 86 const SkScalar kHeight = 256; member in skiagm::StLouisArchGM
|
D | stringart.cpp | 17 constexpr int kHeight = 440; variable 35 return SkISize::Make(kWidth, kHeight); in onISize() 40 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight)); in onDraw() 41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw() 95 kHeight = 600, 119 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); } 128 SkScalar y = rand.nextF() * kHeight;
|
D | shadowutils.cpp | 69 static constexpr SkScalar kHeight = 50.f; in draw_paths() local 89 SkScalar w = postMBounds.width() + kHeight; in draw_paths() 103 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths() 105 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths() 110 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{0, 0, kHeight}, lightPos, in draw_paths() 137 dy = SkTMax(dy, postMBounds.height() + kPad + kHeight); in draw_paths() 153 SkScalar w = postMBounds.width() + kHeight; in draw_paths() 160 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths() 162 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths() 167 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, kHeight }, lightPos, in draw_paths() [all …]
|
/external/skia/gm/ |
D | stlouisarch.cpp | 26 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); } in onISize() 32 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0); in onOnceBeforeDraw() 37 SkScalar yPos = kHeight / 2 + 10; in onOnceBeforeDraw() 46 bigCubic->cubicTo(0, kHeight, in onOnceBeforeDraw() 47 kWidth, kHeight, in onOnceBeforeDraw() 53 SkScalar yPos = kHeight / 2; in onOnceBeforeDraw() 63 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw() 68 SkScalar yPos = kHeight / 2 - 10; in onOnceBeforeDraw() 77 canvas->translate(0, -kHeight); in onDraw() 90 const SkScalar kHeight = 256; member in skiagm::StLouisArchGM
|
D | shadowutils.cpp | 82 static constexpr SkScalar kHeight = 50.f; in draw_paths() local 103 SkScalar w = postMBounds.width() + kHeight; in draw_paths() 122 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths() 124 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths() 129 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{0, 0, kHeight}, lightPos, in draw_paths() 159 dy = std::max(dy, postMBounds.height() + kPad + kHeight); in draw_paths() 176 SkScalar w = postMBounds.width() + kHeight; in draw_paths() 183 draw_shadow(canvas, path, kHeight, SK_ColorRED, lightPos, kLightR, in draw_paths() 185 draw_shadow(canvas, path, kHeight, SK_ColorBLUE, lightPos, kLightR, in draw_paths() 190 SkShadowUtils::DrawShadow(canvas, path, SkPoint3{ 0, 0, kHeight }, lightPos, in draw_paths() [all …]
|
D | stringart.cpp | 23 constexpr int kHeight = 440; variable 41 return SkISize::Make(kWidth, kHeight); in onISize() 46 SkScalar size = SkIntToScalar(std::min(kWidth, kHeight)); in onDraw() 47 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw() 101 kHeight = 600, 125 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); } 134 SkScalar y = rand.nextF() * kHeight;
|
/external/webrtc/video/adaptation/ |
D | overuse_frame_detector_unittest.cc | 33 const int kHeight = 480; variable 197 InsertAndSendFramesWithInterval(1000, kFrameIntervalUs, kWidth, kHeight, in TriggerOveruse() 206 InsertAndSendFramesWithInterval(1300, kFrameIntervalUs, kWidth, kHeight, in TriggerUnderuse() 208 InsertAndSendFramesWithInterval(1, kFrameIntervalUs, kWidth, kHeight, in TriggerUnderuse() 271 InsertAndSendFramesWithInterval(1200, kFrameIntervalUs, kWidth, kHeight, in TEST_F() 307 InsertAndSendFramesWithInterval(1000, kFrameIntervalUs, kWidth, kHeight, in TEST_F() 314 ForceUpdate(kWidth, kHeight); in TEST_F() 316 InsertAndSendFramesWithInterval(1000, kFrameIntervalUs, kWidth, kHeight, in TEST_F() 320 ForceUpdate(kWidth, kHeight + 1); in TEST_F() 326 ForceUpdate(kWidth, kHeight); in TEST_F() [all …]
|
/external/webrtc/media/base/ |
D | video_adapter_unittest.cc | 29 const int kHeight = 720; variable 55 kHeight, in VideoAdapterTest() 175 VerifyAdaptedResolution(stats, kWidth, kHeight, kWidth, kHeight); in TEST_P() 180 OnOutputFormatRequest(kWidth, kHeight, absl::nullopt); in TEST_P() 188 VerifyAdaptedResolution(stats, kWidth, kHeight, kWidth, kHeight); in TEST_P() 194 OnOutputFormatRequest(kWidth, kHeight, kDefaultFps / 2); in TEST_P() 243 OnOutputFormatRequest(kWidth, kHeight, kDefaultFps * 2 / 3); in TEST_P() 291 OnOutputFormatRequest(kWidth, kHeight, kDefaultFps * 2); in TEST_P() 316 VerifyAdaptedResolution(adapter_wrapper_->GetStats(), kWidth, kHeight, in TEST_P() 317 kWidth, kHeight); in TEST_P() [all …]
|
/external/libaom/libaom/test/ |
D | noise_model_test.cc | 512 static const int kHeight = 128; member in NoiseModelUpdateTest 515 static const int kNumBlocksY = kHeight / kBlockSize; 524 data_.resize(kWidth * kHeight * 3); in SetUp() 525 denoised_.resize(kWidth * kHeight * 3); in SetUp() 526 noise_.resize(kWidth * kHeight * 3); in SetUp() 527 renoise_.resize(kWidth * kHeight); in SetUp() 530 for (int c = 0, offset = 0; c < 3; ++c, offset += kWidth * kHeight) { in SetUp() 545 kWidth, kHeight, strides_, chroma_sub_, in NoiseModelUpdate() 598 const int kHeight = this->kHeight; in TYPED_TEST_P() local 601 for (int y = 0; y < kHeight; ++y) { in TYPED_TEST_P() [all …]
|
/external/webrtc/video/ |
D | video_stream_encoder_unittest.cc | 1882 const int kHeight = 720; in TEST_F() local 1915 video_source_.IncomingCapturedFrame(CreateFrame(t, kWidth, kHeight)); in TEST_F() 1951 video_source_.IncomingCapturedFrame(CreateFrame(t, kWidth, kHeight)); in TEST_F() 2210 const int kHeight = 720; in TEST_F() local 2211 video_source_.IncomingCapturedFrame(CreateFrame(1, kWidth, kHeight)); in TEST_F() 2219 video_source_.IncomingCapturedFrame(CreateFrame(2, kWidth, kHeight)); in TEST_F() 2228 video_source_.IncomingCapturedFrame(CreateFrame(3, kWidth, kHeight)); in TEST_F() 2246 const int kHeight = 720; in TEST_F() local 2247 video_source_.IncomingCapturedFrame(CreateFrame(1, kWidth, kHeight)); in TEST_F() 2255 video_source_.IncomingCapturedFrame(CreateFrame(2, kWidth, kHeight)); in TEST_F() [all …]
|
/external/skia/samplecode/ |
D | SampleRectanizer.cpp | 51 std::unique_ptr<GrRectanizer>(new GrRectanizerPow2(kWidth, kHeight))); in RectanizerView() 53 std::unique_ptr<GrRectanizer>(new GrRectanizerSkyline(kWidth, kHeight))); in RectanizerView() 94 SkRect r = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDrawContent() 117 100.0f * totArea / ((float)kWidth*kHeight), in onDrawContent() 120 canvas->drawString(str, 50, kHeight + 50, blackBigFont, SkPaint()); in onDrawContent() 123 canvas->drawString(str, 50, kHeight + 100, blackBigFont, SkPaint()); in onDrawContent() 126 canvas->drawString(str, 50, kHeight + 150, blackBigFont, SkPaint()); in onDrawContent() 131 static const int kHeight = 1024; member in RectanizerView
|
/external/skqp/samplecode/ |
D | SampleRectanizer.cpp | 51 std::unique_ptr<GrRectanizer>(new GrRectanizerPow2(kWidth, kHeight))); in RectanizerView() 53 std::unique_ptr<GrRectanizer>(new GrRectanizerSkyline(kWidth, kHeight))); in RectanizerView() 99 SkRect r = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDrawContent() 122 100.0f * totArea / ((float)kWidth*kHeight), in onDrawContent() 125 canvas->drawString(str, 50, kHeight + 50, blackBigFont, SkPaint()); in onDrawContent() 128 canvas->drawString(str, 50, kHeight + 100, blackBigFont, SkPaint()); in onDrawContent() 131 canvas->drawString(str, 50, kHeight + 150, blackBigFont, SkPaint()); in onDrawContent() 136 static const int kHeight = 1024; member in RectanizerView
|