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

123

/external/chromium_org/gpu/command_buffer/common/
H A Dgles2_cmd_utils_unittest.cc92 const uint32 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 kWidth = 16; local
187 const uint32 kWidth = 19; local
[all...]
/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_unittest.cc48 const int kWidth = 256 / kStep; local
52 scoped_ptr<uint8[]> rgb(new uint8[kWidth * size]);
53 scoped_ptr<uint8[]> y(new uint8[kWidth]);
54 scoped_ptr<uint8[]> u(new uint8[kWidth / 2]);
55 scoped_ptr<uint8[]> v(new uint8[kWidth / 2]);
66 for (int r = 0; r < kWidth; ++r) {
67 for (int g = 0; g < kWidth; ++g) {
70 for (int b = 0; b < kWidth; ++b) {
79 convert(rgb.get(), y.get(), u.get(), v.get(), kWidth, 1, kWidth * siz
[all...]
/external/chromium_org/cc/debug/
H A Dbenchmark_instrumentation.h19 const char kWidth[] = "width"; member in namespace:cc::benchmark_instrumentation
/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/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/media/base/
H A Dvideoframe_unittest.h66 static const int kWidth = 1280; member in class:VideoFrameTest
79 kWidth, kHeight, frame);
486 CreateYuvSample(kWidth, kHeight, 12));
488 kWidth, kHeight, &frame));
491 const uint8* u = y + kWidth * kHeight;
492 const uint8* v = u + kWidth * kHeight / 4;
493 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
494 y, kWidth, u, kWidth / 2, v, kWidth /
[all...]
/external/skia/gm/
H A Dselftest.cpp21 const static int kWidth = 300; member in class:SelfTestGM
29 SkISize onISize() { return skiagm::make_isize(kWidth, kHeight); }
35 canvas->drawRectCoords(0, 0, SkIntToScalar(kWidth), SkIntToScalar(kHeight), paint);
H A Dblurquickreject.cpp29 return SkISize::Make(kWidth, kHeight);
76 static const int kWidth = 300; member in class:BlurQuickRejectGM
/external/chromium_org/remoting/base/
H A Dutil_unittest.cc12 static const int kWidth = 32 ; variable
15 static const int kYStride = kWidth;
16 static const int kUvStride = kWidth / 2;
17 static const int kRgbStride = kWidth * kBytesPerPixel;
31 rgb_buffer_size_ = kWidth * kHeight * kBytesPerPixel;
65 EXPECT_EQ((ptrdiff_t)kWidth,
66 std::count(ptr, ptr + kWidth, 0u));
77 EXPECT_EQ((ptrdiff_t)kWidth - rect.right(),
78 std::count(ptr + rect.right(), ptr + kWidth, 0u));
99 kWidth,
[all...]
/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/media/filters/
H A Dskcanvas_video_renderer_unittest.cc16 static const int kWidth = 320; member in namespace:media
18 static const gfx::Rect kNaturalRect(0, 0, kWidth, kHeight);
87 : natural_frame_(VideoFrame::CreateBlackFrame(gfx::Size(kWidth, kHeight))),
89 gfx::Size(kWidth * 2, kHeight * 2))),
91 gfx::Size(kWidth / 2, kHeight / 2))),
98 fast_path_device_(SkBitmap::kARGB_8888_Config, kWidth, kHeight, true),
100 slow_path_device_(SkBitmap::kARGB_8888_Config, kWidth, kHeight, false),
110 cropped_frame()->natural_size().height() * kWidth);
305 EXPECT_EQ(SK_ColorRED, GetColorAt(fast_path_canvas(), kWidth - 1, 0));
307 EXPECT_EQ(SK_ColorBLUE, GetColorAt(fast_path_canvas(), kWidth
[all...]
/external/chromium_org/gpu/command_buffer/service/
H A Drenderbuffer_manager_unittest.cc139 const GLsizei kWidth = 128; local
141 manager_->SetInfo(renderbuffer1, kSamples, kFormat, kWidth, kHeight);
144 EXPECT_EQ(kWidth, renderbuffer1->width());
149 EXPECT_EQ(kWidth * kHeight * 4u * 4u, renderbuffer1->EstimatedSize());
155 manager_->SetInfo(renderbuffer1, kSamples, kFormat, kWidth, kHeight);
177 const GLsizei kWidth = 128; local
183 kWidth, kHeight1, kSamples, kFormat, &expected_size_1);
185 kWidth, kHeight2, kSamples, kFormat, &expected_size_2);
188 manager_->SetInfo(renderbuffer1, kSamples, kFormat, kWidth, kHeight1);
193 manager_->SetInfo(renderbuffer1, kSamples, kFormat, kWidth, kHeight
213 const GLsizei kWidth = 128; local
246 const GLsizei kWidth = 128; local
[all...]
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_readback_unittests.cc54 const GLint kWidth = 2; local
64 kWidth * kHeight * kBytesPerPixel,
68 glReadPixels(0, 0, kWidth, kHeight, GL_RGBA, GL_UNSIGNED_BYTE, 0);
/external/skia/bench/
H A DBitmapRectBench.cpp48 static const int kWidth = 128; member in class:BitmapRectBench
57 fBitmap.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight);
74 fSrcR.iset(0, 0, kWidth, kHeight);
75 fDstR.iset(0, 0, kWidth, kHeight);
83 fDstR.fRight += SK_Scalar1 / (kWidth * 60);
/external/chromium_org/remoting/host/
H A Dscreen_capturer_fake.h21 // ScreenCapturerFake generates a picture of size kWidth x kHeight.
22 static const int kWidth = 800; member in class:remoting::ScreenCapturerFake
H A Dscreen_capturer_fake.cc13 // ScreenCapturerFake generates a white picture of size kWidth x kHeight
16 static const int kWidth = ScreenCapturerFake::kWidth; member in namespace:remoting
22 COMPILE_ASSERT(kBoxWidth < kWidth && kBoxHeight < kHeight, bad_box_size);
23 COMPILE_ASSERT((kBoxWidth % kSpeed == 0) && (kWidth % kSpeed == 0) &&
123 size_.set(kWidth, kHeight);
/external/skia/tests/
H A DARGBImageEncoderTest.cpp33 const int kWidth = 3; local
36 // kHeight rows, each with kWidth pixels, premultiplied ARGB for each pixel
49 bitmap.setConfig(configs[configIndex], kWidth, kHeight);
57 canvas.drawIRect(SkIRect::MakeLTRB(0, 0, kWidth, 1), paint);
59 canvas.drawIRect(SkIRect::MakeLTRB(0, 1, kWidth, 2), paint);
H A DRoundRectTest.cpp11 static const SkScalar kWidth = 100.0f; variable
51 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight);
64 SkPoint halfPoint = { SkScalarHalf(kWidth), SkScalarHalf(kHeight) };
153 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight);
188 static const SkScalar kWidthTol = SkScalarHalf(kWidth) * (SK_Scalar1 - SK_ScalarRoot2Over2);
195 { kWidth + kEps - kWidthTol, kHeightTol - kEps }, // out
196 { kWidth - kEps - kWidthTol, kHeightTol + kEps }, // in
198 { kWidth + kEps - kWidthTol, kHeight + kEps - kHeightTol }, // out
199 { kWidth - kEps - kWidthTol, kHeight - kEps - kHeightTol }, // in
212 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeigh
[all...]
/external/chromium/chrome/browser/chromeos/
H A Dsetting_level_bubble_view.cc21 const int kWidth = 350, kHeight = 100; member in namespace:__anon2043
69 return gfx::Size(kWidth, kHeight);
/external/chromium_org/media/base/
H A Dyuv_convert_unittest.cc616 const int kWidth = 167; local
621 kWidth);
626 kWidth);
630 kWidth * kBpp));
645 const int kWidth = 167; local
650 kWidth);
655 kWidth);
659 kWidth * kBpp));
674 const int kWidth = 167; local
680 kWidth,
706 const int kWidth = 167; local
738 const int kWidth = 167; local
770 const int kWidth = 167; local
920 const int kWidth = 167; local
946 const int kWidth = 167; local
[all...]
H A Dvideo_frame_unittest.cc91 const int kWidth = 61; local
95 gfx::Size size(kWidth, kHeight);
109 EXPECT_EQ(frame->row_bytes(plane), kWidth * bytes_per_pixel);
125 const int kWidth = 64; local
130 gfx::Size size(kWidth, kHeight);
165 const int kWidth = 2; local
171 VideoFrame::CreateBlackFrame(gfx::Size(kWidth, kHeight));
180 EXPECT_EQ(kWidth, frame->coded_size().width());
/external/sfntly/cpp/src/sfntly/table/bitmap/
H A Dsmall_glyph_metrics.cc35 return data_->ReadByte(Offset::kWidth);
73 return InternalReadData()->ReadByte(Offset::kWidth);
77 InternalWriteData()->WriteByte(Offset::kWidth, width);
H A Dbig_glyph_metrics.cc35 return data_->ReadByte(Offset::kWidth);
85 return InternalReadData()->ReadByte(Offset::kWidth);
89 InternalWriteData()->WriteByte(Offset::kWidth, width);
H A Dsmall_glyph_metrics.h32 kWidth = 1, enumerator in enum:sfntly::SmallGlyphMetrics::Offset::__anon25208
/external/chromium_org/ui/gfx/
H A Dcolor_analysis_unittest.cc218 const int kWidth = 16; local
221 EXPECT_EQ(1 + 1 * kWidth, sampler.GetSample(kWidth, kHeight));
222 EXPECT_EQ(1 + 4 * kWidth, sampler.GetSample(kWidth, kHeight));
223 EXPECT_EQ(1 + 7 * kWidth, sampler.GetSample(kWidth, kHeight));
224 EXPECT_EQ(1 + 10 * kWidth, sampler.GetSample(kWidth, kHeight));
226 EXPECT_EQ(4 + 1 * kWidth, sample
[all...]

Completed in 542 milliseconds

123