Home
last modified time | relevance | path

Searched refs:boxes (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/third_party/flutter/engine/flutter/third_party/txt/tests/
Dparagraph_unittests.cc147 std::vector<txt::Paragraph::TextBox> boxes = in TEST_F() local
149 for (size_t i = 0; i < boxes.size(); ++i) { in TEST_F()
150 GetCanvas()->drawRect(boxes[i].rect, paint); in TEST_F()
153 EXPECT_EQ(boxes.size(), 1ull); in TEST_F()
156 boxes = in TEST_F()
158 for (size_t i = 0; i < boxes.size(); ++i) { in TEST_F()
159 GetCanvas()->drawRect(boxes[i].rect, paint); in TEST_F()
161 EXPECT_EQ(boxes.size(), 1ull); in TEST_F()
164 boxes = paragraph->GetRectsForPlaceholders(); in TEST_F()
165 for (size_t i = 0; i < boxes.size(); ++i) { in TEST_F()
[all …]
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp298 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
299 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
300 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
302 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
303 canvas.drawRects(SK_ColorGREEN, boxes); in UNIX_ONLY_TEST()
304 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
306 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
307 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
309 boxes = paragraph->getRectsForRange(4, 17, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
310 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dmediancut.c279 best_splittable_box (struct box *bv, unsigned int boxes, const double max_mse) in best_splittable_box() argument
285 for (i = 0; i < boxes; i++) { in best_splittable_box()
319 unsigned int boxes, hist_item * achv);
321 const struct box *bv, unsigned int boxes);
342 unsigned int boxes, const histogram * hist) in total_box_error_below_target() argument
349 for (i = 0; i < boxes; i++) { in total_box_error_below_target()
358 for (i = 0; i < boxes; i++) { in total_box_error_below_target()
382 unsigned int i, boxes, subset_size; in mediancut() local
401 boxes = 1; in mediancut()
409 while (boxes < newcolors) { in mediancut()
[all …]
/third_party/node/deps/npm/node_modules/cli-boxes/
Dreadme.md1 # cli-boxes [![Build Status](https://travis-ci.org/sindresorhus/cli-boxes.svg?branch=master)](https…
5 The list of boxes is just a [JSON file](boxes.json) and can be used wherever.
11 $ npm install --save cli-boxes
18 const cliBoxes = require('cli-boxes');
89 - [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal
/third_party/flutter/skia/tests/
DSkParagraphTest.cpp480 …std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style… in DEF_TEST() local
481 canvas.drawRects(SK_ColorRED, boxes); in DEF_TEST()
482 REPORTER_ASSERT(reporter, boxes.size() == 0ull); in DEF_TEST()
484 boxes = paragraph->getRectsForRange(0, 40, rect_height_style, rect_width_style); in DEF_TEST()
485 canvas.drawRects(SK_ColorBLUE, boxes); in DEF_TEST()
486 REPORTER_ASSERT(reporter, boxes.size() == 3ull); in DEF_TEST()
488 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.left(), 0, EPSILON100)); in DEF_TEST()
489 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.top(), 92.805f, EPSILON5)); in DEF_TEST()
490 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.right(), 43.843f, EPSILON100)); in DEF_TEST()
491 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(boxes[1].rect.bottom(), 165.495f, EPSILON5)); in DEF_TEST()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Ddetection_post_process_infer.c27 const TensorC *boxes = inputs[0]; in DetectionPostProcessInferShape() local
30 if (boxes->shape_size_ < 2 || scores->shape_size_ < 3 || anchors->shape_size_ < 1) { in DetectionPostProcessInferShape()
41 if (boxes->shape_[1] != scores->shape_[1]) { in DetectionPostProcessInferShape()
44 if (boxes->shape_[1] != anchors->shape_[0]) { in DetectionPostProcessInferShape()
53 detected_boxes->format_ = boxes->format_; in DetectionPostProcessInferShape()
55 detected_classes->format_ = boxes->format_; in DetectionPostProcessInferShape()
57 detected_scores->format_ = boxes->format_; in DetectionPostProcessInferShape()
59 num_det->format_ = boxes->format_; in DetectionPostProcessInferShape()
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dparagraph_test.dart60 List<ui.TextBox> boxes = paragraph.getBoxesForSelection(
64 expect(boxes.length, equals(1));
66 boxes = paragraph.getBoxesForSelection(
70 expect(boxes.any((ui.TextBox box) => box.left == 250 && box.top == 0), isTrue);
71 expect(boxes.any((ui.TextBox box) => box.right == 100 && box.top == 10), isTrue);
264 final List<ui.TextBox> boxes = <ui.TextBox>[
270 expect(boxes.length, equals(4));
275 expect(boxes[0].toRect().width, anyOf(14.0, 13.0));
276 expect(boxes[0].toRect().height, closeTo(13.0, 0.0001));
277 expect(boxes[1].toRect().width, anyOf(27.0, 26.0));
[all …]
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Ddetection_post_process_int8_coder.cc37 Tensor *boxes = input_tensors_.at(0); in GetInputData() local
38 MS_CHECK_PTR(boxes); in GetInputData()
39 lite::LiteQuantParam boxes_quant_param = boxes->quant_params().front(); in GetInputData()
43 MS_CHECK_TRUE(boxes->data_type() == kNumberTypeInt8, "Input data type error"); in GetInputData()
53 code->CodeFunction("DoDequantizeInt8ToFp32", boxes, input_boxes_, boxes_quant_param.scale, in GetInputData()
54 boxes_quant_param.zeroPoint, boxes->ElementsNum()); in GetInputData()
/third_party/boost/libs/geometry/doc/index/src/examples/rtree/
Dvalue_index.cpp49 std::vector<box> boxes; in main() local
55 boxes.push_back(box(point(i+0.0f, i+0.0f), point(i+0.5f, i+0.5f))); in main()
60 BOOST_FOREACH(box const& b, boxes) in main()
65 indexable_getter ind(boxes); in main()
69 for ( size_t i = 0 ; i < boxes.size() ; ++i ) in main()
88 std::cout << bg::wkt<box>(boxes[i]) << std::endl; in main()
94 std::cout << bg::wkt<box>(boxes[i]) << std::endl; in main()
Drange_adaptors.cpp60 container boxes; in main() local
65 boxes.push_back(b); in main()
70 rtree(boxes | boost::adaptors::indexed() in main()
74 std::cout << rtree.count(boxes[0]) << std::endl; in main()
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_context.c102 int to_surface, struct xa_box *boxes, unsigned int num_boxes) in xa_surface_dma() argument
113 for (i = 0; i < num_boxes; ++i, ++boxes) { in xa_surface_dma()
114 w = boxes->x2 - boxes->x1; in xa_surface_dma()
115 h = boxes->y2 - boxes->y1; in xa_surface_dma()
118 transfer_direction, boxes->x1, boxes->y1, in xa_surface_dma()
125 0, 0, w, h, data, pitch, boxes->x1, boxes->y1); in xa_surface_dma()
128 boxes->x1, boxes->y1, w, h, map, transfer->stride, 0, in xa_surface_dma()
/third_party/boost/libs/geometry/test/algorithms/detail/
Dpartition.cpp151 std::vector<sample> boxes; in test_boxes() local
156 boxes.push_back(sample(index++, wkt)); in test_boxes()
163 >::apply(boxes, visitor, get_box(), ovelaps_box(), 1); in test_boxes()
443 std::vector<box_item<box_type> > boxes; in test_many_boxes() local
445 fill_boxes(boxes, seed, size, count); in test_many_boxes()
450 BOOST_FOREACH(box_item<box_type> const& item1, boxes) in test_many_boxes()
452 BOOST_FOREACH(box_item<box_type> const& item2, boxes) in test_many_boxes()
481 BOOST_FOREACH(box_item<box_type> const& item, boxes) in test_many_boxes()
500 >::apply(boxes, visitor, get_box(), ovelaps_box(), in test_many_boxes()
580 std::vector<box_item<box_type> > boxes; in test_heterogenuous_collections() local
[all …]
/third_party/mindspore/tests/st/ops/ascend/test_aicpu_ops/
Dtest_crop_and_reszie.py33 def construct(self, x, boxes, box_index): argument
34 return self.crop_and_resize(x, boxes, box_index, self.crop_size)
44 boxes = np.random.uniform(size=[num_boxes, 4]).astype(np.float32)
48 output = net(Tensor(image), Tensor(boxes), Tensor(box_index))
/third_party/boost/boost/geometry/algorithms/detail/within/
Dmulti_point.hpp189 box_pair_vector boxes(count2); in apply() local
192 geometry::envelope(linear_or_areal, boxes[i].first, envelope_strategy); in apply()
193 geometry::detail::expand_by_epsilon(boxes[i].first); in apply()
194 boxes[i].second = i; in apply()
207 rtree(boxes.begin(), boxes.end(), in apply()
/third_party/flutter/engine/flutter/lib/ui/text/
Dparagraph.cc94 std::vector<txt::Paragraph::TextBox> boxes = m_paragraph->GetRectsForRange( in getRectsForRange() local
97 for (const txt::Paragraph::TextBox& box : boxes) { in getRectsForRange()
105 std::vector<txt::Paragraph::TextBox> boxes = in getRectsForPlaceholders() local
107 for (const txt::Paragraph::TextBox& box : boxes) { in getRectsForPlaceholders()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dcrop_and_resize_fp32.cc127 auto boxes = reinterpret_cast<float *>(in_tensors_.at(kBoxIndex)->data()); in RunImpl() local
128 CHECK_NULL_RETURN(boxes); in RunImpl()
143 …auto ret = CropAndResizeBilinear(input_data, output_data, box_idx, boxes, param_, input_shape.data… in RunImpl()
158 auto boxes = reinterpret_cast<float *>(in_tensors_.at(1)->data()); in Run() local
163 …ret = PrepareCropAndResizeBilinear(input_shape.data(), boxes, box_idx, output_shape.data(), y_bott… in Run()
/third_party/boost/boost/geometry/algorithms/detail/relate/
Dmulti_point_geometry.hpp378 std::vector<box_pair_type> const& boxes, in apply() argument
409 >::apply(multi_point, boxes, visitor, in apply()
435 std::vector<box_pair_type> const& boxes, in apply()
453 rtree(boxes.begin(), boxes.end(), in apply()
530 std::vector<box_pair_type> boxes(count2); in apply() local
533 geometry::envelope(range::at(multi_geometry, i), boxes[i].first, envelope_strategy); in apply()
534 geometry::detail::expand_by_epsilon(boxes[i].first); in apply()
535 boxes[i].second = i; in apply()
549 ::apply(multi_point, multi_geometry, boxes, tc, result, strategy); in apply()
554 ::apply(multi_point, multi_geometry, boxes, tc, result, strategy); in apply()
/third_party/ffmpeg/libavfilter/
Dvf_palettegen.c75 …struct range_box boxes[256]; // define the segmentation of the colorspace (the final pa… member
158 struct range_box *box = &s->boxes[box_id]; in get_next_box_id_to_split()
160 if (s->boxes[box_id].len >= 2) { in get_next_box_id_to_split()
214 struct range_box *new_box = &s->boxes[s->nb_boxes++]; in split_box()
243 pal[x] = s->boxes[box_id++].color; in write_palette()
319 box = &s->boxes[box_id]; in get_palette_frame()
378 box = box_id >= 0 ? &s->boxes[box_id] : NULL; in get_palette_frame()
385 qsort(s->boxes, s->nb_boxes, sizeof(*s->boxes), cmp_color); in get_palette_frame()
505 memset(s->boxes, 0, sizeof(s->boxes)); in filter_frame()
/third_party/pixman/pixman/
Dpixman.c843 pixman_box32_t *boxes; in pixman_image_fill_rectangles() local
849 boxes = pixman_malloc_ab (sizeof (pixman_box32_t), n_rects); in pixman_image_fill_rectangles()
850 if (boxes == NULL) in pixman_image_fill_rectangles()
855 boxes = stack_boxes; in pixman_image_fill_rectangles()
860 boxes[i].x1 = rects[i].x; in pixman_image_fill_rectangles()
861 boxes[i].y1 = rects[i].y; in pixman_image_fill_rectangles()
862 boxes[i].x2 = boxes[i].x1 + rects[i].width; in pixman_image_fill_rectangles()
863 boxes[i].y2 = boxes[i].y1 + rects[i].height; in pixman_image_fill_rectangles()
866 result = pixman_image_fill_boxes (op, dest, color, n_rects, boxes); in pixman_image_fill_rectangles()
868 if (boxes != stack_boxes) in pixman_image_fill_rectangles()
[all …]
/third_party/python/Doc/library/
Dtkinter.messagebox.rst14 boxes are modal and will return a subset of (True, False, OK, None, Yes, No) based on
28 **Warning message boxes**
33 **Question message boxes**
/third_party/flutter/engine/flutter/third_party/txt/src/skia/
Dparagraph_skia.cc76 std::vector<Paragraph::TextBox> boxes; in GetRectsForRange() local
78 boxes.emplace_back(skia_box.rect, in GetRectsForRange()
82 return boxes; in GetRectsForRange()
/third_party/node/deps/npm/docs/src/components/home/
DFooter.js2 import boxes from '../../images/background-boxes.svg'
7 background: center / cover no-repeat url(${boxes});
/third_party/skia/modules/canvaskit/
Dparagraph_bindings.cpp258 Float32Array TextBoxesToFloat32Array(std::vector<para::TextBox> boxes) { in TextBoxesToFloat32Array() argument
260 if (!boxes.size()) { in TextBoxesToFloat32Array()
263 SimpleTextBox* rects = new SimpleTextBox[boxes.size()]; in TextBoxesToFloat32Array()
264 for (int i = 0; i < boxes.size(); i++) { in TextBoxesToFloat32Array()
265 rects[i].rect = boxes[i].rect; in TextBoxesToFloat32Array()
266 if (boxes[i].direction == para::TextDirection::kRtl) { in TextBoxesToFloat32Array()
275 return Float32Array(typed_memory_view(boxes.size() * 5, fPtr)); in TextBoxesToFloat32Array()
283 std::vector<para::TextBox> boxes = self.getRectsForRange(start, end, heightStyle, widthStyle); in GetRectsForRange() local
284 return TextBoxesToFloat32Array(boxes); in GetRectsForRange()
288 std::vector<para::TextBox> boxes = self.getRectsForPlaceholders(); in GetRectsForPlaceholders() local
[all …]
/third_party/flutter/engine/flutter/third_party/txt/src/txt/
Dparagraph_txt.cc1544 std::vector<Paragraph::TextBox> boxes; in GetRectsForRange() member
1621 line_metrics[run.line_number].boxes.emplace_back( in GetRectsForRange()
1645 line_metrics[line_number].boxes.emplace_back( in GetRectsForRange()
1652 std::vector<Paragraph::TextBox> boxes; in GetRectsForRange() local
1659 line_metrics[kv.first].boxes.emplace_back( in GetRectsForRange()
1669 line_metrics[kv.first].boxes.emplace_back( in GetRectsForRange()
1683 boxes.insert(boxes.end(), kv.second.boxes.begin(), kv.second.boxes.end()); in GetRectsForRange()
1685 for (const Paragraph::TextBox& box : kv.second.boxes) { in GetRectsForRange()
1686 boxes.emplace_back( in GetRectsForRange()
1709 for (const Paragraph::TextBox& box : kv.second.boxes) { in GetRectsForRange()
[all …]
/third_party/mindspore/mindspore/ops/operations/
Dimage_ops.py100 def __infer__(self, x, boxes, box_index, crop_size): argument
103 boxes_shape = list(boxes['shape'])
111 boxes_dtype = boxes['dtype']

12345678910>>...13