Home
last modified time | relevance | path

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

123

/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...]
/kernel/linux/linux-5.10/drivers/gpu/drm/savage/
H A Dsavage_state.c806 const struct drm_clip_rect *boxes) in savage_dispatch_clear()
835 x = boxes[i].x1, y = boxes[i].y1; in savage_dispatch_clear()
836 w = boxes[i].x2 - boxes[i].x1; in savage_dispatch_clear()
837 h = boxes[i].y2 - boxes[i].y1; in savage_dispatch_clear()
875 unsigned int nbox, const struct drm_clip_rect *boxes) in savage_dispatch_swap()
893 DMA_WRITE(BCI_X_Y(boxes[i].x1, boxes[ in savage_dispatch_swap()
802 savage_dispatch_clear(drm_savage_private_t * dev_priv, const drm_savage_cmd_header_t * cmd_header, const drm_savage_cmd_header_t *data, unsigned int nbox, const struct drm_clip_rect *boxes) savage_dispatch_clear() argument
874 savage_dispatch_swap(drm_savage_private_t * dev_priv, unsigned int nbox, const struct drm_clip_rect *boxes) savage_dispatch_swap() argument
903 savage_dispatch_draw(drm_savage_private_t * dev_priv, const drm_savage_cmd_header_t *start, const drm_savage_cmd_header_t *end, const struct drm_buf * dmabuf, const unsigned int *vtxbuf, unsigned int vb_size, unsigned int vb_stride, unsigned int nbox, const struct drm_clip_rect *boxes) savage_dispatch_draw() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/r128/
H A Dr128_state.c47 struct drm_clip_rect *boxes, int count) in r128_emit_clip_rects()
57 OUT_RING(boxes[0].x1); in r128_emit_clip_rects()
58 OUT_RING(boxes[0].x2 - 1); in r128_emit_clip_rects()
59 OUT_RING(boxes[0].y1); in r128_emit_clip_rects()
60 OUT_RING(boxes[0].y2 - 1); in r128_emit_clip_rects()
66 OUT_RING(boxes[1].x1); in r128_emit_clip_rects()
67 OUT_RING(boxes[1].x2 - 1); in r128_emit_clip_rects()
68 OUT_RING(boxes[1].y1); in r128_emit_clip_rects()
69 OUT_RING(boxes[1].y2 - 1); in r128_emit_clip_rects()
75 OUT_RING(boxes[ in r128_emit_clip_rects()
46 r128_emit_clip_rects(drm_r128_private_t *dev_priv, struct drm_clip_rect *boxes, int count) r128_emit_clip_rects() argument
[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)
/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Duncore.c113 return dieid < uncore_max_dies() ? pmu->boxes[dieid] : NULL; in uncore_pmu_to_box()
285 * handle boxes with an active event list as opposed to active in uncore_pmu_hrtimer()
888 kfree(pmu->boxes[die]); in uncore_free_boxes()
889 kfree(pmu->boxes); in uncore_free_boxes()
934 pmus[i].boxes = kzalloc(size, GFP_KERNEL); in uncore_type_init()
935 if (!pmus[i].boxes) in uncore_type_init()
974 kfree(pmus[i].boxes); in uncore_type_init()
1060 if (WARN_ON_ONCE(pmu->boxes[die] != NULL)) in uncore_pci_pmu_register()
1079 pmu->boxes[die] = box; in uncore_pci_pmu_register()
1086 pmu->boxes[di in uncore_pci_pmu_register()
[all...]
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A Duncore.c145 return dieid < uncore_max_dies() ? pmu->boxes[dieid] : NULL; in uncore_pmu_to_box()
317 * handle boxes with an active event list as opposed to active in uncore_pmu_hrtimer()
952 kfree(pmu->boxes[die]); in uncore_free_boxes()
953 kfree(pmu->boxes); in uncore_free_boxes()
1002 pmus[i].boxes = kzalloc(size, GFP_KERNEL); in uncore_type_init()
1003 if (!pmus[i].boxes) in uncore_type_init()
1042 kfree(pmus[i].boxes); in uncore_type_init()
1150 if (WARN_ON_ONCE(pmu->boxes[die] != NULL)) in uncore_pci_pmu_register()
1168 pmu->boxes[die] = box; in uncore_pci_pmu_register()
1175 pmu->boxes[di in uncore_pci_pmu_register()
[all...]
/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
/kernel/linux/linux-5.10/tools/vm/
H A Dslabinfo-gnuplot.sh94 plot "$file" $range u 2$xtic title 'SIZE' with boxes,\
95 '' $range u 3 title 'LOSS' with boxes
/kernel/linux/linux-6.6/tools/mm/
H A Dslabinfo-gnuplot.sh94 plot "$file" $range u 2$xtic title 'SIZE' with boxes,\
95 '' $range u 3 title 'LOSS' with boxes
/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...]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c76 * @boxes: Array of SVGA3dBoxes indicating dirty regions. One per subresource.
82 SVGA3dBox boxes[]; member
1727 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add()
1775 SVGA3dBox *box = &dirty->boxes[subres]; in vmw_subres_dirty_full()
1847 SVGA3dBox *box = &dirty->boxes[0]; in vmw_surface_buf_dirty_range_add()
1902 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync()
1920 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync()
1950 memset(&dirty->boxes[0], 0, sizeof(dirty->boxes[0]) * in vmw_surface_dirty_sync()
1985 dirty_size = struct_size(dirty, boxes, num_subre in vmw_surface_dirty_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c75 * @boxes: Array of SVGA3dBoxes indicating dirty regions. One per subresource.
80 SVGA3dBox boxes[]; member
1674 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add()
1722 SVGA3dBox *box = &dirty->boxes[subres]; in vmw_subres_dirty_full()
1794 SVGA3dBox *box = &dirty->boxes[0]; in vmw_surface_buf_dirty_range_add()
1848 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync()
1866 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync()
1896 memset(&dirty->boxes[0], 0, sizeof(dirty->boxes[0]) * in vmw_surface_dirty_sync()
1927 dirty_size = struct_size(dirty, boxes, num_subre in vmw_surface_dirty_alloc()
[all...]
/third_party/libdrm/include/drm/
H A Dmach64_drm.h133 struct drm_clip_rect boxes[MACH64_NR_SAREA_CLIPRECTS]; member
/kernel/linux/linux-5.10/drivers/gpu/drm/mga/
H A Dmga_state.c485 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_clear()
573 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_swap()
641 &sarea_priv->boxes[i]); in mga_dma_dispatch_vertex()
688 &sarea_priv->boxes[i]); in mga_dma_dispatch_indices()
771 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_blit()
/kernel/linux/linux-5.10/include/uapi/drm/
H A Dvia_drm.h188 struct drm_clip_rect boxes[VIA_NR_SAREA_CLIPRECTS]; member
H A Di810_drm.h163 struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS]; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/
H A Di810_drm.h121 struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS]; member

Completed in 35 milliseconds

123