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

1234

/external/skia/gm/
H A Dstlouisarch.cpp22 SkISize onISize() override { return SkISize::Make((int)kWidth, (int)kHeight); }
28 bigQuad->quadTo(kWidth/2, kHeight, kWidth, 0);
35 degenBigQuad->quadTo(0, yPos, kWidth, yPos);
43 kWidth, kHeight,
44 kWidth, 0);
53 kWidth, yPos);
59 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5);
66 degenBigConic->conicTo(0, yPos, kWidth, yPo
85 const SkScalar kWidth = 256; member in class:skiagm::StLouisArchGM
[all...]
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
32 return SkISize::Make(kWidth, kHeight);
37 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight));
38 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight));
H A Dtextblobgeometrychange.cpp27 return SkISize::Make(kWidth, kHeight);
52 SkRect rect = SkRect::MakeLTRB(0.f, 0.f, SkIntToScalar(kWidth), kHeight / 2.f);
72 static const int kWidth = 200; member in class:skiagm::TextBlobGeometryChange
H A Dtextblobuseaftergpufree.cpp29 return SkISize::Make(kWidth, kHeight);
53 SkRect rect = SkRect::MakeLTRB(0.f, 0.f, SkIntToScalar(kWidth), kHeight / 2.f);
65 static const int kWidth = 200; member in class:skiagm::TextBlobUseAfterGpuFree
H A Dblurredclippedcircle.cpp31 return SkISize::Make(kWidth, kHeight);
46 SkIntToScalar(kWidth), SkIntToScalar(kHeight));
83 static const int kWidth = 1164; member in class:skiagm::BlurredClippedCircleGM
/external/gemmlowp/internal/
H A Dkernel.h129 static const int kWidth = tWidth; member in struct:gemmlowp::CellFormat
133 static const int kSize = kWidth * kDepth;
146 static const int kWidth = kCells * Cell::kWidth; member in struct:gemmlowp::KernelSideFormat
159 static const int kRows = Lhs::Cell::kWidth * Lhs::kCells;
160 static const int kCols = Rhs::Cell::kWidth * Rhs::kCells;
182 return w + d * CellFormat::kWidth;
186 assert(CellFormat::kWidth == CellFormat::kDepth);
187 static const int size = CellFormat::kWidth;
H A Dkernel_reference.h40 Format::Lhs::kCells, Format::Lhs::Cell::kWidth,
43 Format::Rhs::Cell::kDepth, Format::Rhs::Cell::kWidth,
64 Format::Lhs::Cell::kWidth *
69 Format::Rhs::Cell::kWidth *
76 for (int ri = 0; ri < Format::Lhs::Cell::kWidth; ri++) {
77 for (int ci = 0; ci < Format::Rhs::Cell::kWidth; ci++) {
85 accumulator + (ri + rc * Format::Lhs::Cell::kWidth) +
86 (ci + cc * Format::Rhs::Cell::kWidth) * Format::kRows;
/external/webrtc/talk/session/media/
H A Dplanarfunctions_unittest.cc62 static const int kWidth = 1280; member in namespace:cricket
501 int y_pitch = kWidth;
502 int u_pitch = (kWidth + 1) >> 1;
503 int v_pitch = (kWidth + 1) >> 1;
504 int y_size = kHeight * kWidth;
505 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
509 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer,
513 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]);
525 kWidth, kHeight);
530 I420_SIZE(kHeight, kWidth),
[all...]
/external/webrtc/webrtc/test/testsupport/metrics/
H A Dvideo_metrics_unittest.cc18 static const int kWidth = 352; member in namespace:webrtc
57 kWidth, kHeight, &psnr_result_));
63 kWidth, kHeight, &ssim_result_));
69 kWidth, kHeight, &psnr_result_,
79 video_file_.c_str(), kWidth, kHeight,
86 video_file_.c_str(), kWidth, kHeight,
93 video_file_.c_str(), kWidth, kHeight,
101 kWidth, kHeight, &ssim_result_));
107 kWidth, kHeight, &ssim_result_));
113 non_existing_file_.c_str(), kWidth, kHeigh
[all...]
/external/skia/tests/
H A DRecordReplaceDrawTest.cpp22 static const int kWidth = 100; variable
41 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight));
43 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), SkPaint());
44 canvas->clipRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)));
50 SkRecorder canvas(&rerecord, kWidth, kHeight);
75 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight));
84 SkRecorder canvas(&rerecord, kWidth, kHeight);
98 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight));
103 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth / 2), SkIntToScalar(kHeight / 2)),
116 SkIRect::MakeWH(kWidth, kHeigh
[all...]
H A DTextureCompressionTest.cpp46 static const int kWidth = 17; local
54 REPORTER_ASSERT(reporter, kWidth % 4 != 0);
58 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
76 static const int kWidth = 12; local
83 REPORTER_ASSERT(reporter, kWidth % 12 == 0);
87 pixmap.alloc(SkImageInfo::MakeN32Premul(kWidth, kHeight));
105 static const int kWidth = 48; // We need the number to be divisible by both local
114 REPORTER_ASSERT(reporter, kWidth % 48 == 0);
118 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
129 for (int x = 0; x < kWidth;
192 static const int kWidth = 8; local
[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),
H A DVkUploadPixelsTests.cpp57 const int kWidth = 16; local
59 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight);
60 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight);
62 fill_pixel_data(kWidth, kHeight, srcBuffer.get());
82 surfDesc.fWidth = kWidth;
89 gpu->readPixels(tex0, 0, 0, kWidth, kHeight, config, dstBuffer, 0);
93 kWidth,
97 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor));
114 gpu->readPixels(tex1, 0, 0, kWidth, kHeight, config, dstBuffer, 0);
118 kWidth,
[all...]
H A DARGBImageEncoderTest.cpp23 const int kWidth = 3; local
26 // kHeight rows, each with kWidth pixels, premultiplied ARGB for each pixel
39 bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight, gColorTypes[ctIndex],
46 canvas.drawIRect(SkIRect::MakeLTRB(0, 0, kWidth, 1), paint);
48 canvas.drawIRect(SkIRect::MakeLTRB(0, 1, kWidth, 2), paint);
H A DRectangleTextureTest.cpp141 static const int kWidth = 13; local
144 GrColor pixels[kWidth * kHeight];
146 for (int x = 0; x < kWidth; ++x) {
147 pixels[y * kWidth + x] = y * kWidth + x;
152 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA,
171 rectangleDesc.fWidth = kWidth;
176 GrColor refPixels[kWidth * kHeight];
179 for (int x = 0; x < kWidth; ++x) {
181 refPixels[y * kWidth
[all...]
H A DTextureStorageAllocator.cpp57 static const int kWidth = 13; local
70 context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0,
79 REPORTER_ASSERT(reporter, image->readPixels(imageInfo, &dest, 4 * kWidth, 0, 0));
87 REPORTER_ASSERT(reporter, image2->readPixels(imageInfo, &dest, 4 * kWidth, 0, 0));
92 static const int kWidth = 13; local
104 context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0,
/external/webrtc/webrtc/video/
H A Doveruse_frame_detector_unittest.cc21 const int kWidth = 640; member in namespace:webrtc::__anon21272
90 1000, kFrameInterval33ms, kWidth, kHeight, kDelayMs);
99 1300, kFrameInterval33ms, kWidth, kHeight, kDelayMs1);
101 1, kFrameInterval33ms, kWidth, kHeight, kDelayMs2);
155 1200, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms);
187 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms);
194 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms);
198 1, kFrameInterval33ms, kWidth, kHeight + 1, kProcessTime5ms);
205 1000, kFrameInterval33ms, kWidth, kHeight, kProcessTime5ms);
208 2, options_.frame_timeout_interval_ms, kWidth, kHeigh
[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/webrtc/talk/media/base/
H A Dvideoframe_unittest.h67 static const int kWidth = 1280; member in class:VideoFrameTest
80 kWidth, kHeight, frame);
545 CreateYuvSample(kWidth, kHeight, 12));
547 kWidth, kHeight, &frame));
550 const uint8_t* u = y + kWidth * kHeight;
551 const uint8_t* v = u + kWidth * kHeight / 4;
552 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u,
553 kWidth / 2, v, kWidth /
[all...]
/external/libvpx/libvpx/test/
H A Dactive_map_test.cc24 static const int kWidth = 208; member in class:__anon10908::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/opencv3/modules/cudafilters/src/cuda/
H A Dfilter2d.cu54 const int kWidth, const int kHeight,
70 for (int j = 0; j < kWidth; ++j)
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,
129 int kWidth, int kHeight, int anchorX, int anchorY, const float* borderValue, cudaStream_t stream);
140 kWidth, kHeight, anchorX, anchorY, borderValue, stream);
143 template void filter2D<uchar , uchar >(PtrStepSzb srcWhole, int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, int kHeight, int anchorX, int anchorY, int borderMode, const float* borderValue, cudaStream_t stream);
144 template void filter2D<uchar4 , uchar4 >(PtrStepSzb srcWhole, int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, int kHeight, int anchorX, int anchorY, int borderMode, const float* borderValue, cudaStream_t stream);
145 template void filter2D<ushort , ushort >(PtrStepSzb srcWhole, int ofsX, int ofsY, PtrStepSzb dst, const float* kernel, int kWidth, in
[all...]
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_memmgr_unittest.cpp15 const size_t kWidth = 640; member in namespace:__anon15914
16 const size_t kOverflowIntAlloc2D = kMaxIntAlloc / kWidth + 10;
41 EXPECT_DEATH_IF_SUPPORTED((void)FX_Alloc2D(int, kWidth, kOverflowIntAlloc2D),
/external/skia/bench/
H A DBitmapRectBench.cpp49 static const int kWidth = 128; member in class:BitmapRectBench
58 fBitmap.setInfo(SkImageInfo::MakeN32Premul(kWidth, kHeight));
76 fSrcR.iset(0, 0, kWidth, kHeight);
77 fDstR.iset(0, 0, kWidth, kHeight);
85 fDstR.fRight += SK_Scalar1 / (kWidth * 60);
H A DRectanizerBench.cpp30 static const int kWidth = 1024; member in class:RectanizerBench
79 fRectanizer.reset(new GrRectanizerPow2(kWidth, kHeight));
82 fRectanizer.reset(new GrRectanizerSkyline(kWidth, kHeight));
93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2),
96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)),

Completed in 2186 milliseconds

1234