Home
last modified time | relevance | path

Searched refs:rect (Results 51 - 75 of 1223) sorted by relevance

12345678910>>...49

/third_party/skia/docs/examples/
H A DRect_centerX.cpp8 for (auto rect : tests) { in REG_FIDDLE()
9 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in REG_FIDDLE()
10 rect.sort(); in REG_FIDDLE()
11 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in REG_FIDDLE()
H A DIRect_MakeEmpty.cpp7 SkIRect rect = SkIRect::MakeEmpty(); in REG_FIDDLE() local
8 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); in REG_FIDDLE()
9 rect.offset(10, 10); in REG_FIDDLE()
10 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); in REG_FIDDLE()
11 rect.inset(10, 10); in REG_FIDDLE()
12 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); in REG_FIDDLE()
13 rect.outset(20, 20); in REG_FIDDLE()
14 SkDebugf("outset rect isEmpt in REG_FIDDLE()
[all...]
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()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A Dnv50_transfer.c10 struct nv50_m2mf_rect rect[2]; member
16 nv50_m2mf_rect_setup(struct nv50_m2mf_rect *rect, in nv50_m2mf_rect_setup() argument
24 rect->bo = mt->base.bo; in nv50_m2mf_rect_setup()
25 rect->domain = mt->base.domain; in nv50_m2mf_rect_setup()
26 rect->base = mt->level[l].offset; in nv50_m2mf_rect_setup()
28 rect->base += mt->base.address - mt->base.bo->offset; in nv50_m2mf_rect_setup()
29 rect->pitch = mt->level[l].pitch; in nv50_m2mf_rect_setup()
31 rect->width = w << mt->ms_x; in nv50_m2mf_rect_setup()
32 rect->height = h << mt->ms_y; in nv50_m2mf_rect_setup()
33 rect in nv50_m2mf_rect_setup()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrQuad.cpp18 static void map_rect_translate_scale(const SkRect& rect, const SkMatrix& m, in map_rect_translate_scale() argument
23 V4f r = V4f::Load(&rect); in map_rect_translate_scale()
57 static void map_rect_general(const SkRect& rect, const SkMatrix& matrix, in map_rect_general() argument
59 V4f rx{rect.fLeft, rect.fLeft, rect.fRight, rect.fRight}; in map_rect_general()
60 V4f ry{rect.fTop, rect.fBottom, rect in map_rect_general()
101 MakeFromRect(const SkRect& rect, const SkMatrix& m) MakeFromRect() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/gud/
H A Dgud_pipe.c54 struct drm_rect *rect) in gud_xrgb8888_to_r124()
67 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_r124()
68 width = drm_rect_width(rect); in gud_xrgb8888_to_r124()
69 height = drm_rect_height(rect); in gud_xrgb8888_to_r124()
78 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, rect); in gud_xrgb8888_to_r124()
103 struct drm_rect *rect) in gud_xrgb8888_to_color()
114 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color()
115 width = drm_rect_width(rect); in gud_xrgb8888_to_color()
52 gud_xrgb8888_to_r124(u8 *dst, const struct drm_format_info *format, void *src, struct drm_framebuffer *fb, struct drm_rect *rect) gud_xrgb8888_to_r124() argument
101 gud_xrgb8888_to_color(u8 *dst, const struct drm_format_info *format, void *src, struct drm_framebuffer *fb, struct drm_rect *rect) gud_xrgb8888_to_color() argument
152 gud_prep_flush(struct gud_device *gdrm, struct drm_framebuffer *fb, const struct iosys_map *src, bool cached_reads, const struct drm_format_info *format, struct drm_rect *rect, struct gud_set_buffer_req *req) gud_prep_flush() argument
267 gud_flush_rect(struct gud_device *gdrm, struct drm_framebuffer *fb, const struct iosys_map *src, bool cached_reads, const struct drm_format_info *format, struct drm_rect *rect) gud_flush_rect() argument
338 struct drm_rect rect = *damage; gud_flush_damage() local
[all...]
/third_party/ffmpeg/libavdevice/
H A Dgdigrab.c91 RECT rect; in gdigrab_region_wnd_proc() local
97 GetClientRect(hwnd, &rect); in gdigrab_region_wnd_proc()
98 FrameRect(hdc, &rect, GetStockObject(BLACK_BRUSH)); in gdigrab_region_wnd_proc()
100 rect.left++; rect.top++; rect.right--; rect.bottom--; in gdigrab_region_wnd_proc()
101 FrameRect(hdc, &rect, GetStockObject(WHITE_BRUSH)); in gdigrab_region_wnd_proc()
103 rect.left++; rect in gdigrab_region_wnd_proc()
125 RECT rect = gdigrab->clip_rect; gdigrab_region_wnd_init() local
496 RECT rect; paint_mouse_pointer() local
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/sis/
H A Dsis_accel.c305 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in fbcon_sis_fillrect() argument
318 cfb_fillrect(info, rect); in fbcon_sis_fillrect()
322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
326 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect in fbcon_sis_fillrect()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/sis/
H A Dsis_accel.c305 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in fbcon_sis_fillrect() argument
318 cfb_fillrect(info, rect); in fbcon_sis_fillrect()
322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
326 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect in fbcon_sis_fillrect()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_damage_helper.c305 * @rect: Return a rectangle in fb coordinate clipped to plane src.
320 struct drm_rect *rect) in drm_atomic_helper_damage_iter_next()
325 *rect = iter->plane_src; in drm_atomic_helper_damage_iter_next()
331 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
334 if (drm_rect_intersect(rect, &iter->plane_src)) { in drm_atomic_helper_damage_iter_next()
348 * @rect: Returns the merged damage rectangle
351 * returns it in @rect.
361 struct drm_rect *rect) in drm_atomic_helper_damage_merged()
367 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged()
368 rect in drm_atomic_helper_damage_merged()
319 drm_atomic_helper_damage_iter_next(struct drm_atomic_helper_damage_iter *iter, struct drm_rect *rect) drm_atomic_helper_damage_iter_next() argument
359 drm_atomic_helper_damage_merged(const struct drm_plane_state *old_state, struct drm_plane_state *state, struct drm_rect *rect) drm_atomic_helper_damage_merged() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_damage_helper.c256 * @rect: Return a rectangle in fb coordinate clipped to plane src.
271 struct drm_rect *rect) in drm_atomic_helper_damage_iter_next()
276 *rect = iter->plane_src; in drm_atomic_helper_damage_iter_next()
282 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
285 if (drm_rect_intersect(rect, &iter->plane_src)) { in drm_atomic_helper_damage_iter_next()
299 * @rect: Returns the merged damage rectangle
302 * returns it in @rect.
312 struct drm_rect *rect) in drm_atomic_helper_damage_merged()
318 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged()
319 rect in drm_atomic_helper_damage_merged()
270 drm_atomic_helper_damage_iter_next(struct drm_atomic_helper_damage_iter *iter, struct drm_rect *rect) drm_atomic_helper_damage_iter_next() argument
310 drm_atomic_helper_damage_merged(const struct drm_plane_state *old_state, struct drm_plane_state *state, struct drm_rect *rect) drm_atomic_helper_damage_merged() argument
[all...]
/third_party/skia/src/gpu/effects/
H A DGrRRectEffect.cpp162 // The inner rect is the rrect bounds inset by the radius. Its left, top, right, and bottom in emitCode()
164 // only rectangular corners, that side's value corresponds to the rect edge's value outset by in emitCode()
196 // computations, compute a separate rect edge alpha for the rect side, and mul the two computed in emitCode()
299 SkRect rect = rrect.getBounds(); in onSetData() local
306 rect.inset(radius, radius); in onSetData()
310 rect.fLeft += radius; in onSetData()
311 rect.fTop += radius; in onSetData()
312 rect.fRight += 0.5f; in onSetData()
313 rect in onSetData()
622 SkRect rect = rrect.getBounds(); onSetData() local
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/
H A DImage.cpp947 void Transfer(void *buffer, const void *input, const Rectangle &rect) in Transfer() argument
949 for(int z = 0; z < rect.depth; z++) in Transfer()
951 const unsigned char *inputStart = static_cast<const unsigned char*>(input) + (z * rect.inputPitch * rect.inputHeight); in Transfer()
952 unsigned char *destStart = static_cast<unsigned char*>(buffer) + (z * rect.destSlice); in Transfer()
953 for(int y = 0; y < rect.height; y++) in Transfer()
955 const unsigned char *source = inputStart + y * rect.inputPitch; in Transfer()
956 unsigned char *dest = destStart + y * rect.destPitch; in Transfer()
958 TransferRow<transferType>(dest, source, rect.width, rect in Transfer()
1308 Rectangle rect; loadImageData() local
1639 Rectangle rect; loadStencilData() local
[all...]
/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...]
/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...]

Completed in 15 milliseconds

12345678910>>...49