Searched refs:kWidth (Results 1 - 25 of 114) sorted by relevance

12345

/external/chromium_org/third_party/libyuv/unit_test/
H A Dconvert_test.cc43 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
45 align_buffer_64(src_y, kWidth * kHeight + OFF); \
47 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
50 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
52 align_buffer_64(dst_y_c, kWidth * kHeight); \
54 SUBSAMPLE(kWidth, SUBSAMP_X) * \
57 SUBSAMPLE(kWidth, SUBSAMP_X) * \
59 align_buffer_64(dst_y_opt, kWidth * kHeight); \
61 SUBSAMPLE(kWidth, SUBSAMP_X) * \
64 SUBSAMPLE(kWidth, SUBSAMP_
1163 const int kWidth = benchmark_width_; local
[all...]
/external/chromium_org/gpu/command_buffer/common/
H A Dgles2_cmd_utils_unittest.cc92 const uint32_t kWidth = 16; local
98 kWidth, kHeight, GL_RGB, GL_UNSIGNED_BYTE, 1, &size, &unpadded_row_size,
100 EXPECT_EQ(kWidth * kHeight * 3, size);
101 EXPECT_EQ(kWidth * 3, padded_row_size);
104 kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, 1, &size, &unpadded_row_size,
106 EXPECT_EQ(kWidth * kHeight * 4, size);
107 EXPECT_EQ(kWidth * 4, padded_row_size);
110 kWidth, kHeight, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1, &size,
112 EXPECT_EQ(kWidth * kHeight * 1, size);
113 EXPECT_EQ(kWidth *
149 const uint32_t kWidth = 16; local
187 const uint32_t kWidth = 19; local
[all...]
/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_unittest.cc55 const int kWidth = 256 / kStep; local
59 scoped_ptr<uint8[]> rgb(new uint8[kWidth * size]);
60 scoped_ptr<uint8[]> y(new uint8[kWidth]);
61 scoped_ptr<uint8[]> u(new uint8[kWidth / 2]);
62 scoped_ptr<uint8[]> v(new uint8[kWidth / 2]);
73 for (int r = 0; r < kWidth; ++r) {
74 for (int g = 0; g < kWidth; ++g) {
77 for (int b = 0; b < kWidth; ++b) {
86 convert(rgb.get(), y.get(), u.get(), v.get(), kWidth, 1, kWidth * siz
[all...]
/external/chromium_org/third_party/webrtc/test/testsupport/metrics/
H A Dvideo_metrics_unittest.cc19 static const int kWidth = 352; member in namespace:webrtc
53 kWidth, kHeight, &psnr_result_));
59 kWidth, kHeight, &ssim_result_));
65 kWidth, kHeight, &psnr_result_,
75 kWidth, kHeight, &ssim_result_));
81 kWidth, kHeight, &ssim_result_));
87 kWidth, kHeight,
95 kWidth, kHeight, &ssim_result_));
101 kWidth, kHeight, &ssim_result_));
107 kWidth, kHeigh
[all...]
/external/webrtc/src/modules/audio_processing/test/testsupport/metrics/
H A Dvideo_metrics_unittest.cc20 static const int kWidth = 352; member in namespace:webrtc
51 kWidth, kHeight, &psnr_result_));
57 kWidth, kHeight, &ssim_result_));
63 kWidth, kHeight, &psnr_result_,
73 kWidth, kHeight, &ssim_result_));
79 kWidth, kHeight, &ssim_result_));
85 kWidth, kHeight,
93 kWidth, kHeight, &ssim_result_));
99 kWidth, kHeight, &ssim_result_));
105 kWidth, kHeigh
[all...]
/external/webrtc/test/testsupport/metrics/
H A Dvideo_metrics_unittest.cc20 static const int kWidth = 352; member in namespace:webrtc
51 kWidth, kHeight, &psnr_result_));
57 kWidth, kHeight, &ssim_result_));
63 kWidth, kHeight, &psnr_result_,
73 kWidth, kHeight, &ssim_result_));
79 kWidth, kHeight, &ssim_result_));
85 kWidth, kHeight,
93 kWidth, kHeight, &ssim_result_));
99 kWidth, kHeight, &ssim_result_));
105 kWidth, kHeigh
[all...]
/external/skia/tests/
H A DTextureCompressionTest.cpp23 static const int kWidth = 63; local
25 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight);
26 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension != 0);
47 static const int kWidth = 64; local
49 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight);
50 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension == 0);
70 static const int kWidth = 8; local
72 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight);
81 REPORTER_ASSERT(reporter, kWidth % kLATCBlockDimension == 0);
83 const int numBlocks = (kWidth / kLATCBlockDimensio
[all...]
H A DGpuRectanizerTest.cpp17 static const int kWidth = 1024; variable
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
48 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight);
55 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight);
66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2),
/external/chromium_org/skia/ext/
H A Dbitmap_platform_device_mac_unittest.cc16 const int kWidth = 400; member in namespace:skia
23 NULL, kWidth, kHeight, /*is_opaque=*/true));
36 rect.set(0, 0, kWidth, kHeight);
45 EXPECT_EQ(kWidth, clip_rect.width());
56 rect.set(0, 0, kWidth, kHeight);
65 EXPECT_EQ(kWidth, clip_rect.width());
/external/chromium_org/third_party/libjingle/source/talk/session/media/
H A Dplanarfunctions_unittest.cc61 static const int kWidth = 1280; member in namespace:cricket
525 int y_pitch = kWidth;
526 int u_pitch = (kWidth + 1) >> 1;
527 int v_pitch = (kWidth + 1) >> 1;
528 int y_size = kHeight * kWidth;
529 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
533 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
538 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment]);
550 kWidth, kHeight);
555 I420_SIZE(kHeight, kWidth),
[all...]
/external/chromium_org/third_party/skia/tests/
H A DTextureCompressionTest.cpp46 static const int kWidth = 17; local
48 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight);
55 REPORTER_ASSERT(reporter, kWidth % 4 != 0);
80 static const int kWidth = 12; local
82 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight);
88 REPORTER_ASSERT(reporter, kWidth % 12 == 0);
113 static const int kWidth = 48; // We need the number to be divisible by both local
115 SkImageInfo info = SkImageInfo::MakeA8(kWidth, kHeight);
123 REPORTER_ASSERT(reporter, kWidth % 48 == 0);
143 for (int x = 0; x < kWidth;
208 static const int kWidth = 8; local
[all...]
H A DRecordReplaceDrawTest.cpp19 static const int kWidth = 100; variable
35 SkRecorder recorder(&record, kWidth, kHeight);
36 recorder.drawRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), SkPaint());
37 recorder.clipRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)));
40 SkRecorder canvas(&rerecord, kWidth, kHeight);
55 SkRecorder recorder(&record, kWidth, kHeight);
59 SkRecorder canvas(&rerecord, kWidth, kHeight);
73 const SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight);
86 SkRecorder recorder(&record, kWidth, kHeight);
91 recorder.drawRect(SkRect::MakeWH(SkIntToScalar(kWidth/
[all...]
H A DGpuRectanizerTest.cpp17 static const int kWidth = 1024; variable
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
48 GrRectanizerSkyline skylineRectanizer(kWidth, kHeight);
55 GrRectanizerPow2 pow2Rectanizer(kWidth, kHeight);
66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2),
/external/chromium_org/third_party/libjingle/source/talk/media/base/
H A Dvideoframe_unittest.h66 static const int kWidth = 1280; member in class:VideoFrameTest
79 kWidth, kHeight, frame);
495 CreateYuvSample(kWidth, kHeight, 12));
497 kWidth, kHeight, &frame));
500 const uint8* u = y + kWidth * kHeight;
501 const uint8* v = u + kWidth * kHeight / 4;
502 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
503 y, kWidth, u, kWidth / 2, v, kWidth /
[all...]
/external/chromium_org/remoting/host/
H A Dfake_mouse_cursor_monitor.cc34 const int kWidth = 32; local
38 new webrtc::BasicDesktopFrame(webrtc::DesktopSize(kWidth, kHeight)));
40 webrtc::DesktopFrame::kBytesPerPixel * kWidth * kHeight);
H A Dfake_desktop_capturer.cc15 // FakeDesktopCapturer generates a white picture of size kWidth x kHeight
18 static const int kWidth = FakeDesktopCapturer::kWidth; member in namespace:remoting
24 COMPILE_ASSERT(kBoxWidth < kWidth && kBoxHeight < kHeight, bad_box_size);
25 COMPILE_ASSERT((kBoxWidth % kSpeed == 0) && (kWidth % kSpeed == 0) &&
63 int buffer_size = kWidth * kHeight * kBytesPerPixel;
69 webrtc::DesktopSize(kWidth, kHeight), bytes_per_row_, shared_memory));
72 new webrtc::BasicDesktopFrame(webrtc::DesktopSize(kWidth, kHeight)));
78 if (box_pos_x_ + kBoxWidth >= kWidth || box_pos_x_ == 0)
109 webrtc::DesktopRect::MakeXYWH(0, 0, kWidth, kHeigh
[all...]
/external/chromium_org/third_party/skia/gm/
H A Dselftest.cpp21 const static int kWidth = 300; member in class:SelfTestGM
29 SkISize onISize() { return SkISize::Make(kWidth, kHeight); }
35 canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
H A Dstringart.cpp14 static const int kWidth = 640; variable
35 return SkISize::Make(kWidth, kHeight);
40 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight));
41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight));
/external/skia/gm/
H A Dselftest.cpp21 const static int kWidth = 300; member in class:SelfTestGM
29 SkISize onISize() { return SkISize::Make(kWidth, kHeight); }
35 canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
H A Dstringart.cpp14 static const int kWidth = 640; variable
35 return SkISize::Make(kWidth, kHeight);
40 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight));
41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight));
/external/libyuv/files/unit_test/
H A Dplanar_test.cc33 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_
[all...]
/external/chromium_org/third_party/libvpx/source/libvpx/test/
H A Dactive_map_test.cc24 static const int kWidth = 208; member in class:__anon12971::ActiveMapTest
53 map.cols = (kWidth + 15) / 16;
61 map.cols = (kWidth + 15) / 16;
80 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", kWidth, kHeight, 30,
/external/libvpx/libvpx/test/
H A Dactive_map_test.cc24 static const int kWidth = 208; member in class:__anon24769::ActiveMapTest
53 map.cols = (kWidth + 15) / 16;
61 map.cols = (kWidth + 15) / 16;
80 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", kWidth, kHeight, 30,
/external/chromium_org/media/filters/
H A Dskcanvas_video_renderer_unittest.cc15 static const int kWidth = 320; member in namespace:media
17 static const gfx::Rect kNaturalRect(0, 0, kWidth, kHeight);
96 : natural_frame_(VideoFrame::CreateBlackFrame(gfx::Size(kWidth, kHeight))),
98 gfx::Size(kWidth * 2, kHeight * 2))),
100 gfx::Size(kWidth / 2, kHeight / 2))),
107 target_canvas_(AllocBitmap(kWidth, kHeight)) {
116 cropped_frame()->visible_rect().height() * kWidth);
252 VideoFrame::CreateTransparentFrame(gfx::Size(kWidth, kHeight)).get(),
264 VideoFrame::CreateTransparentFrame(gfx::Size(kWidth, kHeight)).get(),
275 Copy(VideoFrame::CreateTransparentFrame(gfx::Size(kWidth, kHeigh
[all...]
/external/chromium_org/third_party/webrtc/video_engine/
H A Doveruse_frame_detector_unittest.cc21 const int kWidth = 640; member in namespace:webrtc::__anon16189
100 InsertFramesWithInterval(200, kFrameInterval33ms, kWidth, kHeight);
101 InsertFramesWithInterval(50, 110, kWidth, kHeight);
107 InsertFramesWithInterval(900, kFrameInterval33ms, kWidth, kHeight);
115 1000, kFrameInterval33ms, kWidth, kHeight, kEncodeTimeMs);
125 200, kFrameInterval33ms, kWidth, kHeight, kEncodeTimeMs1);
127 10, kFrameInterval33ms, kWidth, kHeight, kEncodeTimeMs2);
136 1300, kFrameInterval33ms, kWidth, kHeight, kEncodeTimeMs1);
138 1, kFrameInterval33ms, kWidth, kHeight, kEncodeTimeMs2);
221 InsertFramesWithInterval(1200, kFrameInterval33ms, kWidth, kHeigh
[all...]

Completed in 740 milliseconds

12345