Home
last modified time | relevance | path

Searched refs:rect (Results 1051 - 1075 of 2377) sorted by relevance

1...<<41424344454647484950>>...96

/third_party/skia/bench/
H A DPathBench.cpp101 name->append("rect");
732 static void add_corner_arc(SkPath* path, const SkRect& rect, in add_corner_arc() argument
737 SkScalar rx = std::min(rect.width(), xIn); in add_corner_arc()
738 SkScalar ry = std::min(rect.height(), yIn); in add_corner_arc()
744 arcRect.offset(rect.fRight - arcRect.fRight, rect.fBottom - arcRect.fBottom); in add_corner_arc()
747 arcRect.offset(rect.fLeft - arcRect.fLeft, rect.fBottom - arcRect.fBottom); in add_corner_arc()
750 arcRect.offset(rect.fLeft - arcRect.fLeft, rect in add_corner_arc()
850 const SkRect& rect = fQueryRects[i % kQueryRectCnt]; global() variable
[all...]
/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_session_impl_test.cpp540 WSRect rect; in HWTEST_F() local
541 rect.posX_ = 0; in HWTEST_F()
542 rect.posY_ = 0; in HWTEST_F()
543 rect.height_ = 50; in HWTEST_F()
544 rect.width_ = 50; in HWTEST_F()
549 rectW.height_ = 200; // rectW - rect > 50 in HWTEST_F()
550 rectW.width_ = 200; // rectW - rect > 50 in HWTEST_F()
554 WSError res = window->UpdateRect(rect, reason); in HWTEST_F()
559 res = window->UpdateRect(rect, reason); in HWTEST_F()
565 res = window->UpdateRect(rect, reaso in HWTEST_F()
587 WSRect rect; HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
H A Dipu3-css.c723 ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, in imgu_css_pipeline_init()
752 frame_sp_info->res.width = css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_pipeline_init()
753 frame_sp_info->res.height = css_pipe->rect[IPU3_CSS_RECT_BDS].height; in imgu_css_pipeline_init()
779 css_pipe->rect[IPU3_CSS_RECT_ENVELOPE].width; in imgu_css_pipeline_init()
781 css_pipe->rect[IPU3_CSS_RECT_ENVELOPE].height; in imgu_css_pipeline_init()
822 ALIGN(DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].width, in imgu_css_pipeline_init()
825 DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].height, in imgu_css_pipeline_init()
927 css_pipe->rect[IPU3_CSS_RECT_EFFECTIVE].width; in imgu_css_pipeline_init()
929 css_pipe->rect[IPU3_CSS_RECT_EFFECTIVE].height; in imgu_css_pipeline_init()
959 frame_sp_info->res.width = css_pipe->rect[IPU3_CSS_RECT_BD in imgu_css_pipeline_init()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/
H A Dipu3-css.c710 ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, in imgu_css_pipeline_init()
739 frame_sp_info->res.width = css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_pipeline_init()
740 frame_sp_info->res.height = css_pipe->rect[IPU3_CSS_RECT_BDS].height; in imgu_css_pipeline_init()
766 css_pipe->rect[IPU3_CSS_RECT_ENVELOPE].width; in imgu_css_pipeline_init()
768 css_pipe->rect[IPU3_CSS_RECT_ENVELOPE].height; in imgu_css_pipeline_init()
809 ALIGN(DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].width, in imgu_css_pipeline_init()
812 DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].height, in imgu_css_pipeline_init()
914 css_pipe->rect[IPU3_CSS_RECT_EFFECTIVE].width; in imgu_css_pipeline_init()
916 css_pipe->rect[IPU3_CSS_RECT_EFFECTIVE].height; in imgu_css_pipeline_init()
946 frame_sp_info->res.width = css_pipe->rect[IPU3_CSS_RECT_BD in imgu_css_pipeline_init()
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_meta_clear.c371 &(VkViewport){.x = clear_rect->rect.offset.x, in emit_color_clear()
372 .y = clear_rect->rect.offset.y, in emit_color_clear()
373 .width = clear_rect->rect.extent.width, in emit_color_clear()
374 .height = clear_rect->rect.extent.height, in emit_color_clear()
378 radv_CmdSetScissor(radv_cmd_buffer_to_handle(cmd_buffer), 0, 1, &clear_rect->rect); in emit_color_clear()
522 if (clear_rect->rect.offset.x || clear_rect->rect.offset.y || in depth_view_can_fast_clear()
523 clear_rect->rect.extent.width != iview->extent.width || in depth_view_can_fast_clear()
524 clear_rect->rect.extent.height != iview->extent.height) in depth_view_can_fast_clear()
653 &(VkViewport){.x = clear_rect->rect in emit_depthstencil_clear()
[all...]
/third_party/skia/tests/
H A DPathTest.cpp42 REPORTER_ASSERT(reporter, bounds == rrect.rect()); in test_add_rrect()
790 static void add_corner_arc(SkPath* path, const SkRect& rect, in add_corner_arc() argument
795 SkScalar rx = std::min(rect.width(), xIn); in add_corner_arc()
796 SkScalar ry = std::min(rect.height(), yIn); in add_corner_arc()
802 arcRect.offset(rect.fRight - arcRect.fRight, rect.fBottom - arcRect.fBottom); in add_corner_arc()
805 arcRect.offset(rect.fLeft - arcRect.fLeft, rect.fBottom - arcRect.fBottom); in add_corner_arc()
808 arcRect.offset(rect.fLeft - arcRect.fLeft, rect in add_corner_arc()
1259 SkPath rect; test_close() local
2214 check_simple_rect(skiatest::Reporter* reporter, const SkPath& path, bool isClosed, const SkRect& rect, SkPathDirection dir, unsigned start) check_simple_rect() argument
2320 SkRect rect; test_is_closed_rect() local
2664 SkRect rect = SkRect::MakeWH(10, 10); test_flattening() local
3295 SkRect rect = SkRect::MakeEmpty(); check_for_circle() local
3461 SkPath rect; test_circle_with_add_paths() local
3525 SkRect rect; test_oval() local
5242 SkRect rect; DEF_TEST() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_paint_method.cpp269 auto rect = RSRect(scaledLeft, scaledTop, dirtyWidth + scaledLeft, dirtyHeight + scaledTop); in GetImageData() local
273 auto ret = rosenRenderContext->GetPixelMap(sharedPixelMap, drawCmdList, &rect); in GetImageData()
279 RSImageInfo info = RSImageInfo(rect.GetWidth(), rect.GetHeight(), in GetImageData()
284 canvas.Translate(-rect.GetLeft(), -rect.GetTop()); in GetImageData()
285 drawCmdList->Playback(canvas, &rect); in GetImageData()
H A Dcanvas_pattern.h93 void FillRect(const Rect& rect);
94 void StrokeRect(const Rect& rect);
95 void ClearRect(const Rect& rect);
108 void AddRect(const Rect& rect);
H A Dcanvas_paint_op.cpp36 method->FillRect(rect); in Draw()
118 method->ClearRect(rect); in Draw()
190 method->StrokeRect(rect); in Draw()
205 method->AddRect(rect); in Draw()
H A Drendering_context_2d_model.h87 virtual void AddRect(const Rect& rect) = 0;
103 virtual void FillRect(const Rect& rect) = 0;
104 virtual void StrokeRect(const Rect& rect) = 0;
105 virtual void ClearRect(const Rect& rect) = 0;
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/
H A Drs_transition_test.cpp38 auto rect = Drawing::Rect(0, 0, 0, 0); variable
41 context.canvas->DrawRect(rect);
45 auto rect = Drawing::Rect(rect_->Get().x_, rect_->Get().y_, rect_->Get().z_, rect_->Get().w_); variable
50 context.canvas->DrawRect(rect);
53 void SetRect(Vector4f rect) in SetRect() argument
56 rect_ = std::make_shared<RSAnimatableProperty<Vector4f>>(rect); in SetRect()
59 rect_->Set(rect); in SetRect()
/foundation/window/window_manager/utils/src/
H A Dsurface_draw.cpp266 bool SurfaceDraw::DrawImageRect(std::shared_ptr<RSSurfaceNode> surfaceNode, Rect rect, in DrawImageRect() argument
269 int32_t winHeight = static_cast<int32_t>(rect.height_); in DrawImageRect()
270 int32_t winWidth = static_cast<int32_t>(rect.width_); in DrawImageRect()
280 if (!DoDrawImageRect(buffer, rect, pixelMap, color, fillWindow)) { in DrawImageRect()
281 WLOGE("draw image rect failed."); in DrawImageRect()
298 bool SurfaceDraw::DoDrawImageRect(sptr<OHOS::SurfaceBuffer> buffer, const Rect& rect, in DoDrawImageRect() argument
301 int32_t winWidth = static_cast<int32_t>(rect.width_); in DoDrawImageRect()
302 int32_t winHeight = static_cast<int32_t>(rect.height_); in DoDrawImageRect()
347 WLOGFE("draw image rect failed, because copy bitmap to buffer failed."); in DoDrawImageRect()
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/
H A Dcirrus.c314 struct drm_rect *rect) in cirrus_fb_blit_rect()
331 vmap, fb, rect); in cirrus_fb_blit_rect()
336 vmap, fb, rect, false); in cirrus_fb_blit_rect()
341 vmap, fb, rect); in cirrus_fb_blit_rect()
453 struct drm_rect rect; in cirrus_pipe_update() local
460 if (drm_atomic_helper_damage_merged(old_state, state, &rect)) in cirrus_pipe_update()
461 cirrus_fb_blit_rect(pipe->plane.state->fb, &rect); in cirrus_pipe_update()
313 cirrus_fb_blit_rect(struct drm_framebuffer *fb, struct drm_rect *rect) cirrus_fb_blit_rect() argument
/third_party/skia/src/core/
H A DSkDevice.cpp136 this->drawRect(SkRect::Make(it.rect()), paint); in drawRegion()
522 bool rect = current.fIsRect; in writableClip() local
523 return fClipStack.emplace_back(bounds, aa, rect); in writableClip()
529 void SkNoPixelsDevice::onClipRect(const SkRect& rect, SkClipOp op, bool aa) { in onClipRect() argument
530 this->writableClip().op(op, this->localToDevice44(), rect, in onClipRect()
557 void SkNoPixelsDevice::onReplaceClip(const SkIRect& rect) { in onReplaceClip() argument
558 SkIRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)).round(); in onReplaceClip()
590 // A rectangular clip remains rectangular if the intersection is a rect in op()
602 // The difference couldn't be represented as a rect in op()
606 // A non-rect shap in op()
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/
H A Dbttv-driver.c661 __s32 top = btv->crop[!!btv->do_crop].rect.top; in check_alloc_btres_lock()
667 Claim scan lines crop[].rect.top to bottom. */ in check_alloc_btres_lock()
1083 (max_t(unsigned int, 48, c->rect.width >> 4) + 3) & ~3; in bttv_crop_calc_limits()
1085 max_t(unsigned int, 32, c->rect.height >> 4); in bttv_crop_calc_limits()
1088 c->max_scaled_width = c->rect.width & ~3; in bttv_crop_calc_limits()
1089 c->max_scaled_height = c->rect.height; in bttv_crop_calc_limits()
1095 c->rect = bttv_tvnorms[norm].cropcap.defrect; in bttv_crop_reset()
1807 c->rect.width = width * 16; in bttv_crop_adjust()
1810 c->rect.width = width; in bttv_crop_adjust()
1814 if (c->rect in bttv_crop_adjust()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Drender_custom_paint.h72 virtual void FillRect(const Offset& offset, const Rect& rect) = 0;
73 virtual void StrokeRect(const Offset& offset, const Rect& rect) = 0;
74 virtual void ClearRect(const Offset& offset, const Rect& rect) = 0;
91 virtual void AddRect(const Offset& offset, const Rect& rect) = 0;
H A Drosen_render_custom_paint.h63 void FillRect(const Offset& offset, const Rect& rect) override;
64 void StrokeRect(const Offset& offset, const Rect& rect) override;
65 void ClearRect(const Offset& offset, const Rect& rect) override;
80 void AddRect(const Offset& offset, const Rect& rect) override;
H A Doffscreen_canvas.h22 #include "base/geometry/rect.h"
219 virtual void FillRect(Rect rect) = 0;
220 virtual void ClearRect(Rect rect) = 0;
221 virtual void StrokeRect(Rect rect) = 0;
236 virtual void AddRect(const Rect& rect) = 0;
H A Drosen_render_offscreen_canvas.h47 void FillRect(Rect rect) override;
48 void ClearRect(Rect rect) override;
49 void StrokeRect(Rect rect) override;
66 void AddRect(const Rect& rect) override;
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drender_box_base.h284 Rect rect; in GetPaintRectExcludeMargin() local
285 rect.SetSize(paintSize_); in GetPaintRectExcludeMargin()
286 rect.SetOffset(GetPaintRect().GetOffset() + Offset(margin_.LeftPx(), margin_.TopPx())); in GetPaintRectExcludeMargin()
287 return rect; in GetPaintRectExcludeMargin()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_customdialog_controller_ffi.cpp44 void ParseCjCustomDialogControllerMaskRect(DimensionRect& rect, NativeCustomDialogControllerOptions options) in ParseCjCustomDialogControllerMaskRect() argument
51 rect.SetWidth(rectWidth); in ParseCjCustomDialogControllerMaskRect()
52 rect.SetHeight(rectHeight); in ParseCjCustomDialogControllerMaskRect()
53 rect.SetOffset(rectOffset); in ParseCjCustomDialogControllerMaskRect()
/foundation/graphic/graphic_surface/surface/test/systemtest/
H A Dsurface_ipc_with_pts_test.cpp186 struct Region::Rect *rect = new Region::Rect(); in ChildProcessMain() local
187 rect->w = 0x100; in ChildProcessMain()
188 rect->h = 0x100; in ChildProcessMain()
189 region->rects = rect; in ChildProcessMain()
H A Dsurface_ipc_with_invaild_pts_test.cpp141 struct Region::Rect *rect = new Region::Rect(); in ChildProcessMain() local
142 rect->w = 0x100; in ChildProcessMain()
143 rect->h = 0x100; in ChildProcessMain()
144 region->rects = rect; in ChildProcessMain()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_render_params.h37 #define RENDER_RECT_PARAM_TO_STRING(rect) (std::string(#rect "[") + (rect).ToString() + "] ")
200 void SetShadowRect(Drawing::Rect rect);
334 // this rect should map display coordination
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_property_drawable_test.cpp181 RRect rect; in HWTEST_F() local
182 properties.clipRRect_ = rect; in HWTEST_F()
256 RRect rect; in HWTEST_F() local
257 properties.clipRRect_ = rect; in HWTEST_F()

Completed in 31 milliseconds

1...<<41424344454647484950>>...96