/external/libyuv/files/unit_test/ |
D | planar_test.cc | 33 const int kWidth = 1280; \ 35 const int kStride = (kWidth * 8 * BPP_B + 7) / 8; \ 36 align_buffer_16(src_y, kWidth * kHeight); \ 37 align_buffer_16(src_u, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \ 38 align_buffer_16(src_v, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \ 43 for (int j = 0; j < kWidth; ++j) \ 44 src_y[(i * kWidth) + j] = (random() & 0xff); \ 46 for (int j = 0; j < kWidth / SUBSAMP_X; ++j) { \ 47 src_u[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \ 48 src_v[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \ [all …]
|
/external/webrtc/test/testsupport/metrics/ |
D | video_metrics_unittest.cc | 20 static const int kWidth = 352; variable 51 kWidth, kHeight, &psnr_result_)); in TEST_F() 57 kWidth, kHeight, &ssim_result_)); in TEST_F() 63 kWidth, kHeight, &psnr_result_, in TEST_F() 73 kWidth, kHeight, &ssim_result_)); in TEST_F() 79 kWidth, kHeight, &ssim_result_)); in TEST_F() 85 kWidth, kHeight, in TEST_F() 93 kWidth, kHeight, &ssim_result_)); in TEST_F() 99 kWidth, kHeight, &ssim_result_)); in TEST_F() 105 kWidth, kHeight, in TEST_F() [all …]
|
/external/skia/tests/ |
D | TextureCompressionTest.cpp | 46 static const int kWidth = 17; in DEF_TEST() local 48 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight); in DEF_TEST() 55 REPORTER_ASSERT(reporter, kWidth % 4 != 0); in DEF_TEST() 80 static const int kWidth = 12; in DEF_TEST() local 82 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_TEST() 88 REPORTER_ASSERT(reporter, kWidth % 12 == 0); in DEF_TEST() 113 static const int kWidth = 48; // We need the number to be divisible by both in DEF_TEST() local 115 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight); in DEF_TEST() 123 REPORTER_ASSERT(reporter, kWidth % 48 == 0); in DEF_TEST() 143 for (int x = 0; x < kWidth; ++x) { in DEF_TEST() [all …]
|
D | RecordReplaceDrawTest.cpp | 22 static const int kWidth = 100; variable 41 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in DEF_TEST() 43 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), SkPaint()); in DEF_TEST() 44 canvas->clipRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight))); in DEF_TEST() 50 SkRecorder canvas(&rerecord, kWidth, kHeight); in DEF_TEST() 75 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in DEF_TEST() 84 SkRecorder canvas(&rerecord, kWidth, kHeight); in DEF_TEST() 99 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight), in test_replacements() 106 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth / 2), SkIntToScalar(kHeight / 2)), in test_replacements() 116 SkIRect::MakeWH(kWidth, kHeight), in test_replacements() [all …]
|
D | GpuRectanizerTest.cpp | 17 static const int kWidth = 1024; variable 22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width()); in test_rectanizer_basic() 48 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight); in test_skyline() 55 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight); in test_pow2() 66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
|
D | ARGBImageEncoderTest.cpp | 22 const int kWidth = 3; in DEF_TEST() local 38 bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight, gColorTypes[ctIndex], in DEF_TEST() 45 canvas.drawIRect(SkIRect::MakeLTRB(0, 0, kWidth, 1), paint); in DEF_TEST() 47 canvas.drawIRect(SkIRect::MakeLTRB(0, 1, kWidth, 2), paint); in DEF_TEST()
|
D | RecordDrawTest.cpp | 203 static const int kWidth = 10, kHeight = 10; in DEF_TEST() local 205 SkRect r1 = { 0, 0, kWidth, kHeight }; in DEF_TEST() 206 SkRect r2 = { 0, 0, kWidth, kHeight/2 }; in DEF_TEST() 207 SkRect r3 = { 0, 0, kWidth/2, kHeight }; in DEF_TEST() 211 SkRecorder recorder(&record, kWidth, kHeight); in DEF_TEST() 217 SkRecorder canvas(&rerecord, kWidth, kHeight); in DEF_TEST()
|
D | PictureTest.cpp | 267 static const int kWidth = 100; in test_savelayer_extraction() local 286 SkCanvas* c = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight), in test_savelayer_extraction() 320 SkCanvas* c = recorder.beginRecording(SkIntToScalar(kWidth), in test_savelayer_extraction() 330 c->translate(kWidth / 2.0f, kHeight / 2.0f); in test_savelayer_extraction() 331 SkRect r = SkRect::MakeXYWH(0, 0, kWidth/2, kHeight/2); in test_savelayer_extraction() 390 REPORTER_ASSERT(reporter, kWidth == info0.fBounds.width() && in test_savelayer_extraction() 399 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.width() && in test_savelayer_extraction() 403 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.fLeft && in test_savelayer_extraction() 410 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.width() && in test_savelayer_extraction() 414 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.fLeft && // translated in test_savelayer_extraction() [all …]
|
/external/skia/gm/ |
D | stlouisarch.cpp | 21 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); } in onISize() 27 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0); in onOnceBeforeDraw() 34 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw() 42 kWidth, kHeight, in onOnceBeforeDraw() 43 kWidth, 0); in onOnceBeforeDraw() 52 kWidth, yPos); in onOnceBeforeDraw() 58 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw() 65 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw() 84 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
|
D | stringart.cpp | 14 static const int kWidth = 640; variable 32 return SkISize::Make(kWidth, kHeight); in onISize() 37 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight)); in onDraw() 38 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
|
D | selftest.cpp | 21 const static int kWidth = 300; member in SelfTestGM 29 SkISize onISize() { return SkISize::Make(kWidth, kHeight); } in onISize() 35 canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint); in onDraw()
|
D | textblobgeometrychange.cpp | 27 return SkISize::Make(kWidth, kHeight); in onISize() 52 SkRect rect = SkRect::MakeLTRB(0.f, 0.f, SkIntToScalar(kWidth), kHeight / 2.f); in onDraw() 72 static const int kWidth = 200; member in skiagm::TextBlobGeometryChange
|
D | glyph_pos_align.cpp | 15 static const int kWidth = 480; variable 29 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); } in onISize() 38 const SkPoint pts[] = {{0, 0}, {kWidth, kHeight}}; in onDraw()
|
D | largeglyphblur.cpp | 28 return SkISize::Make(kWidth, kHeight); in onISize() 60 static const int kWidth = 1920; member in skiagm::LargeGlyphBlur
|
D | textblobcolortrans.cpp | 59 return SkISize::Make(kWidth, kHeight); in onISize() 91 static const int kWidth = 675; member in skiagm::TextBlobColorTrans
|
D | blurquickreject.cpp | 30 return SkISize::Make(kWidth, kHeight); in onISize() 77 static const int kWidth = 300; member in BlurQuickRejectGM
|
/external/skia/bench/ |
D | RectanizerBench.cpp | 30 static const int kWidth = 1024; member in RectanizerBench 79 fRectanizer.reset(SkNEW_ARGS(GrRectanizerPow2, (kWidth, kHeight))); in onPreDraw() 82 fRectanizer.reset(SkNEW_ARGS(GrRectanizerSkyline, (kWidth, kHeight))); in onPreDraw() 93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw() 96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw()
|
D | BitmapRectBench.cpp | 49 static const int kWidth = 128; member in BitmapRectBench 58 fBitmap.setInfo(SkImageInfo::MakeN32Premul(kWidth, kHeight)); in BitmapRectBench() 76 fSrcR.iset(0, 0, kWidth, kHeight); in onPreDraw() 77 fDstR.iset(0, 0, kWidth, kHeight); in onPreDraw() 85 fDstR.fRight += SK_Scalar1 / (kWidth * 60); in onPreDraw()
|
/external/libvpx/libvpx/test/ |
D | active_map_test.cc | 24 static const int kWidth = 208; member in __anon03bfe7940111::ActiveMapTest 53 map.cols = (kWidth + 15) / 16; in PreEncodeFrameHook() 61 map.cols = (kWidth + 15) / 16; in PreEncodeFrameHook() 80 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", kWidth, kHeight, 30, in TEST_P()
|
D | y4m_test.cc | 25 static const unsigned int kWidth = 160; variable 95 ASSERT_EQ(y4m_.pic_w, (int)kWidth); in HeaderChecks() 97 ASSERT_EQ(img()->d_w, kWidth); in HeaderChecks() 166 kWidth, kHeight, in WriteY4mAndReadBack()
|
/external/skia/samplecode/ |
D | SampleRectanizer.cpp | 48 fRectanizers[0] = new GrRectanizerPow2(kWidth, kHeight); in RectanizerView() 49 fRectanizers[1] = new GrRectanizerSkyline(kWidth, kHeight); in RectanizerView() 96 SkRect r = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDrawContent() 119 100.0f * totArea / ((float)kWidth*kHeight), in onDrawContent() 134 static const int kWidth = 1024; member in RectanizerView
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
D | QRDecompositionImpl.java | 383 final int kWidth = kEnd - kStart; in solve() local 393 Arrays.fill(alpha, 0, kWidth, 0.0); in solve() 397 for (int k = 0; k < kWidth; ++k) { in solve() 401 for (int k = 0; k < kWidth; ++k) { in solve() 408 for (int k = 0; k < kWidth; ++k) { in solve() 422 int index = (j - jStart) * kWidth; in solve() 423 for (int k = 0; k < kWidth; ++k) { in solve() 432 for (int k = 0; k < kWidth; ++k) { in solve()
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_memmgr_unittest.cpp | 15 const size_t kWidth = 640; variable 16 const size_t kOverflowIntAlloc2D = kMaxIntAlloc / kWidth + 10; 43 (void) FX_Alloc2D(int, kWidth, kOverflowIntAlloc2D), ""); in TEST()
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
D | small_glyph_metrics.cc | 35 return data_->ReadByte(Offset::kWidth); in Width() 73 return InternalReadData()->ReadByte(Offset::kWidth); in Width() 77 InternalWriteData()->WriteByte(Offset::kWidth, width); in SetWidth()
|
D | big_glyph_metrics.cc | 35 return data_->ReadByte(Offset::kWidth); in Width() 85 return InternalReadData()->ReadByte(Offset::kWidth); in Width() 89 InternalWriteData()->WriteByte(Offset::kWidth, width); in SetWidth()
|