Home
last modified time | relevance | path

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

1234567

/external/libyuv/files/unit_test/
Dconvert_test.cc37 const int kHeight = benchmark_height_; \
38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
40 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
43 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
45 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
47 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
49 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
50 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
52 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
54 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
[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/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 …]
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.cpp130 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
136 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
146 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
155 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
254 const int kHeight = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
260 nullptr, kWidth, kHeight, GrColorType::kGray_8, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
264 nullptr, kWidth, kHeight, GrColorType::kAlpha_8, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
274 SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
280 ctx, backendTex1.getBackendFormat(), kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
287 ctx, backendTex1.getBackendFormat(), kWidth, kHeight, 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()
DRectangleTextureTest.cpp99 static const int kHeight = 13; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
101 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
102 for (int y = 0; y < kHeight; ++y) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
111 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
127 GrBackendTexture rectangleTex(kWidth, kHeight, GrMipMapped::kNo, rectangleInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
130 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
131 for (int y = 0; y < kHeight; ++y) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 int y0 = useBLOrigin ? kHeight - y - 1 : y; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/webrtc/talk/session/media/
Dplanarfunctions_unittest.cc63 static const int kHeight = 720; variable
504 int y_size = kHeight * kWidth; in TEST_F()
505 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F()
509 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer, in TEST_F()
513 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]); in TEST_F()
525 kWidth, kHeight); in TEST_F()
530 I420_SIZE(kHeight, kWidth), 1.e-6)); in TEST_F()
532 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } in TEST_F()
542 int y_size = kHeight * kWidth; in TEST_F()
543 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F()
[all …]
/external/webrtc/talk/media/base/
Dvideoframe_unittest.h68 static const int kHeight = 720; variable
80 kWidth, kHeight, frame); in LoadFrameNoRepeat()
545 CreateYuvSample(kWidth, kHeight, 12)); in ConstructI420()
547 kWidth, kHeight, &frame)); in ConstructI420()
550 const uint8_t* u = y + kWidth * kHeight; in ConstructI420()
551 const uint8_t* v = u + kWidth * kHeight / 4; in ConstructI420()
552 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u, in ConstructI420()
560 CreateYuvSample(kWidth, kHeight, 12)); in ConstructYV12()
562 kWidth, kHeight, &frame)); in ConstructYV12()
565 const uint8_t* v = y + kWidth * kHeight; in ConstructYV12()
[all …]
/external/webrtc/webrtc/video/
Doveruse_frame_detector_unittest.cc22 const int kHeight = 480; variable
90 1000, kFrameInterval33ms, kWidth, kHeight, kDelayMs); in TriggerOveruse()
99 1300, kFrameInterval33ms, kWidth, kHeight, kDelayMs1); in TriggerUnderuse()
101 1, kFrameInterval33ms, kWidth, kHeight, kDelayMs2); in TriggerUnderuse()
155 1200, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms); in TEST_F()
187 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms); in TEST_F()
194 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms); in TEST_F()
198 1, kFrameInterval33ms, kWidth, kHeight + 1, kProcessTime5ms); in TEST_F()
205 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms); in TEST_F()
208 2, options_.frame_timeout_interval_ms, kWidth, kHeight, kProcessTime5ms); in TEST_F()
[all …]
/external/webrtc/webrtc/test/testsupport/metrics/
Dvideo_metrics_unittest.cc19 static const int kHeight = 288; variable
57 kWidth, kHeight, &psnr_result_)); in TEST_F()
63 kWidth, kHeight, &ssim_result_)); in TEST_F()
69 kWidth, kHeight, &psnr_result_, in TEST_F()
79 video_file_.c_str(), kWidth, kHeight, in TEST_F()
86 video_file_.c_str(), kWidth, kHeight, in TEST_F()
93 video_file_.c_str(), kWidth, kHeight, in TEST_F()
101 kWidth, kHeight, &ssim_result_)); in TEST_F()
107 kWidth, kHeight, &ssim_result_)); in TEST_F()
113 non_existing_file_.c_str(), kWidth, kHeight, in TEST_F()
[all …]
/external/skia/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
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 …]
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;
/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
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 …]
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;
/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/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()
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
/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

1234567