Home
last modified time | relevance | path

Searched refs:rect (Results 76 - 100 of 1509) sorted by relevance

12345678910>>...61

/third_party/skia/docs/examples/
H A DRect_setEmpty.cpp7 SkRect rect = {3, 4, 1, 2}; in REG_FIDDLE() local
9 SkDebugf("rect: {%g, %g, %g, %g} is %s" "empty\n", rect.fLeft, rect.fTop, in REG_FIDDLE()
10 rect.fRight, rect.fBottom, rect.isEmpty() ? "" : "not "); in REG_FIDDLE()
11 rect.setEmpty(); in REG_FIDDLE()
H A DIRect_setEmpty.cpp7 SkIRect rect = {3, 4, 1, 2}; in REG_FIDDLE() local
9 SkDebugf("rect: {%d, %d, %d, %d} is %s" "empty\n", rect.fLeft, rect.fTop, in REG_FIDDLE()
10 rect.fRight, rect.fBottom, rect.isEmpty() ? "" : "not "); in REG_FIDDLE()
11 rect.setEmpty(); in REG_FIDDLE()
H A DRect_joinPossiblyEmptyRect.cpp7 SkRect rect = { 10, 100, 15, 0}; in REG_FIDDLE() local
8 SkRect sorted = rect.makeSorted(); in REG_FIDDLE()
10 rect.joinPossiblyEmptyRect(toJoin); in REG_FIDDLE()
11 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DRect_joinNonEmptyArg.cpp7 SkRect rect = { 10, 100, 15, 0}; in REG_FIDDLE() local
8 SkRect sorted = rect.makeSorted(); in REG_FIDDLE()
10 rect.joinNonEmptyArg(toJoin); in REG_FIDDLE()
11 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DMatrix_setRSXform.cpp10 SkRect rect = {20, 20, 100, 100}; in REG_FIDDLE() local
11 canvas->drawRect(rect, paint); in REG_FIDDLE()
14 matrix.setRSXform(SkRSXform::Make(.85f, .25f, rect.centerX(), rect.centerY())); in REG_FIDDLE()
16 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
17 canvas->drawRect(rect, paint); in REG_FIDDLE()
H A DMatrix_setRotate_2.cpp10 SkRect rect = {20, 20, 100, 100}; in REG_FIDDLE() local
11 canvas->drawRect(rect, paint); in REG_FIDDLE()
15 canvas->translate(rect.centerX(), rect.centerY()); in REG_FIDDLE()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
18 canvas->drawRect(rect, paint); in REG_FIDDLE()
H A DMatrix_setSinCos_2.cpp10 SkRect rect = {20, 20, 100, 100}; in REG_FIDDLE() local
11 canvas->drawRect(rect, paint); in REG_FIDDLE()
15 matrix.postTranslate(rect.centerX(), rect.centerY()); in REG_FIDDLE()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in REG_FIDDLE()
18 canvas->drawRect(rect, paint); in REG_FIDDLE()
H A DRect_inset.cpp7 SkRect rect = { 10, 14, 50, 73 }; in REG_FIDDLE() local
8 rect.inset(5, 13); in REG_FIDDLE()
9 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DRect_offsetTo.cpp7 SkRect rect = { 10, 14, 50, 73 }; in REG_FIDDLE() local
8 rect.offsetTo(15, 27); in REG_FIDDLE()
9 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DRect_offset_2.cpp7 SkRect rect = { 10, 14, 50, 73 }; in REG_FIDDLE() local
8 rect.offset({5, 13}); in REG_FIDDLE()
9 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DRect_offset.cpp7 SkRect rect = { 10, 14, 50, 73 }; in REG_FIDDLE() local
8 rect.offset(5, 13); in REG_FIDDLE()
9 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
H A DRect_outset.cpp7 SkRect rect = { 10, 14, 50, 73 }; in REG_FIDDLE() local
8 rect.outset(5, 13); in REG_FIDDLE()
9 SkDebugf("rect: %g, %g, %g, %g\n", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in REG_FIDDLE()
/third_party/skia/tools/sk_app/win/
H A DRasterWindowContext_win.cpp42 RECT rect; in RasterWindowContext_win() local
43 GetClientRect(wnd, &rect); in RasterWindowContext_win()
44 this->resize(rect.right - rect.left, rect.bottom - rect.top); in RasterWindowContext_win()
49 RECT rect; in setDisplayParams() local
50 GetClientRect(fWnd, &rect); in setDisplayParams()
51 this->resize(rect.right - rect in setDisplayParams()
[all...]
/test/xts/acts/graphic/graphicnapitest/
H A DNativeImageTest.cpp365 struct Region::Rect *rect = new Region::Rect(); in HWTEST_F() local
366 rect->x = 0x100; in HWTEST_F()
367 rect->y = 0x100; in HWTEST_F()
368 rect->w = 0x100; in HWTEST_F()
369 rect->h = 0x100; in HWTEST_F()
370 region->rects = rect; in HWTEST_F()
494 struct Region::Rect *rect = new Region::Rect(); in HWTEST_F() local
502 rect->x = 0x100; in HWTEST_F()
503 rect->y = 0x100; in HWTEST_F()
504 rect in HWTEST_F()
568 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
625 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
680 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
744 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
824 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
865 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
907 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
953 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
995 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
1038 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
1081 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
1124 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
1166 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
1205 struct Region::Rect *rect = new Region::Rect(); HWTEST_F() local
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_framebuffer.c405 SVGA3dRect rect; in get_viewport_prescale() local
531 rect.x = (uint32) fx; in get_viewport_prescale()
532 rect.y = (uint32) fy; in get_viewport_prescale()
533 rect.w = (uint32) fw; in get_viewport_prescale()
534 rect.h = (uint32) fh; in get_viewport_prescale()
538 fabs((float)rect.x - fx), in get_viewport_prescale()
539 fabs((float)rect.y - fy), in get_viewport_prescale()
540 fabs((float)rect.w - fw), in get_viewport_prescale()
541 fabs((float)rect.h - fh)); in get_viewport_prescale()
545 rect in get_viewport_prescale()
714 SVGA3dRect rect; emit_viewport() local
799 SVGASignedRect rect[SVGA3D_DX_MAX_VIEWPORTS]; emit_scissor_rect() local
812 SVGA3dRect rect; emit_scissor_rect() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/
H A Dcamss-vfe.c868 struct v4l2_rect *rect; in vfe_try_format() local
870 rect = __vfe_get_crop(line, sd_state, which); in vfe_try_format()
872 fmt->width = rect->width; in vfe_try_format()
873 fmt->height = rect->height; in vfe_try_format()
886 * @rect: pointer to v4l2 rect structure
891 struct v4l2_rect *rect, in vfe_try_compose()
898 if (rect->width > fmt->width) in vfe_try_compose()
899 rect->width = fmt->width; in vfe_try_compose()
901 if (rect in vfe_try_compose()
889 vfe_try_compose(struct vfe_line *line, struct v4l2_subdev_state *sd_state, struct v4l2_rect *rect, enum v4l2_subdev_format_whence which) vfe_try_compose() argument
928 vfe_try_crop(struct vfe_line *line, struct v4l2_subdev_state *sd_state, struct v4l2_rect *rect, enum v4l2_subdev_format_whence which) vfe_try_crop() argument
1129 struct v4l2_rect *rect; vfe_get_selection() local
1198 struct v4l2_rect *rect; vfe_set_selection() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dpgssubdec.c162 static int decode_rle(AVCodecContext *avctx, AVSubtitleRect *rect, in decode_rle() argument
170 rect->data[0] = av_malloc_array(rect->w, rect->h); in decode_rle()
172 if (!rect->data[0]) in decode_rle()
178 while (buf < rle_bitmap_end && line_count < rect->h) { in decode_rle()
193 if (run > 0 && pixel_count + run <= rect->w * rect->h) { in decode_rle()
194 memset(rect->data[0] + pixel_count, color, run); in decode_rle()
201 if (pixel_count % rect in decode_rle()
532 AVSubtitleRect *const rect = av_mallocz(sizeof(*rect)); display_end_segment() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/
H A Dili9225.c78 static void ili9225_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) in ili9225_fb_dirty() argument
82 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
83 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
97 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in ili9225_fb_dirty()
102 ret = mipi_dbi_buf_copy(dbidev->tx_buf, fb, rect, swap); in ili9225_fb_dirty()
111 x1 = rect->x1; in ili9225_fb_dirty()
112 x2 = rect->x2 - 1; in ili9225_fb_dirty()
113 y1 = rect in ili9225_fb_dirty()
165 struct drm_rect rect; ili9225_pipe_update() local
182 struct drm_rect rect = { ili9225_pipe_enable() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tiny/
H A Dili9225.c81 struct drm_rect *rect) in ili9225_fb_dirty()
84 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
85 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
96 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in ili9225_fb_dirty()
101 ret = mipi_dbi_buf_copy(tr, src, fb, rect, swap); in ili9225_fb_dirty()
110 x1 = rect->x1; in ili9225_fb_dirty()
111 x2 = rect->x2 - 1; in ili9225_fb_dirty()
112 y1 = rect in ili9225_fb_dirty()
80 ili9225_fb_dirty(struct iosys_map *src, struct drm_framebuffer *fb, struct drm_rect *rect) ili9225_fb_dirty() argument
164 struct drm_rect rect; ili9225_pipe_update() local
188 struct drm_rect rect = { ili9225_pipe_enable() local
[all...]
/device/soc/rockchip/rk3566/hardware/display/src/display_device/
H A Dhdi_layer.cpp101 int32_t HdiLayer::SetLayerRegion(IRect *rect) in SetLayerRegion() argument
103 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in rect is nullptr")); in SetLayerRegion()
104 DISPLAY_LOGD(" displayRect x: %{public}d y : %{public}d w : %{public}d h : %{public}d", rect->x, rect->y, in SetLayerRegion()
105 rect->w, rect->h); in SetLayerRegion()
106 mDisplayRect = *rect; in SetLayerRegion()
110 int32_t HdiLayer::SetLayerCrop(IRect *rect) in SetLayerCrop() argument
112 DISPLAY_CHK_RETURN((rect in SetLayerCrop()
155 SetLayerVisibleRegion(uint32_t num, IRect *rect) SetLayerVisibleRegion() argument
[all...]
/device/soc/rockchip/rk3568/hardware/display/src/display_device/
H A Dhdi_layer.cpp101 int32_t HdiLayer::SetLayerRegion(IRect *rect) in SetLayerRegion() argument
103 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in rect is nullptr")); in SetLayerRegion()
104 DISPLAY_LOGD(" displayRect x: %{public}d y : %{public}d w : %{public}d h : %{public}d", rect->x, rect->y, in SetLayerRegion()
105 rect->w, rect->h); in SetLayerRegion()
106 mDisplayRect = *rect; in SetLayerRegion()
110 int32_t HdiLayer::SetLayerCrop(IRect *rect) in SetLayerCrop() argument
112 DISPLAY_CHK_RETURN((rect in SetLayerCrop()
155 SetLayerVisibleRegion(uint32_t num, IRect *rect) SetLayerVisibleRegion() argument
[all...]
/device/soc/rockchip/rk3588/hardware/display/src/display_device/
H A Dhdi_layer.cpp101 int32_t HdiLayer::SetLayerRegion(IRect *rect) in SetLayerRegion() argument
103 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in rect is nullptr")); in SetLayerRegion()
104 DISPLAY_LOGD(" displayRect x: %{public}d y : %{public}d w : %{public}d h : %{public}d", rect->x, rect->y, in SetLayerRegion()
105 rect->w, rect->h); in SetLayerRegion()
106 mDisplayRect = *rect; in SetLayerRegion()
110 int32_t HdiLayer::SetLayerCrop(IRect *rect) in SetLayerCrop() argument
112 DISPLAY_CHK_RETURN((rect in SetLayerCrop()
155 SetLayerVisibleRegion(uint32_t num, IRect *rect) SetLayerVisibleRegion() argument
[all...]
/third_party/skia/experimental/sktext/editor/
H A DCursor.h34 void place(SkRect rect) { in place() argument
35 if (rect.width() < DEFAULT_CURSOR_WIDTH) { in place()
36 rect.fRight = rect.fLeft + DEFAULT_CURSOR_WIDTH; in place()
38 fXY = SkPoint::Make(rect.fLeft, rect.fTop); in place()
39 fSize = SkSize::Make(rect.width(), rect.height()); in place()
/third_party/skia/gm/
H A Dcrbug_1174354.cpp15 static void draw_bg_blur(SkCanvas* canvas, SkIRect rect, float sigma) { in draw_bg_blur() argument
19 auto outsetRect = SkRect::Make(rect).makeOutset(10, 10); in draw_bg_blur()
22 float cx = (rect.left() + rect.right() )/2.f; in draw_bg_blur()
23 float cy = (rect.top() + rect.bottom())/2.f; in draw_bg_blur()
36 canvas->drawRect(SkRect::Make(rect), paint); in draw_bg_blur()
39 auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr, rect); in draw_bg_blur()
/third_party/skia/src/gpu/geometry/
H A DGrShape.cpp58 SkRect rect; in simplifyPath() local
74 } else if (SkPathPriv::IsOval(fPath, &rect, &dir, &start)) { in simplifyPath()
76 this->simplifyRRect(SkRRect::MakeOval(rect), dir, start * 2, flags); in simplifyPath()
78 } else if (SkPathPriv::IsSimpleRect(fPath, (flags & kSimpleFill_Flag), &rect, &dir, &start)) { in simplifyPath()
79 // When there is a path effect we restrict rect detection to the narrower API that in simplifyPath()
82 this->simplifyRect(rect, dir, start, flags); in simplifyPath()
87 if (fPath.isRect(&rect, &closed) && (closed || (flags & kSimpleFill_Flag))) { in simplifyPath()
88 this->simplifyRect(rect, kDefaultDir, kDefaultStart, flags); in simplifyPath()
154 // Change index from rrect to rect in simplifyRRect()
156 this->simplifyRect(rrect.rect(), di in simplifyRRect()
168 simplifyRect(const SkRect& rect, SkPathDirection dir, unsigned start, unsigned flags) simplifyRect() argument
[all...]

Completed in 10 milliseconds

12345678910>>...61