Home
last modified time | relevance | path

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

123

/external/libyuv/files/unit_test/
Dconvert_test.cc37 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 …]
Dcolor_test.cc153 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/
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/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/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/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/skia/tests/
DTextureCompressionTest.cpp47 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 …]
DRecordReplaceDrawTest.cpp23 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 …]
DVkUploadPixelsTests.cpp58 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 …]
DGpuRectanizerTest.cpp18 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()
DRectangleTextureTest.cpp142 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/
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
Drectangletexture.cpp130 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()
Dstringart.cpp15 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()
Dselftest.cpp22 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()
Dbigtileimagefilter.cpp43 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
Dtextblobuseaftergpufree.cpp29 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
Dlcdblendmodes.cpp23 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()
Dtextblobgeometrychange.cpp27 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/
Dfilter2d.cu54 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/
DSampleRectanizer.cpp48 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/
DRectanizerBench.cpp31 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()
DBitmapRectBench.cpp50 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/
Dframe_editing_unittest.cc26 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/
Dactive_map_test.cc25 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()

123