/external/libyuv/files/unit_test/ |
D | convert_test.cc | 37 const int kHeight = benchmark_height_; \ 38 align_buffer_page_end(src_y, kWidth * kHeight + OFF); \ 41 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \ 44 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \ 45 align_buffer_page_end(dst_y_c, kWidth * kHeight); \ 48 SUBSAMPLE(kHeight, SUBSAMP_Y)); \ 51 SUBSAMPLE(kHeight, SUBSAMP_Y)); \ 52 align_buffer_page_end(dst_y_opt, kWidth * kHeight); \ 55 SUBSAMPLE(kHeight, SUBSAMP_Y)); \ 58 SUBSAMPLE(kHeight, SUBSAMP_Y)); \ [all …]
|
D | color_test.cc | 153 const int kHeight = 1; in YUVToRGB() local 154 const int kPixels = kWidth * kHeight; in YUVToRGB() 155 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVToRGB() 170 kWidth, kHeight); in YUVToRGB() 179 const int kHeight = 1; in YUVJToRGB() local 180 const int kPixels = kWidth * kHeight; in YUVJToRGB() 181 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVJToRGB() 196 kWidth, kHeight); in YUVJToRGB() 205 const int kHeight = 1; in YToRGB() local 206 const int kPixels = kWidth * kHeight; in YToRGB() [all …]
|
/external/webrtc/talk/session/media/ |
D | planarfunctions_unittest.cc | 63 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/webrtc/test/testsupport/metrics/ |
D | video_metrics_unittest.cc | 19 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/webrtc/webrtc/video/ |
D | overuse_frame_detector_unittest.cc | 22 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/talk/media/base/ |
D | videoframe_unittest.h | 68 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/skia/tests/ |
D | TextureCompressionTest.cpp | 47 static const int kHeight = 17; in DEF_TEST() local 55 REPORTER_ASSERT(reporter, kHeight % 4 != 0); in DEF_TEST() 58 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight)); in DEF_TEST() 77 static const int kHeight = 12; in DEF_TEST() local 84 REPORTER_ASSERT(reporter, kHeight % 12 == 0); in DEF_TEST() 87 pixmap.alloc(SkImageInfo::MakeN32Premul(kWidth, kHeight)); in DEF_TEST() 106 static const int kHeight = 48; // 12 (ASTC) and 16 (ARM NEON R11 EAC). in DEF_TEST() local 115 REPORTER_ASSERT(reporter, kHeight % 48 == 0); in DEF_TEST() 118 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight)); in DEF_TEST() 128 for (int y = 0; y < kHeight; ++y) { in DEF_TEST() [all …]
|
D | RecordReplaceDrawTest.cpp | 23 static const int kHeight = 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() 98 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in test_replacements() 103 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth / 2), SkIntToScalar(kHeight / 2)), in test_replacements() 116 SkIRect::MakeWH(kWidth, kHeight), in test_replacements() [all …]
|
D | VkUploadPixelsTests.cpp | 58 const int kHeight = 16; in basic_texture_test() local 59 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test() 60 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test() 62 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test() 83 surfDesc.fHeight = kHeight; in basic_texture_test() 89 gpu->readPixels(tex0, 0, 0, kWidth, kHeight, config, dstBuffer, 0); in basic_texture_test() 94 kHeight)); in basic_texture_test() 97 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test() 114 gpu->readPixels(tex1, 0, 0, kWidth, kHeight, config, dstBuffer, 0); in basic_texture_test() 119 kHeight)); in basic_texture_test() [all …]
|
D | GpuRectanizerTest.cpp | 18 static const int kHeight = 1024; variable 23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height()); in test_rectanizer_basic() 48 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight); in test_skyline() 55 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight); in test_pow2() 67 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
|
D | RectangleTextureTest.cpp | 142 static const int kHeight = 13; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 144 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 145 for (int y = 0; y < kHeight; ++y) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 152 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 172 rectangleDesc.fHeight = kHeight; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 176 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 for (int y = 0; y < kHeight; ++y) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 180 int y0 = flipRef ? kHeight - y - 1 : y; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/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() 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 | rectangletexture.cpp | 130 static const int kHeight = 50; in onDraw() local 133 SkPMColor pixels[kWidth * kHeight]; in onDraw() 134 this->fillPixels(kWidth, kHeight, pixels); in onDraw() 135 SkAutoTUnref<SkImage> rectImg(this->createRectangleTextureImg(context, kWidth, kHeight, in onDraw() 169 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), clampPaint); in onDraw() 176 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), repeatPaint); in onDraw() 180 canvas->translate(0, kPad + 1.5f * kHeight * s); in onDraw()
|
D | stringart.cpp | 15 static const int kHeight = 480; 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 | 22 const static int kHeight = 200; 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 | bigtileimagefilter.cpp | 43 return SkISize::Make(kWidth, kHeight); in onISize() 57 SkRect bound = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDraw() 61 SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), in onDraw() 95 static const int kHeight = 512; member in skiagm::BigTileImageFilterGM
|
D | textblobuseaftergpufree.cpp | 29 return SkISize::Make(kWidth, kHeight); in onISize() 53 SkRect rect = SkRect::MakeLTRB(0.f, 0.f, SkIntToScalar(kWidth), kHeight / 2.f); in onDraw() 66 static const int kHeight = 200; member in skiagm::TextBlobUseAfterGpuFree
|
D | lcdblendmodes.cpp | 23 static const int kHeight = 750; variable 56 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); } in onISize() 63 SkRect r = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDraw() 66 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in onDraw() 125 canvas->drawRectCoords(0, 0, SkIntToScalar(kColWidth), SkIntToScalar(kHeight), in drawColumn()
|
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() 73 static const int kHeight = 200; member in skiagm::TextBlobGeometryChange
|
/external/opencv3/modules/cudafilters/src/cuda/ |
D | filter2d.cu | 54 const int kWidth, const int kHeight, in filter2D() argument 68 for (int i = 0; i < kHeight; ++i) in filter2D() 96 …int kWidth, int kHeight, int anchorX, int anchorY, const float* borderValue, cudaStream_t stream) \ 105 … filter2D<<<grid, block, 0, stream>>>(brdSrc, dst, kernel, kWidth, kHeight, anchorX, anchorY); \ 125 int kWidth, int kHeight, int anchorX, int anchorY, in filter2D() argument 129 … int kWidth, int kHeight, int anchorX, int anchorY, const float* borderValue, cudaStream_t stream); in filter2D() 140 kWidth, kHeight, anchorX, anchorY, borderValue, stream); in filter2D() 143 …int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, int kHeight, int anchorX, int… 144 …int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, int kHeight, int anchorX, int… 145 …int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, int kHeight, int anchorX, int… [all …]
|
/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() 122 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 50, blackBigFont); in onDrawContent() 125 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 100, blackBigFont); in onDrawContent() 128 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 150, blackBigFont); in onDrawContent() 135 static const int kHeight = 1024; member in RectanizerView
|
/external/skia/bench/ |
D | RectanizerBench.cpp | 31 static const int kHeight = 1024; member in RectanizerBench 79 fRectanizer.reset(new GrRectanizerPow2(kWidth, kHeight)); in onDelayedSetup() 82 fRectanizer.reset(new GrRectanizerSkyline(kWidth, kHeight)); in onDelayedSetup() 94 rand.nextRangeU(1, kHeight / 2)); in onDraw() 97 GrNextPow2(rand.nextRangeU(1, kHeight / 2))); in onDraw()
|
D | BitmapRectBench.cpp | 50 static const int kHeight = 128; member in BitmapRectBench 58 fBitmap.setInfo(SkImageInfo::MakeN32Premul(kWidth, kHeight)); in BitmapRectBench() 76 fSrcR.iset(0, 0, kWidth, kHeight); in onDelayedSetup() 77 fDstR.iset(0, 0, kWidth, kHeight); in onDelayedSetup()
|
/external/webrtc/webrtc/tools/frame_editing/ |
D | frame_editing_unittest.cc | 26 const int kHeight = 288; 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 | 25 static const int kHeight = 144; member in __anon576713c00111::ActiveMapTest 54 map.rows = (kHeight + 15) / 16; in PreEncodeFrameHook() 62 map.rows = (kHeight + 15) / 16; in PreEncodeFrameHook() 80 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", kWidth, kHeight, 30, in TEST_P()
|