/external/libyuv/files/unit_test/ |
D | convert_test.cc | 36 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \ 38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \ 39 align_buffer_page_end(src_u, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \ 42 align_buffer_page_end(src_v, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \ 45 align_buffer_page_end(dst_y_c, kWidth* kHeight); \ 46 align_buffer_page_end(dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \ 48 align_buffer_page_end(dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \ 50 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \ 51 align_buffer_page_end(dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \ 53 align_buffer_page_end(dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \ [all …]
|
D | color_test.cc | 145 const int kWidth = 16; in YUVToRGB() local 147 const int kPixels = kWidth * kHeight; in YUVToRGB() 148 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVToRGB() 159 I422ToARGB(orig_y, kWidth, orig_u, (kWidth + 1) / 2, orig_v, (kWidth + 1) / 2, in YUVToRGB() 160 orig_pixels, kWidth * 4, kWidth, kHeight); in YUVToRGB() 168 const int kWidth = 16; in YUVJToRGB() local 170 const int kPixels = kWidth * kHeight; in YUVJToRGB() 171 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVJToRGB() 182 J422ToARGB(orig_y, kWidth, orig_u, (kWidth + 1) / 2, orig_v, (kWidth + 1) / 2, in YUVJToRGB() 183 orig_pixels, kWidth * 4, kWidth, kHeight); in YUVJToRGB() [all …]
|
/external/webrtc/talk/session/media/ |
D | planarfunctions_unittest.cc | 62 static const int kWidth = 1280; variable 501 int y_pitch = kWidth; in TEST_F() 502 int u_pitch = (kWidth + 1) >> 1; in TEST_F() 503 int v_pitch = (kWidth + 1) >> 1; in TEST_F() 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() [all …]
|
/external/skia/tests/ |
D | DeviceTest.cpp | 36 static const int kWidth = 100; 39 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight); 44 bm.tryAllocN32Pixels(kWidth, kHeight); 49 SkASSERT(kWidth == special->width()); 52 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 58 SkASSERT(kWidth == special->width()); 61 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 66 SkASSERT(2*kWidth == special->width()); 68 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); 78 static const int kWidth = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local [all …]
|
D | VkUploadPixelsTests.cpp | 56 const int kWidth = 16; in basic_texture_test() local 58 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test() 59 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() 61 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test() 66 surfDesc.fWidth = kWidth; in basic_texture_test() 82 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kOpaque_SkAlphaType); in basic_texture_test() 88 kWidth, in basic_texture_test() 95 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test() 116 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kOpaque_SkAlphaType); in basic_texture_test() 122 kWidth, in basic_texture_test() [all …]
|
D | RectangleTextureTest.cpp | 92 static const int kWidth = 13; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 95 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 97 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 98 pixels[y * kWidth + x] = y * kWidth + x; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 105 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 121 GrBackendTexture rectangleTex(kWidth, kHeight, kRGBA_8888_GrPixelConfig, rectangleInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 123 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 125 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 127 refPixels[y * kWidth + x] = pixels[y0 * kWidth + x]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
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()
|
/external/webrtc/talk/media/base/ |
D | videoframe_unittest.h | 67 static const int kWidth = 1280; 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() 553 kWidth / 2, v, kWidth / 2, 0)); in ConstructI420() 560 CreateYuvSample(kWidth, kHeight, 12)); in ConstructYV12() 562 kWidth, kHeight, &frame)); in ConstructYV12() [all …]
|
/external/webrtc/webrtc/test/testsupport/metrics/ |
D | video_metrics_unittest.cc | 18 static const int kWidth = 352; 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/webrtc/webrtc/video/ |
D | overuse_frame_detector_unittest.cc | 21 const int kWidth = 640; 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 …]
|
D | video_encoder_unittest.cc | 18 const int kWidth = 320; variable 108 frame_.CreateEmptyFrame(kWidth, kHeight, kWidth, (kWidth + 1) / 2, in EncodeFrame() 109 (kWidth + 1) / 2); in EncodeFrame() 129 codec_.width = kWidth; in UtilizeFallbackEncoder() 147 codec_.width = kWidth; in FallbackFromEncodeRequest()
|
/external/skia/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() 35 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw() 43 kWidth, kHeight, in onOnceBeforeDraw() 44 kWidth, 0); in onOnceBeforeDraw() 53 kWidth, yPos); in onOnceBeforeDraw() 59 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw() 66 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw() 85 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
|
D | rectangletexture.cpp | 129 constexpr int kWidth = 50; in onDraw() local 133 SkPMColor pixels[kWidth * kHeight]; in onDraw() 134 this->fillPixels(kWidth, kHeight, pixels); in onDraw() 135 sk_sp<SkImage> rectImg(this->createRectangleTextureImg(context, kWidth, kHeight, pixels)); in onDraw() 162 canvas->translate(kWidth + kPad, 0); in onDraw() 167 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), clampPaint); in onDraw() 168 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw() 174 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), repeatPaint); in onDraw() 175 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw()
|
D | occludedrrectblur.cpp | 131 constexpr int kWidth = 25; in draw_90() local 135 r = SkIRect::MakeWH(kWidth, 64); in draw_90() 137 r = SkIRect::MakeWH(64, kWidth); in draw_90() 154 constexpr int kWidth = 47; in draw_90_simple() local 158 r = SkIRect::MakeWH(kLength, kWidth); in draw_90_simple() 160 r = SkIRect::MakeWH(kWidth, kLength); in draw_90_simple() 179 constexpr int kWidth = 30; in draw_30_60() local 204 r = SkIRect::MakeWH(kLength, kWidth); in draw_30_60() 206 r = SkIRect::MakeWH(kWidth, kLength); in draw_30_60() 210 radii[left] = SkVector::Make(SkIntToScalar(kWidth), SkIntToScalar(kWidth)); in draw_30_60() [all …]
|
D | stringart.cpp | 16 constexpr int kWidth = 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()
|
D | animatedimageblurs.cpp | 17 static const int kWidth = 512; variable 33 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); } in onISize() 88 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init() 106 if (fPos.fX >= kWidth || fPos.fX < 0.0f) { in update() 107 fPos.fX = SkTPin<SkScalar>(fPos.fX, 0.0f, kWidth); in update()
|
/external/gemmlowp/internal/ |
D | kernel.h | 129 static const int kWidth = tWidth; member 133 static const int kSize = kWidth * kDepth; 146 static const int kWidth = kCells * Cell::kWidth; member 165 static const int kRows = Lhs::Cell::kWidth * Lhs::kCells; 166 static const int kCols = Rhs::Cell::kWidth * Rhs::kCells; 188 return w + d * CellFormat::kWidth; in OffsetIntoCell() 192 assert(CellFormat::kWidth == CellFormat::kDepth); in OffsetIntoCell() 193 static const int size = CellFormat::kWidth; in OffsetIntoCell()
|
D | kernel_reference.h | 40 Format::Lhs::kCells, Format::Lhs::Cell::kWidth, in Name() 43 Format::Rhs::Cell::kDepth, Format::Rhs::Cell::kWidth, in Name() 64 Format::Lhs::Cell::kWidth * Format::kDepth; in Run() 68 Format::Rhs::Cell::kWidth * Format::kDepth; in Run() 74 for (int ri = 0; ri < Format::Lhs::Cell::kWidth; ri++) { in Run() 75 for (int ci = 0; ci < Format::Rhs::Cell::kWidth; ci++) { in Run() 83 accumulator + (ri + rc * Format::Lhs::Cell::kWidth) + in Run() 84 (ci + cc * Format::Rhs::Cell::kWidth) * Format::kRows; in Run()
|
/external/gemmlowp/standalone/ |
D | neon-gemm-kernel-benchmark.cc | 194 static const int kWidth = tWidth; member 198 static const int kSize = kWidth * kDepth; 211 static const int kWidth = kCells * Cell::kWidth; member 224 static const int kRows = Lhs::Cell::kWidth * Lhs::kCells; 225 static const int kCols = Rhs::Cell::kWidth * Rhs::kCells; 247 return w + d * CellFormat::kWidth; in OffsetIntoCell() 251 assert(CellFormat::kWidth == CellFormat::kDepth); in OffsetIntoCell() 252 static const int size = CellFormat::kWidth; in OffsetIntoCell() 1997 static const int kLhsWidth = Format::Lhs::kWidth; in Run() 1998 static const int kRhsWidth = Format::Rhs::kWidth; in Run() [all …]
|
/external/skia/bench/ |
D | RectanizerBench.cpp | 30 static const int kWidth = 1024; member in RectanizerBench 79 fRectanizer.reset(new GrRectanizerPow2(kWidth, kHeight)); in onDelayedSetup() 82 fRectanizer.reset(new GrRectanizerSkyline(kWidth, kHeight)); in onDelayedSetup() 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 | 48 static const int kWidth = 128; member in BitmapRectBench 57 fBitmap.setInfo(SkImageInfo::MakeN32Premul(kWidth, kHeight)); in BitmapRectBench() 75 fSrcR.iset(0, 0, kWidth, kHeight); in onDelayedSetup() 76 fDstR.iset(0, 0, kWidth, kHeight); in onDelayedSetup() 84 fDstR.fRight += SK_Scalar1 / (kWidth * 60); in onDelayedSetup()
|
/external/webrtc/webrtc/tools/frame_editing/ |
D | frame_editing_unittest.cc | 25 const int kWidth = 352; variable 27 const size_t kFrameSize = CalcBufferSize(kI420, kWidth, kHeight); 94 int result = EditFrames(reference_video_, kWidth, kHeight, in TEST_F() 125 int result = EditFrames(reference_video_, kWidth, kHeight, in TEST_F() 138 int result = EditFrames(kRefVideo_, kWidth, kHeight, kFirstFrameToProcess, in TEST_F() 148 int result = EditFrames(reference_video_, kWidth, kHeight, in TEST_F() 183 int result = EditFrames(reference_video_, kWidth, kHeight, in TEST_F()
|
/external/libvpx/libvpx/test/ |
D | active_map_test.cc | 24 static const int kWidth = 208; member in __anone6a4b4330111::ActiveMapTest 55 map.cols = (kWidth + 15) / 16; in PreEncodeFrameHook() 63 map.cols = (kWidth + 15) / 16; in PreEncodeFrameHook() 82 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", kWidth, kHeight, 30, 1, in TEST_P()
|
/external/skia/experimental/GLFWTest/ |
D | glfw_main.cpp | 54 const int kWidth = 960; variable 70 window = glfwCreateWindow(kWidth, kHeight, "Simple example", NULL, NULL); in main() 77 init_skia(kWidth, kHeight); in main() 102 float xPos = (x / (kGrid - 1.0)) * kWidth; in main() 103 float yPos = (y / (kGrid - 1.0)) * kWidth; in main() 113 kWidth*0.5f, kHeight*0.5f, anchorX, anchorY); in main()
|
/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
|