Home
last modified time | relevance | path

Searched refs:rects (Results 1 – 25 of 86) sorted by relevance

1234

/external/skia/tests/
DGpuRectanizerTest.cpp35 const SkTDArray<SkISize>& rects) { in test_rectanizer_inserts() argument
37 for (i = 0; i < rects.count(); ++i) { in test_rectanizer_inserts()
39 if (!rectanizer->addRect(rects[i].fWidth, rects[i].fHeight, &loc)) { in test_rectanizer_inserts()
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() argument
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects); in test_skyline()
54 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2() argument
58 test_rectanizer_inserts(reporter, &pow2Rectanizer, rects); in test_pow2()
62 SkTDArray<SkISize> rects; in DEF_GPUTEST() local
66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
70 test_skyline(reporter, rects); in DEF_GPUTEST()
[all …]
DRTreeTest.cpp28 static bool verify_query(SkRect query, SkRect rects[], SkTDArray<int>& found) { in verify_query() argument
32 if (SkRect::Intersects(query, rects[i])) { in verify_query()
46 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, SkRect rects[], in run_queries() argument
52 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); in run_queries()
74 SkAutoTMalloc<SkRect> rects(NUM_RECTS); in DEF_TEST() local
80 rects[j] = random_rect(rand); in DEF_TEST()
83 rtree.insert(rects.get(), NUM_RECTS); in DEF_TEST()
84 SkASSERT(rects); // SkRTree doesn't take ownership of rects. in DEF_TEST()
86 run_queries(reporter, rand, rects, rtree); in DEF_TEST()
DFlattenableFactoryToName.cpp27 SkIRect rects[2]; in DEF_TEST() local
28 rects[0] = SkIRect::MakeXYWH(0, 150, 500, 200); in DEF_TEST()
29 rects[1] = SkIRect::MakeXYWH(150, 0, 200, 500); in DEF_TEST()
31 region.setRects(rects, 2); in DEF_TEST()
DMaskCacheTest.cpp75 SkRect rects[2] = {rect}; in DEF_TEST() local
80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
89 SkMaskCache::Add(sigma, style, quality, rects, 1, mask, data, &cache); in DEF_TEST()
96 data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
/external/opencv3/samples/python2/
Dfacedetect.py15rects = cascade.detectMultiScale(img, scaleFactor=1.3, minNeighbors=4, minSize=(30, 30), flags = c…
16 if len(rects) == 0:
18 rects[:,2:] += rects[:,:2]
19 return rects
21 def draw_rects(img, rects, color): argument
22 for x1, y1, x2, y2 in rects:
49 rects = detect(gray, cascade) variable
51 draw_rects(vis, rects, (0, 255, 0))
53 for x1, y1, x2, y2 in rects:
Dpeopledetect.py17 def draw_detections(img, rects, thickness = 1): argument
18 for x, y, w, h in rects:
/external/libdrm/tests/
Dupdatedraw.c66 drm_clip_rect_t rects[2]; in set_draw_cliprects_2() local
68 rects[0].x1 = 0; in set_draw_cliprects_2()
69 rects[0].y1 = 0; in set_draw_cliprects_2()
70 rects[0].x2 = 10; in set_draw_cliprects_2()
71 rects[0].y2 = 10; in set_draw_cliprects_2()
73 rects[1].x1 = 10; in set_draw_cliprects_2()
74 rects[1].y1 = 10; in set_draw_cliprects_2()
75 rects[1].x2 = 20; in set_draw_cliprects_2()
76 rects[1].y2 = 20; in set_draw_cliprects_2()
81 update.data = (unsigned long long)(uintptr_t)&rects; in set_draw_cliprects_2()
/external/skia/src/core/
DSkMaskCache.cpp105 const SkRect rects[], int count) in RectsBlurKey()
112 rects[0].roundOut(&ir); in RectsBlurKey()
116 fSizes[3] = SkSize::Make(rects[0].x() - ir.x(), rects[0].y() - ir.y()); in RectsBlurKey()
118 fSizes[i] = SkSize::Make(rects[i].width(), rects[i].height()); in RectsBlurKey()
121 fSizes[2] = SkSize::Make(rects[0].x() - rects[1].x(), rects[0].y() - rects[1].y()); in RectsBlurKey()
173 const SkRect rects[], int count, SkMask* mask, in FindAndRef() argument
176 RectsBlurKey key(sigma, style, quality, rects, count); in FindAndRef()
187 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, in Add() argument
189 RectsBlurKey key(sigma, style, quality, rects, count); in Add()
DSkMaskCache.h30 const SkRect rects[], int count, SkMask* mask,
40 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
DSkMaskFilter.cpp210 static int countNestedRects(const SkPath& path, SkRect rects[2]) { in countNestedRects()
211 if (path.isNestedFillRects(rects)) { in countNestedRects()
214 return path.isRect(&rects[0]); in countNestedRects()
238 SkRect rects[2]; in filterPath() local
241 rectCount = countNestedRects(devPath, rects); in filterPath()
246 switch (this->filterRectsToNine(rects, rectCount, matrix, clip.getBounds(), &patch)) { in filterPath()
/external/skia/src/gpu/batches/
DGrRectBatchFactory.cpp18 const SkRect rects[2]) { in CreateAAFillNestedRects()
20 SkASSERT(!rects[0].isEmpty() && !rects[1].isEmpty()); in CreateAAFillNestedRects()
23 viewMatrix.mapRect(&devOutside, rects[0]); in CreateAAFillNestedRects()
24 viewMatrix.mapRect(&devInside, rects[1]); in CreateAAFillNestedRects()
DGrDrawAtlasBatch.h25 int spriteCount, const SkRSXform* xforms, const SkRect* rects, in Create() argument
27 return new GrDrawAtlasBatch(geometry, viewMatrix, spriteCount, xforms, rects, colors); in Create()
52 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors);
/external/skia/bench/
DRTreeBench.cpp39 SkAutoTMalloc<SkRect> rects(NUM_BUILD_RECTS); in onDraw() local
41 rects[i] = fProc(rand, i, NUM_BUILD_RECTS); in onDraw()
46 tree.insert(rects.get(), NUM_BUILD_RECTS); in onDraw()
47 … SkASSERT(rects != nullptr); // It'd break this bench if the tree took ownership of rects. in onDraw()
72 SkAutoTMalloc<SkRect> rects(NUM_QUERY_RECTS); in onDelayedSetup() local
74 rects[i] = fProc(rand, i, NUM_QUERY_RECTS); in onDelayedSetup()
76 fTree.insert(rects.get(), NUM_QUERY_RECTS); in onDelayedSetup()
/external/pdfium/core/src/fxcrt/
Dfx_basic_coords.cpp115 CFX_FloatRect rects[4]; in Substract4() local
117 rects[nRects].left = left; in Substract4()
118 rects[nRects].right = s.left; in Substract4()
119 rects[nRects].bottom = bottom; in Substract4()
120 rects[nRects].top = top; in Substract4()
124 rects[nRects].left = s.left; in Substract4()
125 rects[nRects].right = right; in Substract4()
126 rects[nRects].bottom = s.top; in Substract4()
127 rects[nRects].top = top; in Substract4()
131 rects[nRects].left = s.right; in Substract4()
[all …]
/external/skia/gm/
Dimagealphathreshold.cpp31 SkIRect rects[2]; in create_filter_paint() local
32 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
33 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
35 region.setRects(rects, 2); in create_filter_paint()
Ddrawatlascolor.cpp126 SkRect rects[numColors]; in onDraw() local
134 rects[i] = target; in onDraw()
154 canvas->drawAtlas(fAtlas, xforms, rects, quadColors, numColors, in onDraw()
158 canvas->drawAtlas(fAtlas, xforms, rects, quadColors, numColors, in onDraw()
/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_region_unittest.cc26 const DesktopRect rects[], int rects_size) { in CompareRegion() argument
31 EXPECT_TRUE(it.rect().equals(rects[i])) in CompareRegion()
34 << rects[i].left() << "-" << rects[i].right() << "." in CompareRegion()
35 << rects[i].top() << "-" << rects[i].bottom(); in CompareRegion()
69 DesktopRect rects[4]; in TEST() member
95 r.AddRect(cases[i].rects[j]); in TEST()
97 CompareRegion(r, cases[i].rects, cases[i].count); in TEST()
104 r.AddRect(cases[i].rects[j]); in TEST()
106 CompareRegion(r, cases[i].rects, cases[i].count); in TEST()
316 DesktopRect rects[4]; in TEST() member
[all …]
Dscreen_capturer_x11.cc332 XRectangle* rects = XFixesFetchRegionAndBounds(display(), damage_region_, in CaptureScreen() local
336 rects[i].x, rects[i].y, rects[i].width, rects[i].height)); in CaptureScreen()
338 XFree(rects); in CaptureScreen()
/external/skia/src/effects/
DSkBlurMaskFilter.cpp229 static bool draw_rects_into_mask(const SkRect rects[], int count, SkMask* mask) { in draw_rects_into_mask() argument
230 if (!prepare_to_draw_into_mask(rects[0], mask)) { in draw_rects_into_mask()
249 canvas.drawRect(rects[0], paint); in draw_rects_into_mask()
253 path.addRect(rects[0]); in draw_rects_into_mask()
254 path.addRect(rects[1]); in draw_rects_into_mask()
294 SkBlurQuality quality, const SkRect rects[], int count) { in find_cached_rects() argument
295 return SkMaskCache::FindAndRef(sigma, style, quality, rects, count, mask); in find_cached_rects()
299 SkBlurQuality quality, const SkRect rects[], int count) { in add_cached_rects() argument
302 SkMaskCache::Add(sigma, style, quality, rects, count, *mask, cache); in add_cached_rects()
450 SkBlurMaskFilterImpl::filterRectsToNine(const SkRect rects[], int count, in filterRectsToNine() argument
[all …]
/external/opencv3/modules/cudalegacy/src/
DNCV.cpp747 std::vector<cv::Rect> rects(hypotheses.size()); in groupRectangles()
748 std::transform(hypotheses.begin(), hypotheses.end(), rects.begin(), RectConvert()); in groupRectangles()
754 cv::groupRectangles(rects, weights_int, groupThreshold, eps); in groupRectangles()
758 cv::groupRectangles(rects, groupThreshold, eps); in groupRectangles()
760 std::transform(rects.begin(), rects.end(), hypotheses.begin(), RectConvert()); in groupRectangles()
761 hypotheses.resize(rects.size()); in groupRectangles()
786 std::vector<NcvRect32u> rects(numHypotheses); in ncvGroupRectangles_host() local
787 memcpy(&rects[0], hypotheses.ptr(), numHypotheses * sizeof(NcvRect32u)); in ncvGroupRectangles_host()
792 groupRectangles(rects, minNeighbors, intersectEps, &weights); in ncvGroupRectangles_host()
796 groupRectangles(rects, minNeighbors, intersectEps, NULL); in ncvGroupRectangles_host()
[all …]
/external/skia/samplecode/
DSampleMeasure.cpp44 SkRect* rects = autoRects.get(); in doMeasure() local
52 int n = p.getTextWidths(text, len, widths, rects); in doMeasure()
66 SkRect r = rects[j]; in doMeasure()
/external/deqp/modules/gles31/functional/
Des31fStencilTexturingTests.cpp67 static void genTestRects (vector<IVec4>& rects, int width, int height) in genTestRects() argument
75 rects.push_back(IVec4(width-curWidth, height-curHeight, curWidth, curHeight)); in genTestRects()
89 static void rectsToTriangles (const vector<IVec4>& rects, int width, int height, vector<Vec2>& posi… in rectsToTriangles() argument
94 positions.resize(rects.size()*4); in rectsToTriangles()
95 indices.resize(rects.size()*6); in rectsToTriangles()
97 for (int rectNdx = 0; rectNdx < (int)rects.size(); rectNdx++) in rectsToTriangles()
99 const int rx = rects[rectNdx].x(); in rectsToTriangles()
100 const int ry = rects[rectNdx].y(); in rectsToTriangles()
101 const int rw = rects[rectNdx].z(); in rectsToTriangles()
102 const int rh = rects[rectNdx].w(); in rectsToTriangles()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DPixmapPackerIO.java64 if (page.rects.size > 0) { in save()
82 for (String name : page.rects.keys()) { in save()
84 Rectangle rect = page.rects.get(name); in save()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/
DImagePacker.java88 Map<String, Rectangle> rects; field in ImagePacker
105 this.rects = new HashMap<String, Rectangle>(); in ImagePacker()
117 …if (rects.containsKey(name)) throw new RuntimeException("Key with name '" + name + "' is already i… in insertImage()
133 rects.put(name, rect); in insertImage()
215 return rects; in getRects()
/external/mesa3d/src/gallium/state_trackers/egl/x11/
Dx11_screen.c353 int num_rects, const int *rects, in x11_drawable_copy_buffers_region() argument
360 rectangles[i].x = rects[i * 4 + 0]; in x11_drawable_copy_buffers_region()
361 rectangles[i].y = rects[i * 4 + 1]; in x11_drawable_copy_buffers_region()
362 rectangles[i].width = rects[i * 4 + 2]; in x11_drawable_copy_buffers_region()
363 rectangles[i].height = rects[i * 4 + 3]; in x11_drawable_copy_buffers_region()

1234