Home
last modified time | relevance | path

Searched refs:boxes (Results 1 - 25 of 29) sorted by relevance

12

/third_party/skia/modules/skparagraph/tests/
H A DSkParagraphTest.cpp342 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() local
343 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
344 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
346 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
347 canvas.drawRects(SK_ColorGREEN, boxes); in UNIX_ONLY_TEST()
348 REPORTER_ASSERT(reporter, boxes.size() == 1); in UNIX_ONLY_TEST()
350 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST()
351 canvas.drawRects(SK_ColorRED, boxes); in UNIX_ONLY_TEST()
353 boxes = paragraph->getRectsForRange(4, 17, rect_height_style, rect_width_style); in UNIX_ONLY_TEST()
354 canvas.drawRects(SK_ColorBLUE, boxes); in UNIX_ONLY_TEST()
413 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
469 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
525 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
584 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
638 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
692 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
745 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
863 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
986 auto boxes = paragraph->getRectsForPlaceholders(); UNIX_ONLY_TEST() local
1314 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
1366 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_width_style); UNIX_ONLY_TEST() local
1435 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_width_style); UNIX_ONLY_TEST() local
1527 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_width_style); UNIX_ONLY_TEST() local
1584 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, len, RectHeightStyle::kTight, rect_width_style); UNIX_ONLY_TEST() local
1920 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2011 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2065 auto boxes = paragraph->getRectsForRange(0, 30, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2136 auto boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2458 std::vector<TextBox> boxes = paragraph->getRectsForRange(0, 100, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2510 std::vector<TextBox> boxes = paragraph->getRectsForRange(36, 40, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
2557 std::vector<TextBox> boxes = UNIX_ONLY_TEST() local
3613 auto boxes = paragraph->getRectsForRange(5, 6, RectHeightStyle::kMax, RectWidthStyle::kTight); UNIX_ONLY_TEST() local
4412 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4416 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4425 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4434 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4443 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4452 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4461 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4519 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4523 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4532 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4541 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4550 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4559 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4568 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4627 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4631 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4640 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4649 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4658 auto boxes = paragraph->getRectsForRange(6, 10, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4667 auto boxes = paragraph->getRectsForRange(14, 16, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4676 auto boxes = paragraph->getRectsForRange(20, 25, rect_height_max_style, rect_width_style); UNIX_ONLY_TEST() local
4826 auto boxes = paragraph->getRectsForRange(0, 0, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4830 auto boxes = paragraph->getRectsForRange(0, 1, rect_height_style, rect_width_style); UNIX_ONLY_TEST() local
4839 auto boxes = paragraph->getRectsForRange(0, 2, rect_height_strut_style, rect_width_style); UNIX_ONLY_TEST() local
6488 auto boxes = paragraph->getRectsForRange(0, 100, RectHeightStyle::kTight, RectWidthStyle::kTight); UNIX_ONLY_TEST() local
6640 auto boxes = paragraph->getRectsForRange( UNIX_ONLY_TEST() local
6708 auto boxes = paragraph->getRectsForRange(0, 60, RectHeightStyle::kIncludeLineSpacingTop, RectWidthStyle::kMax); UNIX_ONLY_TEST() local
6754 auto boxes = paragraph->getRectsForRange(0, 60, RectHeightStyle::kIncludeLineSpacingTop, RectWidthStyle::kMax); UNIX_ONLY_TEST() local
[all...]
/third_party/mesa3d/src/gallium/frontends/xa/
H A Dxa_context.c102 int to_surface, struct xa_box *boxes, unsigned int num_boxes) in xa_surface_dma()
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 in xa_surface_dma()
98 xa_surface_dma(struct xa_context *ctx, struct xa_surface *srf, void *data, unsigned int pitch, int to_surface, struct xa_box *boxes, unsigned int num_boxes) xa_surface_dma() argument
[all...]
H A Dxa_context.h79 int to_surface, struct xa_box *boxes,
/third_party/ffmpeg/libavfilter/
H A Dvf_palettegen.c76 struct range_box boxes[256]; // define the segmentation of the colorspace (the final palette) member
77 int nb_boxes; // number of boxes (increase will segmenting them)
172 struct range_box *box = &s->boxes[box_id]; in get_next_box_id_to_split()
174 if (s->boxes[box_id].len >= 2) { in get_next_box_id_to_split()
238 struct range_box *new_box = &s->boxes[s->nb_boxes++]; in split_box()
267 pal[x] = s->boxes[box_id++].color; in write_palette()
343 box = &s->boxes[box_id]; in get_palette_frame()
400 /* if you have 2 boxes, the maximum is actually #0: you must have at in get_palette_frame()
411 box = box_id >= 0 ? &s->boxes[box_id] : NULL; in get_palette_frame()
418 qsort(s->boxes, in get_palette_frame()
[all...]
/third_party/skia/modules/canvaskit/
H A Dparagraph_bindings.cpp258 Float32Array TextBoxesToFloat32Array(std::vector<para::TextBox> boxes) { in TextBoxesToFloat32Array() argument
259 // Pack these text boxes into an array of n groups of 5 SkScalar (floats) in TextBoxesToFloat32Array()
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(); GetRectsForPlaceholders() local
[all...]
/third_party/ffmpeg/libavutil/
H A Ddetection_bbox.c26 AVDetectionBBox boxes; in av_detection_bbox_alloc() member
28 const size_t bboxes_offset = offsetof(struct BBoxContext, boxes); in av_detection_bbox_alloc()
/third_party/python/Tools/demo/
H A Dredemo.py75 self.boxes = []
81 if len(self.boxes) % 3 == 0:
92 self.boxes.append(box)
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_resource_buffer_upload.c580 SVGA3dCopyBox *boxes; in svga_buffer_upload_hb_command() local
605 sizeof *cmd + numBoxes * sizeof *boxes + sizeof *pSuffix, in svga_buffer_upload_hb_command()
619 sbuf->dma.boxes = (SVGA3dCopyBox *)&cmd[1]; in svga_buffer_upload_hb_command()
626 pSuffix = (SVGA3dCmdSurfaceDMASuffix *)((uint8_t*)cmd + sizeof *cmd + numBoxes * sizeof *boxes); in svga_buffer_upload_hb_command()
706 assert(sbuf->dma.boxes); in svga_buffer_upload_flush()
710 SVGA3dCopyBox *box = sbuf->dma.boxes + i; in svga_buffer_upload_flush()
744 sbuf->dma.boxes = NULL; in svga_buffer_upload_flush()
821 assert(!sbuf->dma.boxes); in svga_buffer_add_range()
H A Dsvga_cmd.c421 * than specified. For example, it may round copy boxes outwards
431 const SVGA3dCopyBox *boxes, // IN in SVGA3D_SurfaceDMA()
438 uint32 boxesSize = sizeof *boxes * numBoxes; in SVGA3D_SurfaceDMA()
474 memcpy(&cmd[1], boxes, boxesSize); in SVGA3D_SurfaceDMA()
1050 * Asynchronously copies a list of boxes from surface to surface.
1059 SVGA3dCopyBox **boxes, // OUT in SVGA3D_BeginSurfaceCopy()
1063 uint32 boxesSize = sizeof **boxes * numBoxes; in SVGA3D_BeginSurfaceCopy()
1073 *boxes = (SVGA3dCopyBox*) &cmd[1]; in SVGA3D_BeginSurfaceCopy()
1075 memset(*boxes, 0, boxesSize); in SVGA3D_BeginSurfaceCopy()
428 SVGA3D_SurfaceDMA(struct svga_winsys_context *swc, struct svga_transfer *st, SVGA3dTransferType transfer, const SVGA3dCopyBox *boxes, uint32 numBoxes, SVGA3dSurfaceDMAFlags flags) SVGA3D_SurfaceDMA() argument
1056 SVGA3D_BeginSurfaceCopy(struct svga_winsys_context *swc, struct pipe_surface *src, struct pipe_surface *dest, SVGA3dCopyBox **boxes, uint32 numBoxes) SVGA3D_BeginSurfaceCopy() argument
H A Dsvga_resource_buffer.h142 * This information will be copied into dma.boxes, when emiting the
196 SVGA3dCopyBox *boxes; member
H A Dsvga_surface.c88 SVGA3dCopyBox box, *boxes; in svga_texture_copy_handle() local
121 &boxes, 1)); in svga_texture_copy_handle()
123 *boxes = box; in svga_texture_copy_handle()
H A Dsvga_cmd.h126 const SVGA3dCopyBox *boxes,
171 SVGA3dCopyBox **boxes, uint32 numBoxes);
/third_party/skia/tests/
H A DGrMeshTest.cpp91 * GrOpsRenderPass::draw*. The test works by drawing checkerboards of colored boxes, reading back
92 * the pixels, and comparing with expected results. The boxes are drawn on integer boundaries and
120 SkTArray<Box> boxes; local
137 const Box box = boxes.push_back() = {
176 // Draw boxes one line at a time to exercise base vertex.
223 // Draw boxes one line at a time to exercise base vertex. drawIndexPattern does
250 helper->fInstBuffer = helper->makeVertexBuffer(boxes);
260 // Draw boxes one line at a time to exercise base instance, base vertex, and
320 helper->fInstBuffer = helper->makeVertexBuffer(boxes);
351 // Draw boxes on
[all...]
/third_party/skia/modules/skparagraph/src/
H A DTextLine.cpp1822 std::vector<TextBox>& boxes) const
1825 auto startBox = boxes.size();
1831 [textRange0, rectHeightStyle, rectWidthStyle, &boxes, &lastRun, startBox, this]
1835 [run, runOffsetInLine, textRange0, rectHeightStyle, rectWidthStyle, &boxes, &lastRun, startBox, this]
1960 // Check if we can merge two boxes instead of adding a new one
1961 auto merge = [&lastRun, &context, &boxes](SkRect clip) {
1963 if (!boxes.empty() &&
1976 auto& lastBox = boxes.back();
1992 boxes.emplace_back(clip, context.run->getTextDirection());
1995 boxes
2187 getRectsForPlaceholders(std::vector<TextBox>& boxes) global() argument
[all...]
H A DParagraphImpl.cpp1498 // Returns a vector of bounding boxes that enclose all text between in GetLineFontMetrics()
1574 std::vector<TextBox> boxes; in GetLineFontMetrics() local
1577 return boxes; in GetLineFontMetrics()
1581 return boxes; in GetLineFontMetrics()
1584 line.getRectsForPlaceholders(boxes); in GetLineFontMetrics()
1587 SkDebugf("getRectsForPlaceholders('%s'): %d\n", fText.c_str(), boxes.size()); in GetLineFontMetrics()
1588 for (auto& r : boxes) { in GetLineFontMetrics()
1597 return boxes; in GetLineFontMetrics()
2060 std::vector<TextBox> boxes; in GetLineFontMetrics() local
2064 boxes); in GetLineFontMetrics()
[all...]
H A DTextLine.h173 std::vector<TextBox>& boxes) const;
174 void getRectsForPlaceholders(std::vector<TextBox>& boxes);
/third_party/libdrm/include/drm/
H A Dmach64_drm.h133 struct drm_clip_rect boxes[MACH64_NR_SAREA_CLIPRECTS]; member
H A Dr128_drm.h162 struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS]; member
H A Dvia_drm.h189 struct drm_clip_rect boxes[VIA_NR_SAREA_CLIPRECTS]; member
H A Dmga_drm.h190 struct drm_clip_rect boxes[MGA_NR_SAREA_CLIPRECTS]; member
195 * exported_ fields and puts the cliprects into boxes, above.
198 * clobbering the boxes data.
H A Dradeon_drm.h447 struct drm_clip_rect boxes[RADEON_NR_SAREA_CLIPRECTS]; member
667 struct drm_clip_rect *boxes; member
/third_party/mesa3d/src/gallium/frontends/dri/
H A Ddri2.c2207 struct pipe_box *boxes = NULL; in dri2_set_damage_region() local
2210 boxes = CALLOC(nrects, sizeof(*boxes)); in dri2_set_damage_region()
2211 assert(boxes); in dri2_set_damage_region()
2216 u_box_2d(rect[0], rect[1], rect[2], rect[3], &boxes[i]); in dri2_set_damage_region()
2221 drawable->damage_rects = boxes; in dri2_set_damage_region()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
H A DvktRayTracingPipelineFlagsTests.cpp785 std::vector<BoxGeometry> boxes (maxBoxes); in prepareBoxGeometries()
805 boxes[boxIdx].swap(box); in prepareBoxGeometries()
809 return boxes; in prepareBoxGeometries()
1423 } const geometries[] = { { GeometryTypes::Triangle, "triangles" }, { GeometryTypes::Box, "boxes" }, { GeometryTypes::TriangleAndBox, "tri_and_box" } }; in createPipelineFlagsTests()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
H A DvktRayTracingPipelineFlagsTests.cpp778 std::vector<BoxGeometry> boxes (maxBoxes); in prepareBoxGeometries()
798 boxes[boxIdx].swap(box); in prepareBoxGeometries()
802 return boxes; in prepareBoxGeometries()
1416 } const geometries[] = { { GeometryTypes::Triangle, "triangles" }, { GeometryTypes::Box, "boxes" }, { GeometryTypes::TriangleAndBox, "tri_and_box" } }; in createPipelineFlagsTests()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_acceleration_structure.c72 uint64_t triangles = 0, boxes = 0, instances = 0; in radv_GetAccelerationStructureBuildSizesKHR() local
92 boxes += pMaxPrimitiveCounts[i]; in radv_GetAccelerationStructureBuildSizesKHR()
102 uint64_t children = boxes + instances + triangles; in radv_GetAccelerationStructureBuildSizesKHR()
110 uint64_t size = boxes * 128 + instances * 128 + triangles * 64 + internal_nodes * 128 + in radv_GetAccelerationStructureBuildSizesKHR()
122 uint32_t leaf_count = boxes + instances + triangles; in radv_GetAccelerationStructureBuildSizesKHR()

Completed in 44 milliseconds

12