/third_party/skia/docs/examples/ |
H A D | Canvas_save.cpp | 8 SkRect rect = { 0, 0, 25, 25 }; in REG_FIDDLE() local 9 canvas->drawRect(rect, paint); in REG_FIDDLE() 12 canvas->drawRect(rect, paint); in REG_FIDDLE() 15 canvas->drawRect(rect, paint); in REG_FIDDLE()
|
H A D | Matrix_mapRect_3.cpp | 7 SkRect rect{110, 50, 180, 100}; in REG_FIDDLE() 10 SkRect mapped = matrix.mapRect(rect); in REG_FIDDLE() 14 canvas->drawRect(rect, paint); in REG_FIDDLE() 17 canvas->drawRect(rect, paint); in REG_FIDDLE()
|
H A D | RRect_Type.cpp | 9 auto drawRRectType = [=](const SkRect& rect, const Radii& radii) { in REG_FIDDLE() 11 rrect.setRectRadii(rect, radii.data); in REG_FIDDLE() 14 const char* typeStr[] = { "empty", "rect", "oval", "simple", "nine patch", "complex" }; in REG_FIDDLE() 15 canvas->drawString(typeStr[(int) rrect.type()], rect.centerX(), rect.bottom() + 20, paint); in REG_FIDDLE()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_accel.c | 106 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 108 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 327 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument 330 switch (rect->rop) { in matroxfb_fillrect() 332 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); in matroxfb_fillrect() 395 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
H A D | virtgpu_plane.c | 108 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() 113 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo() 114 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo() 115 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo() 116 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo() 136 struct drm_rect rect; in virtio_gpu_primary_plane_update() local 155 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update() 160 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update() 106 virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, struct drm_plane_state *state, struct drm_rect *rect) virtio_gpu_update_dumb_bo() argument [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
H A D | matroxfb_accel.c | 106 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 108 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 327 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument 330 switch (rect->rop) { in matroxfb_fillrect() 332 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); in matroxfb_fillrect() 395 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/ |
H A D | virtgpu_plane.c | 113 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() 118 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo() 119 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo() 120 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo() 121 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo() 177 struct drm_rect rect; in virtio_gpu_primary_plane_update() local 196 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update() 201 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update() 111 virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, struct drm_plane_state *state, struct drm_rect *rect) virtio_gpu_update_dumb_bo() argument [all...] |
/third_party/skia/samplecode/ |
H A D | SampleFilterBounds.cpp | 31 static float print_size(SkCanvas* canvas, const char* prefix, const SkIRect& rect, in print_size() argument 36 sz.appendf("%d x %d", rect.width(), rect.height()); in print_size() 88 static SkPath create_axis_path(const SkRect& rect, float axisSpace) { in create_axis_path() argument 90 for (float y = rect.fTop + axisSpace; y <= rect.fBottom; y += axisSpace) { in create_axis_path() 91 localSpace.moveTo(rect.fLeft, y); in create_axis_path() 92 localSpace.lineTo(rect.fRight, y); in create_axis_path() 94 for (float x = rect.fLeft + axisSpace; x <= rect in create_axis_path() 126 draw_scale_factors(SkCanvas* canvas, const skif::Mapping& mapping, const SkRect& rect) draw_scale_factors() argument [all...] |
/third_party/skia/include/private/ |
H A D | SkPathRef.h | 162 void setBounds(const SkRect& rect) { fPathRef->setBounds(rect); } in setBounds() argument 222 * @param rect returns the bounding rect of this oval. It's a circle 233 bool isOval(SkRect* rect, bool* isCCW, unsigned* start) const { in isOval() argument 235 if (rect) { in isOval() 236 *rect = this->getBounds(); in isOval() 397 // using an inverted rect instead of fBoundsIsDirty and always recalculating fIsFinite. in computeBounds() 404 void setBounds(const SkRect& rect) { in setBounds() argument 405 SkASSERT(rect in setBounds() [all...] |
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_damage_helper.h | 40 * @rect: Return a rectangle in fb coordinate clipped to plane src. 46 #define drm_atomic_for_each_plane_damage(iter, rect) \ 47 while (drm_atomic_helper_damage_iter_next(iter, rect)) 79 struct drm_rect *rect); 82 struct drm_rect *rect);
|
/third_party/skia/experimental/graphite/src/geom/ |
H A D | IntersectionTree.h | 18 // add() either adds the given rect to the collection, or returns false if it intersected with a 19 // rect already in the collection. 24 bool add(Rect rect) { in add() argument 25 if (rect.isEmptyNegativeOrNaN()) { in add() 29 if (!fRoot->intersects(rect)) { in add() 30 fRoot = fRoot->addNonIntersecting(rect, &fArena); in add()
|
/third_party/skia/gm/ |
H A D | tilemodes_alpha.cpp | 29 SkRect rect = SkRect::MakeXYWH(128 * x + 1, 128 * y + 1, 126, 126); in DEF_SIMPLE_GM() local 30 SkMatrix matrix = SkMatrix::Translate(rect.x(), rect.y()); in DEF_SIMPLE_GM() 33 canvas->drawRect(rect, paint); in DEF_SIMPLE_GM()
|
H A D | matrixconvolution.cpp | 118 SkIRect rect = fImage->bounds(); variable 120 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect); 121 this->draw(canvas, x, 110, kernelOffset, SkTileMode::kDecal, true, &rect); 122 this->draw(canvas, x, 210, kernelOffset, SkTileMode::kRepeat, true, &rect); 131 this->draw(canvas, 410, 10, kernelOffset, SkTileMode::kClamp, false, &rect); 132 this->draw(canvas, 410, 110, kernelOffset, SkTileMode::kDecal, false, &rect); 133 this->draw(canvas, 410, 210, kernelOffset, SkTileMode::kRepeat, false, &rect);
|
H A D | emptypath.cpp | 74 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); variable 83 canvas->translate(0, rect.height() + 40 * SK_Scalar1); 86 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); 94 this->drawEmpty(canvas, color, rect, 102 canvas->drawRect(rect, rectPaint); 107 canvas->drawString(gStyles[style].fName, 0, rect.height() + 15.0f, 109 canvas->drawString(gFills[fill].fName, 0, rect.height() + 28.0f,
|
/device/soc/hisilicon/common/hal/display/source/display_device/src/core/ |
H A D | hdi_session.cpp | 160 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect)
in SetDisplayClientCrop() argument 163 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientCrop() 167 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect)
in SetDisplayClientDestRect() argument 170 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientDestRect() 180 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect)
in SetDisplayClientDamage() argument 184 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientDamage() 245 static int32_t SetLayerSize(uint32_t devId, uint32_t layerId, IRect *rect)
in SetLayerSize() argument 252 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 291 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/device/soc/rockchip/common/hardware/display/src/display_device/ |
H A D | hdi_session.cpp | 182 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect) in SetDisplayClientCrop() argument 185 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientCrop() 189 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect) in SetDisplayClientDestRect() argument 192 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDestRect() 202 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect) in SetDisplayClientDamage() argument 206 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDamage() 266 static int32_t SetLayerSize(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerSize() argument 273 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 312 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/device/soc/rockchip/rk3399/hardware/display/src/display_device/ |
H A D | hdi_session.cpp | 182 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect) in SetDisplayClientCrop() argument 185 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientCrop() 189 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect) in SetDisplayClientDestRect() argument 192 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDestRect() 202 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect) in SetDisplayClientDamage() argument 206 DISPLAY_CHK_RETURN((rect == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDamage() 267 static int32_t SetLayerSize(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerSize() argument 274 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 313 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/device/soc/rockchip/rk3566/hardware/display/src/display_device/ |
H A D | hdi_session.cpp | 185 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect) in SetDisplayClientCrop() argument 188 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientCrop() 192 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect) in SetDisplayClientDestRect() argument 195 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDestRect() 205 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect) in SetDisplayClientDamage() argument 209 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDamage() 270 static int32_t SetLayerRegion(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerRegion() argument 277 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 316 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/device/soc/rockchip/rk3568/hardware/display/src/display_device/ |
H A D | hdi_session.cpp | 185 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect) in SetDisplayClientCrop() argument 188 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientCrop() 192 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect) in SetDisplayClientDestRect() argument 195 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDestRect() 205 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect) in SetDisplayClientDamage() argument 209 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetDisplayClientDamage() 270 static int32_t SetLayerRegion(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerRegion() argument 277 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 316 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/device/soc/rockchip/rk3588/hardware/display/src/display_device/ |
H A D | hdi_session.cpp | 185 static int32_t SetDisplayClientCrop(uint32_t devId, IRect *rect)
in SetDisplayClientCrop() argument 188 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientCrop() 192 static int32_t SetDisplayClientDestRect(uint32_t devId, IRect *rect)
in SetDisplayClientDestRect() argument 195 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientDestRect() 205 static int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, IRect *rect)
in SetDisplayClientDamage() argument 209 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr"));
in SetDisplayClientDamage() 270 static int32_t SetLayerRegion(uint32_t devId, uint32_t layerId, IRect *rect)
in SetLayerRegion() argument 277 SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) SetLayerCrop() argument 316 SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, IRect *rect) SetLayerVisibleRegion() argument [all...] |
/third_party/skia/modules/skparagraph/src/ |
H A D | Decorations.cpp | 113 SkRect rect = SkRect::MakeXYWH(left, y, width, fThickness); in paint() local 114 calculateGaps(context, rect, baseline, fThickness, textStyle); in paint() 155 void Decorations::calculateGaps(const TextLine::ClipContext& context, const SkRect& rect, in calculateGaps() argument 165 SkScalar top = textStyle.getHeight() != 0 ? this->fDecorationContext.textBlobTop + baseline : rect.fTop; in calculateGaps() 178 auto start = rect.fLeft; in calculateGaps() 179 path.MoveTo(rect.fLeft, rect.fTop); in calculateGaps() 184 path.LineTo(end, rect.fTop); in calculateGaps() 185 path.MoveTo(start, rect.fTop); in calculateGaps() 188 path.MoveTo(start, rect in calculateGaps() [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ov6650.c | 199 struct v4l2_rect rect; /* sensor cropping window */ member 475 struct v4l2_rect *rect; in ov6650_get_selection() local 479 rect = &sd_state->pads->try_crop; in ov6650_get_selection() 483 rect = &priv->rect; in ov6650_get_selection() 496 sel->r = *rect; in ov6650_get_selection() 504 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument 506 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok() 509 static void ov6650_bind_align_crop_rectangle(struct v4l2_rect *rect) in ov6650_bind_align_crop_rectangle() argument [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_scissor.c | 126 const struct gl_scissor_rect *rect = &scissor->WindowRects[i]; in st_update_window_rectangles() local 127 new_rects[i].minx = MAX2(rect->X, 0); in st_update_window_rectangles() 128 new_rects[i].miny = MAX2(rect->Y, 0); in st_update_window_rectangles() 129 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0); in st_update_window_rectangles() 130 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0); in st_update_window_rectangles()
|
/third_party/python/Lib/ctypes/test/ |
H A D | test_win32.py | 112 rect = RECT(left, top, right, bottom) 115 self.assertEqual(1, PointInRect(byref(rect), pt)) 122 ret = ReturnRect(i, rect, pointer(rect), pt, rect, 123 byref(rect), pt, rect)
|
/third_party/skia/src/gpu/ |
H A D | GrPixmap.h | 36 * Map this pixmap to a rect in a surface of indicated dimensions at offset surfacePt. Clip the 37 * logical rectangle to the bounds of the surface. If the rect does not intersect the surface 44 auto rect = SkIRect::MakePtSize(*surfacePt, this->dimensions()); in clip() local 45 if (!rect.intersect(bounds)) { in clip() 49 (rect.fTop - surfacePt->fY) * fRowBytes + in clip() 50 (rect.fLeft - surfacePt->fX) * fInfo.bpp(); in clip() 51 surfacePt->fX = rect.fLeft; in clip() 52 surfacePt->fY = rect.fTop; in clip() 53 return DERIVED{this->info().makeDimensions(rect.size()), addr, fRowBytes}; in clip()
|