Home
last modified time | relevance | path

Searched refs:kHeight (Results 1 – 25 of 194) sorted by relevance

12345678

/external/skia/tests/
DDeviceTest.cpp43 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 …]
DShaderImageFilterTest.cpp17 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()
DPromiseImageTest.cpp129 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/
DDeviceTest.cpp43 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 …]
DGrUploadPixelsTests.cpp25 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 …]
DGrTestingBackendTextureUploadTest.cpp20 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()
DPromiseImageTest.cpp138 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 …]
DGpuRectanizerTest.cpp16 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/
Dconvert_test.cc65 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/
DComputeShaderTest.cpp33 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 …]
DBlitFramebufferANGLETest.cpp1924 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 …]
DMultisampleCompatibilityTest.cpp19 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 …]
DFramebufferMixedSamplesTest.cpp19 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/
Dstlouisarch.cpp22 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
Dstringart.cpp17 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;
Dshadowutils.cpp69 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/
Dstlouisarch.cpp26 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
Dshadowutils.cpp82 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 …]
Dstringart.cpp23 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/
Doveruse_frame_detector_unittest.cc33 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/
Dvideo_adapter_unittest.cc29 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/
Dnoise_model_test.cc512 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/
Dvideo_stream_encoder_unittest.cc1882 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/
DSampleRectanizer.cpp51 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/
DSampleRectanizer.cpp51 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

12345678