Home
last modified time | relevance | path

Searched refs:kWidth (Results 1 – 25 of 167) sorted by relevance

1234567

/external/libyuv/files/unit_test/
Dconvert_test.cc36 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
39 align_buffer_page_end(src_u, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
42 align_buffer_page_end(src_v, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
45 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
46 align_buffer_page_end(dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
48 align_buffer_page_end(dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
50 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
51 align_buffer_page_end(dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
53 align_buffer_page_end(dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
[all …]
Dcolor_test.cc145 const int kWidth = 16; in YUVToRGB() local
147 const int kPixels = kWidth * kHeight; in YUVToRGB()
148 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVToRGB()
159 I422ToARGB(orig_y, kWidth, orig_u, (kWidth + 1) / 2, orig_v, (kWidth + 1) / 2, in YUVToRGB()
160 orig_pixels, kWidth * 4, kWidth, kHeight); in YUVToRGB()
168 const int kWidth = 16; in YUVJToRGB() local
170 const int kPixels = kWidth * kHeight; in YUVJToRGB()
171 const int kHalfPixels = ((kWidth + 1) / 2) * ((kHeight + 1) / 2); in YUVJToRGB()
182 J422ToARGB(orig_y, kWidth, orig_u, (kWidth + 1) / 2, orig_v, (kWidth + 1) / 2, in YUVJToRGB()
183 orig_pixels, kWidth * 4, kWidth, kHeight); in YUVJToRGB()
[all …]
/external/webrtc/talk/session/media/
Dplanarfunctions_unittest.cc62 static const int kWidth = 1280; variable
501 int y_pitch = kWidth; in TEST_F()
502 int u_pitch = (kWidth + 1) >> 1; in TEST_F()
503 int v_pitch = (kWidth + 1) >> 1; in TEST_F()
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()
[all …]
/external/skqp/tests/
DDeviceTest.cpp42 static const int kWidth = 100;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
55 SkASSERT(kWidth == special->width());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
64 SkASSERT(kWidth == special->width());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
72 SkASSERT(2*kWidth == special->width());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
82 static const int kWidth = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DGrUploadPixelsTests.cpp24 const int kWidth = 16; in basic_texture_test() local
26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test()
27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test()
29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test()
31 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test()
37 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
43 kWidth, in basic_texture_test()
50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
61 proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test()
67 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
[all …]
DGrTestingBackendTextureUploadTest.cpp19 const int kWidth = 16; in testing_only_texture_test() local
23 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test()
24 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in testing_only_texture_test()
26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test()
39 kWidth, in testing_only_texture_test()
58 int rowBytes = GrColorTypeBytesPerPixel(ct) * kWidth; in testing_only_texture_test()
59 bool result = gpu->readPixels(wrappedTex.get(), 0, 0, kWidth, in testing_only_texture_test()
65 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test()
66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test()
70 kWidth, kHeight)); in testing_only_texture_test()
DRectangleTextureTest.cpp98 static const int kWidth = 13; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
101 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
103 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
104 pixels[y * kWidth + x] = y * kWidth + x; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
111 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
127 GrBackendTexture rectangleTex(kWidth, kHeight, GrMipMapped::kNo, rectangleInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
130 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
134 refPixels[y * kWidth + x] = pixels[y0 * kWidth + x]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPromiseImageTest.cpp137 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
145 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
155 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
165 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
294 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
301 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
311 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
321 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
417 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
424 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/skia/tests/
DDeviceTest.cpp42 static const int kWidth = 100;
45 SkImageInfo ii = SkImageInfo::MakeN32Premul(2*kWidth, 2*kHeight);
50 bm.tryAllocN32Pixels(kWidth, kHeight);
55 SkASSERT(kWidth == special->width());
58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
64 SkASSERT(kWidth == special->width());
67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
72 SkASSERT(2*kWidth == special->width());
74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
82 static const int kWidth = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DGrUploadPixelsTests.cpp24 const int kWidth = 16; in basic_texture_test() local
26 SkAutoTMalloc<GrColor> srcBuffer(kWidth*kHeight); in basic_texture_test()
27 SkAutoTMalloc<GrColor> dstBuffer(kWidth*kHeight); in basic_texture_test()
29 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in basic_texture_test()
31 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test()
37 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
43 kWidth, in basic_texture_test()
50 memset(dstBuffer, 0, kWidth*kHeight*sizeof(GrColor)); in basic_texture_test()
61 proxy = sk_gpu_test::MakeTextureProxyFromData(context, renderTarget, kWidth, kHeight, ct, in basic_texture_test()
67 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test()
[all …]
DGrTestingBackendTextureUploadTest.cpp19 const int kWidth = 16; in testing_only_texture_test() local
23 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test()
24 fill_pixel_data(kWidth, kHeight, srcBuffer.get()); in testing_only_texture_test()
26 SkAutoTMalloc<GrColor> dstBuffer(kWidth * kHeight); in testing_only_texture_test()
39 kWidth, in testing_only_texture_test()
58 int rowBytes = GrColorTypeBytesPerPixel(ct) * kWidth; in testing_only_texture_test()
59 bool result = gpu->readPixels(wrappedTex.get(), 0, 0, kWidth, in testing_only_texture_test()
65 srcBuffer.reset(kWidth * kHeight); in testing_only_texture_test()
66 memset(srcBuffer, 0, kWidth * kHeight * sizeof(GrColor)); in testing_only_texture_test()
70 kWidth, kHeight)); in testing_only_texture_test()
DRectangleTextureTest.cpp98 static const int kWidth = 13; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
101 GrColor pixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
103 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
104 pixels[y * kWidth + x] = y * kWidth + x; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
111 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
127 GrBackendTexture rectangleTex(kWidth, kHeight, GrMipMapped::kNo, rectangleInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
130 GrColor refPixels[kWidth * kHeight]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 for (int x = 0; x < kWidth; ++x) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
134 refPixels[y * kWidth + x] = pixels[y0 * kWidth + x]; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPromiseImageTest.cpp129 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
136 nullptr, kWidth, kHeight, GrColorType::kRGBA_8888, true, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
146 ctx, backendFormat, kWidth, kHeight, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
155 SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
253 const int kWidth = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
260 nullptr, kWidth, kHeight, GrColorType::kGray_8, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
264 nullptr, kWidth, kHeight, GrColorType::kAlpha_8, false, GrMipMapped::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
274 SkImageInfo::Make(kWidth, kHeight, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
280 ctx, backendTex1.getBackendFormat(), kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
287 ctx, backendTex1.getBackendFormat(), kWidth, kHeight, GrMipMapped::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/webrtc/talk/media/base/
Dvideoframe_unittest.h67 static const int kWidth = 1280;
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()
553 kWidth / 2, v, kWidth / 2, 0)); in ConstructI420()
560 CreateYuvSample(kWidth, kHeight, 12)); in ConstructYV12()
562 kWidth, kHeight, &frame)); in ConstructYV12()
[all …]
/external/webrtc/webrtc/video/
Doveruse_frame_detector_unittest.cc21 const int kWidth = 640; 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/webrtc/test/testsupport/metrics/
Dvideo_metrics_unittest.cc18 static const int kWidth = 352; 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/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()
35 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw()
43 kWidth, kHeight, in onOnceBeforeDraw()
44 kWidth, 0); in onOnceBeforeDraw()
53 kWidth, yPos); in onOnceBeforeDraw()
59 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
66 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw()
85 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
Drectangletexture.cpp122 constexpr int kWidth = 50; in onDraw() local
126 SkPMColor pixels[kWidth * kHeight]; in onDraw()
127 this->fillPixels(kWidth, kHeight, pixels); in onDraw()
130 this->createRectangleTextureImg(context, kTopLeft_GrSurfaceOrigin, kWidth, kHeight, in onDraw()
132 this->createRectangleTextureImg(context, kBottomLeft_GrSurfaceOrigin, kWidth, in onDraw()
160 canvas->translate(kWidth + kPad, 0); in onDraw()
166 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), clampPaint); in onDraw()
167 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw()
174 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), repeatPaint); in onDraw()
175 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw()
[all …]
Dstringart.cpp16 constexpr int kWidth = 440; variable
35 return SkISize::Make(kWidth, kHeight); in onISize()
40 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight)); in onDraw()
41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
94 kWidth = 800,
119 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
127 SkScalar x = rand.nextF() * kWidth;
/external/skqp/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()
35 degenBigQuad->quadTo(0, yPos, kWidth, yPos); in onOnceBeforeDraw()
43 kWidth, kHeight, in onOnceBeforeDraw()
44 kWidth, 0); in onOnceBeforeDraw()
53 kWidth, yPos); in onOnceBeforeDraw()
59 bigConic->conicTo(kWidth/2, kHeight, kWidth, 0, .5); in onOnceBeforeDraw()
66 degenBigConic->conicTo(0, yPos, kWidth, yPos, .5); in onOnceBeforeDraw()
85 const SkScalar kWidth = 256; member in skiagm::StLouisArchGM
Drectangletexture.cpp133 constexpr int kWidth = 50; in onDraw() local
137 SkPMColor pixels[kWidth * kHeight]; in onDraw()
138 this->fillPixels(kWidth, kHeight, pixels); in onDraw()
141 this->createRectangleTextureImg(context, kTopLeft_GrSurfaceOrigin, kWidth, kHeight, in onDraw()
143 this->createRectangleTextureImg(context, kBottomLeft_GrSurfaceOrigin, kWidth, in onDraw()
173 canvas->translate(kWidth + kPad, 0); in onDraw()
179 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), clampPaint); in onDraw()
180 canvas->translate(kWidth * 1.5f + kPad, 0); in onDraw()
187 canvas->drawRect(SkRect::MakeWH(1.5f * kWidth, 1.5f * kHeight), repeatPaint); in onDraw()
188 canvas->translate(1.5f * kWidth + kPad, 0); in onDraw()
[all …]
Dstringart.cpp16 constexpr int kWidth = 440; variable
35 return SkISize::Make(kWidth, kHeight); in onISize()
40 SkScalar size = SkIntToScalar(SkMin32(kWidth, kHeight)); in onDraw()
41 SkPoint center = SkPoint::Make(SkScalarHalf(kWidth), SkScalarHalf(kHeight)); in onDraw()
94 kWidth = 800,
119 SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
127 SkScalar x = rand.nextF() * kWidth;
/external/libaom/libaom/test/
Dnoise_model_test.cc511 static const int kWidth = 128; member in NoiseModelUpdateTest
514 static const int kNumBlocksX = kWidth / kBlockSize;
524 data_.resize(kWidth * kHeight * 3); in SetUp()
525 denoised_.resize(kWidth * kHeight * 3); in SetUp()
526 noise_.resize(kWidth * kHeight * 3); in SetUp()
527 renoise_.resize(kWidth * kHeight); in SetUp()
530 for (int c = 0, offset = 0; c < 3; ++c, offset += kWidth * kHeight) { in SetUp()
534 strides_[c] = kWidth; in SetUp()
545 kWidth, kHeight, strides_, chroma_sub_, in NoiseModelUpdate()
597 const int kWidth = this->kWidth; in TYPED_TEST_P() local
[all …]
/external/gemmlowp/internal/
Dkernel.h129 static const int kWidth = tWidth; member
133 static const int kSize = kWidth * kDepth;
146 static const int kWidth = kCells * Cell::kWidth; member
165 static const int kRows = Lhs::Cell::kWidth * Lhs::kCells;
166 static const int kCols = Rhs::Cell::kWidth * Rhs::kCells;
186 const int size = CellFormat::kWidth; in OffsetIntoCell()
189 return w + d * CellFormat::kWidth; in OffsetIntoCell()
193 assert(CellFormat::kWidth == CellFormat::kDepth); in OffsetIntoCell()
Dkernel_reference.h40 Format::Lhs::kCells, Format::Lhs::Cell::kWidth, in Name()
43 Format::Rhs::Cell::kDepth, Format::Rhs::Cell::kWidth, in Name()
64 Format::Lhs::Cell::kWidth * Format::kDepth; in Run()
68 Format::Rhs::Cell::kWidth * Format::kDepth; in Run()
74 for (int ri = 0; ri < Format::Lhs::Cell::kWidth; ri++) { in Run()
75 for (int ci = 0; ci < Format::Rhs::Cell::kWidth; ci++) { in Run()
83 accumulator + (ri + rc * Format::Lhs::Cell::kWidth) + in Run()
84 (ci + cc * Format::Rhs::Cell::kWidth) * Format::kRows; in Run()

1234567