Home
last modified time | relevance | path

Searched refs:clip (Results 1 - 25 of 505) sorted by relevance

12345678910>>...21

/foundation/arkui/ace_engine/frameworks/core/components/clip/
H A Drender_clip.cpp16 #include "core/components/clip/render_clip.h"
21 #include "core/components/clip/clip_component.h"
29 const RefPtr<ClipComponent> clip = AceType::DynamicCast<ClipComponent>(component); in Update() local
30 if (!clip) { in Update()
33 clipWithShadow_ = clip->IsClipWithShadow(); in Update()
34 followChildSize_ = clip->IsFollowChild(); in Update()
35 width_ = NormalizeToPx(clip->GetWidth()); in Update()
36 height_ = NormalizeToPx(clip->GetHeight()); in Update()
37 offsetX_ = NormalizeToPx(clip->GetOffsetX()); in Update()
38 offsetY_ = NormalizeToPx(clip in Update()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_format_helper.c20 static unsigned int clip_offset(struct drm_rect *clip, in clip_offset() argument
23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
27 * drm_fb_memcpy - Copy clip buffer
31 * @clip: Clip rectangle area to copy
34 * is a small buffer containing the clip rect only.
37 struct drm_rect *clip) in drm_fb_memcpy()
40 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy()
41 unsigned int y, lines = clip in drm_fb_memcpy()
36 drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) drm_fb_memcpy() argument
62 drm_fb_memcpy_dstclip(void __iomem *dst, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) drm_fb_memcpy_dstclip() argument
95 drm_fb_swab(void *dst, void *src, struct drm_framebuffer *fb, struct drm_rect *clip, bool cached) drm_fb_swab() argument
169 drm_fb_xrgb8888_to_rgb565(void *dst, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip, bool swab) drm_fb_xrgb8888_to_rgb565() argument
214 drm_fb_xrgb8888_to_rgb565_dstclip(void __iomem *dst, unsigned int dst_pitch, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip, bool swab) drm_fb_xrgb8888_to_rgb565_dstclip() argument
266 drm_fb_xrgb8888_to_rgb888_dstclip(void __iomem *dst, unsigned int dst_pitch, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) drm_fb_xrgb8888_to_rgb888_dstclip() argument
308 drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb, struct drm_rect *clip) drm_fb_xrgb8888_to_gray8() argument
[all...]
/third_party/skia/src/core/
H A DSkEdgeClipper.cpp15 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument
16 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
48 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { in clipLine() argument
54 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight); in clipLine()
94 // Modify pts[] in place so that it is clipped in Y to the clip rect
95 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument
100 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y()
101 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y()
105 tmp[2].fY = clip in chop_quad_in_Y()
144 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) clipMonoQuad() argument
221 clipQuad(const SkPoint srcPts[3], const SkRect& clip) clipQuad() argument
283 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) chop_cubic_in_Y() argument
337 clipMonoCubic(const SkPoint src[4], const SkRect& clip) clipMonoCubic() argument
417 clipCubic(const SkPoint srcPts[4], const SkRect& clip) clipCubic() argument
563 ClipPath(const SkPath& path, const SkRect& clip, bool canCullToTheRight, void (*consume)(SkEdgeClipper*, bool newCtr, void* ctx), void* ctx) ClipPath() argument
[all...]
H A DSkLineClipper.cpp90 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument
95 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine()
103 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
104 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
105 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
106 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
124 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
125 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
127 if (tmp[index1].fY > clip in IntersectLine()
175 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[], bool canCullToTheRight) ClipLine() argument
[all...]
H A DSkScan.cpp20 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument
23 if (clip) { in FillIRect()
24 if (clip->isRect()) { in FillIRect()
25 const SkIRect& clipBounds = clip->getBounds(); in FillIRect()
36 SkRegion::Cliperator cliper(*clip, r); in FillIRect()
50 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument
55 SkScan::FillIRect(r, clip, blitter); in FillXRect()
58 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, in FillRect() argument
63 SkScan::FillIRect(ir, clip, blitter); in FillRect()
68 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect() argument
83 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) FillXRect() argument
98 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) FillRect() argument
[all...]
H A DSkScan_Hairline.cpp46 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip,
55 if (clip) {
56 clipBounds.set(clip->getBounds());
64 // We have to pre-clip the line to fit in a SkFixed, so we just chop
70 // Perform a clip in scalar space, so we catch huge values which might
72 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) {
86 if (clip) {
90 const SkIRect& bounds = clip->getBounds();
106 if (!clip->isRect() || !clipR.contains(ptsR)) {
107 blitter = clipper.apply(origBlitter, clip);
[all...]
H A DSkScan_Antihair.cpp21 our extends. The bug is that when this happens, we will set the clip to
22 nullptr (for speed), and thus draw outside of the clip by a pixel, which might
28 case (i.e. not setting the clip to nullptr) when we might not actually need
313 const SkIRect* clip, SkBlitter* blitter) {
321 // The caller must clip the line to [-32767.0 ... 32767.0] ahead of time
331 values are huge. A better fix might be to clip the original pts
337 do_anti_hairline(x0, y0, hx, hy, clip, blitter);
338 do_anti_hairline(hx, hy, x1, y1, clip, blitter);
383 if (clip){
384 if (istart >= clip
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
H A Dtest-drm_rect.c16 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_div_by_zero() local
21 * width/height is zero and dst and clip do not intersect. in igt_drm_rect_clip_scaled_div_by_zero()
25 drm_rect_init(&clip, 1, 1, 1, 1); in igt_drm_rect_clip_scaled_div_by_zero()
26 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_div_by_zero()
32 drm_rect_init(&clip, 1, 1, 1, 1); in igt_drm_rect_clip_scaled_div_by_zero()
33 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_div_by_zero()
42 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_not_clipped() local
48 drm_rect_init(&clip, 0, 0, 1, 1); in igt_drm_rect_clip_scaled_not_clipped()
50 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped()
64 drm_rect_init(&clip, in igt_drm_rect_clip_scaled_not_clipped()
98 struct drm_rect src, dst, clip; igt_drm_rect_clip_scaled_clipped() local
202 struct drm_rect src, dst, clip; igt_drm_rect_clip_scaled_signed_vs_unsigned() local
[all...]
H A Dtest-drm_damage_helper.c56 pr_err("Cannot have damage clip with no dimension.\n"); in check_damage_clip()
77 struct drm_rect clip; in igt_damage_iter_no_damage() local
95 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage()
99 FAIL_ON(!check_damage_clip(&state, &clip, 0, 0, 2048, 2048)); in igt_damage_iter_no_damage()
108 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src() local
128 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_fractional_src()
132 FAIL_ON(!check_damage_clip(&state, &clip, 3, 3, 1028, 772)); in igt_damage_iter_no_damage_fractional_src()
141 struct drm_rect clip; in igt_damage_iter_no_damage_src_moved() local
160 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_src_moved()
164 FAIL_ON(!check_damage_clip(&state, &clip, 1 in igt_damage_iter_no_damage_src_moved()
173 struct drm_rect clip; igt_damage_iter_no_damage_fractional_src_moved() local
206 struct drm_rect clip; igt_damage_iter_no_damage_not_visible() local
235 struct drm_rect clip; igt_damage_iter_no_damage_no_crtc() local
263 struct drm_rect clip; igt_damage_iter_no_damage_no_fb() local
288 struct drm_rect clip; igt_damage_iter_simple_damage() local
324 struct drm_rect clip; igt_damage_iter_single_damage() local
359 struct drm_rect clip; igt_damage_iter_single_damage_intersect_src() local
395 struct drm_rect clip; igt_damage_iter_single_damage_outside_src() local
430 struct drm_rect clip; igt_damage_iter_single_damage_fractional_src() local
468 struct drm_rect clip; igt_damage_iter_single_damage_intersect_fractional_src() local
507 struct drm_rect clip; igt_damage_iter_single_damage_outside_fractional_src() local
545 struct drm_rect clip; igt_damage_iter_single_damage_src_moved() local
582 struct drm_rect clip; igt_damage_iter_single_damage_fractional_src_moved() local
621 struct drm_rect clip; igt_damage_iter_damage() local
662 struct drm_rect clip; igt_damage_iter_damage_one_intersect() local
705 struct drm_rect clip; igt_damage_iter_damage_one_outside() local
742 struct drm_rect clip; igt_damage_iter_damage_src_moved() local
781 struct drm_rect clip; igt_damage_iter_damage_not_visible() local
[all...]
/third_party/skia/tests/
H A DMatrixClipCollapseTest.cpp18 // overall structure, bodies that draw something and model/clip state changes.
23 // be completely removed by the matrix/clip collapse. Note: every save in
32 // The ModelClip methods output matrix and clip ops in various orders and
34 // expected matrix & clip ops. Note that, currently, the entire clip stack
35 // is output for each MC state so the clip operations accumulate down the
39 // check on clip offsets
40 // - not sure if this is possible. The desire is to verify that the clip
43 // offset stored in the SkPicture to the debugger's clip objects
47 // rendering before and after images. Additionally the matrix/clip collaps
154 emit_clip(SkCanvas* canvas, ClipType clip) emit_clip() argument
194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) add_clip() argument
325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_clip_and_mat() argument
346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_mat_and_clip() argument
369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_double_mat_and_clip() argument
394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_mat_clip_clip() argument
417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body0() argument
438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body1() argument
466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body2() argument
504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) emit_body3() argument
552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct0() argument
568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct1() argument
591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct2() argument
620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) emit_struct3() argument
[all...]
H A DAAClipTest.cpp202 SkAAClip clip; in test_path_bounds() local
208 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds()
209 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); in test_path_bounds()
222 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds()
223 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); in test_path_bounds()
227 SkAAClip clip; in test_empty() local
229 REPORTER_ASSERT(reporter, clip.isEmpty()); in test_empty()
230 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty()); in test_empty()
232 clip.translate(10, 10, &clip); // shoul in test_empty()
325 SkAAClip clip; test_path_with_hole() local
343 SkAAClip clip; test_really_a_rect() local
401 SkAAClip clip; test_regressions() local
426 SkAAClip clip; test_huge() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_format_helper.c23 static unsigned int clip_offset(const struct drm_rect *clip, unsigned int pitch, unsigned int cpp) in clip_offset() argument
25 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
32 * @clip: Clip rectangle
35 * The byte offset of the clip rectangle's top-left corner within the framebuffer.
38 const struct drm_rect *clip) in drm_fb_clip_offset()
40 return clip_offset(clip, pitch, format->cpp[0]); in drm_fb_clip_offset()
47 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm()
50 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm()
51 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm()
37 drm_fb_clip_offset(unsigned int pitch, const struct drm_format_info *format, const struct drm_rect *clip) drm_fb_clip_offset() argument
45 __drm_fb_xfrm(void *dst, unsigned long dst_pitch, unsigned long dst_pixsize, const void *vaddr, const struct drm_framebuffer *fb, const struct drm_rect *clip, bool vaddr_cached_hint, void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) __drm_fb_xfrm() argument
88 __drm_fb_xfrm_toio(void __iomem *dst, unsigned long dst_pitch, unsigned long dst_pixsize, const void *vaddr, const struct drm_framebuffer *fb, const struct drm_rect *clip, bool vaddr_cached_hint, void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) __drm_fb_xfrm_toio() argument
133 drm_fb_xfrm(struct iosys_map *dst, const unsigned int *dst_pitch, const u8 *dst_pixsize, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip, bool vaddr_cached_hint, void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) drm_fb_xfrm() argument
173 drm_fb_memcpy(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_memcpy() argument
250 drm_fb_swab(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip, bool cached) drm_fb_swab() argument
310 drm_fb_xrgb8888_to_rgb332(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_rgb332() argument
380 drm_fb_xrgb8888_to_rgb565(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip, bool swab) drm_fb_xrgb8888_to_rgb565() argument
437 drm_fb_xrgb8888_to_xrgb1555(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_xrgb1555() argument
489 drm_fb_xrgb8888_to_argb1555(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_argb1555() argument
541 drm_fb_xrgb8888_to_rgba5551(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_rgba5551() argument
591 drm_fb_xrgb8888_to_rgb888(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_rgb888() argument
639 drm_fb_xrgb8888_to_argb8888(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_argb8888() argument
669 drm_fb_xrgb8888_to_abgr8888(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_abgr8888() argument
699 drm_fb_xrgb8888_to_xbgr8888(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_xbgr8888() argument
751 drm_fb_xrgb8888_to_xrgb2101010(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_xrgb2101010() argument
804 drm_fb_xrgb8888_to_argb2101010(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_argb2101010() argument
859 drm_fb_xrgb8888_to_gray8(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_gray8() argument
897 drm_fb_blit(struct iosys_map *dst, const unsigned int *dst_pitch, uint32_t dst_format, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_blit() argument
1003 drm_fb_xrgb8888_to_mono(struct iosys_map *dst, const unsigned int *dst_pitch, const struct iosys_map *src, const struct drm_framebuffer *fb, const struct drm_rect *clip) drm_fb_xrgb8888_to_mono() argument
[all...]
H A Ddrm_fbdev_generic.c142 struct drm_clip_rect *clip, in drm_fbdev_generic_damage_blit_real()
146 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_generic_damage_blit_real()
147 size_t len = clip->x2 - clip->x1; in drm_fbdev_generic_damage_blit_real()
153 offset += clip->x1 / 8; in drm_fbdev_generic_damage_blit_real()
154 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_generic_damage_blit_real()
157 offset += clip->x1 / 4; in drm_fbdev_generic_damage_blit_real()
158 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_generic_damage_blit_real()
161 offset += clip->x1 / 2; in drm_fbdev_generic_damage_blit_real()
162 len = DIV_ROUND_UP(len + clip in drm_fbdev_generic_damage_blit_real()
141 drm_fbdev_generic_damage_blit_real(struct drm_fb_helper *fb_helper, struct drm_clip_rect *clip, struct iosys_map *dst) drm_fbdev_generic_damage_blit_real() argument
180 drm_fbdev_generic_damage_blit(struct drm_fb_helper *fb_helper, struct drm_clip_rect *clip) drm_fbdev_generic_damage_blit() argument
215 drm_fbdev_generic_helper_fb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) drm_fbdev_generic_helper_fb_dirty() argument
[all...]
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_clip.c42 /* Second state atom for user clip planes:
46 struct pipe_clip_state clip; in st_update_clip() local
50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane)); in st_update_clip()
52 /* if we have a vertex shader that writes clip vertex we need to pass in st_update_clip()
60 memcpy(clip.ucp, in st_update_clip()
62 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp)); in st_update_clip()
64 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) { in st_update_clip()
65 st->state.clip in st_update_clip()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dcfhddsp.c29 int len, int clip) in filter()
36 if (clip) in filter()
37 output[(2*0+0)*out_stride] = av_clip_uintp2_c(output[(2*0+0)*out_stride], clip); in filter()
41 if (clip) in filter()
42 output[(2*0+1)*out_stride] = av_clip_uintp2_c(output[(2*0+1)*out_stride], clip); in filter()
47 if (clip) in filter()
48 output[(2*i+0)*out_stride] = av_clip_uintp2_c(output[(2*i+0)*out_stride], clip); in filter()
52 if (clip) in filter()
53 output[(2*i+1)*out_stride] = av_clip_uintp2_c(output[(2*i+1)*out_stride], clip); in filter()
58 if (clip) in filter()
26 filter(int16_t *output, ptrdiff_t out_stride, const int16_t *low, ptrdiff_t low_stride, const int16_t *high, ptrdiff_t high_stride, int len, int clip) filter() argument
93 horiz_filter_clip(int16_t *output, const int16_t *low, const int16_t *high, int width, int clip) horiz_filter_clip() argument
99 horiz_filter_clip_bayer(int16_t *output, const int16_t *low, const int16_t *high, int width, int clip) horiz_filter_clip_bayer() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/
H A Ddrm_damage_helper_test.c111 KUNIT_FAIL(test, "Cannot have damage clip with no dimension."); in check_damage_clip()
123 struct drm_rect clip; in drm_test_damage_iter_no_damage() local
130 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage()
134 check_damage_clip(test, &clip, 0, 0, 2048, 2048); in drm_test_damage_iter_no_damage()
141 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src() local
150 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage_fractional_src()
155 check_damage_clip(test, &clip, 3, 3, 1028, 772); in drm_test_damage_iter_no_damage_fractional_src()
162 struct drm_rect clip; in drm_test_damage_iter_no_damage_src_moved() local
170 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage_src_moved()
174 check_damage_clip(test, &clip, 1 in drm_test_damage_iter_no_damage_src_moved()
181 struct drm_rect clip; drm_test_damage_iter_no_damage_fractional_src_moved() local
201 struct drm_rect clip; drm_test_damage_iter_no_damage_not_visible() local
219 struct drm_rect clip; drm_test_damage_iter_no_damage_no_crtc() local
237 struct drm_rect clip; drm_test_damage_iter_no_damage_no_fb() local
257 struct drm_rect clip; drm_test_damage_iter_simple_damage() local
280 struct drm_rect clip; drm_test_damage_iter_single_damage() local
302 struct drm_rect clip; drm_test_damage_iter_single_damage_intersect_src() local
325 struct drm_rect clip; drm_test_damage_iter_single_damage_outside_src() local
347 struct drm_rect clip; drm_test_damage_iter_single_damage_fractional_src() local
372 struct drm_rect clip; drm_test_damage_iter_single_damage_intersect_fractional_src() local
399 struct drm_rect clip; drm_test_damage_iter_single_damage_outside_fractional_src() local
424 struct drm_rect clip; drm_test_damage_iter_single_damage_src_moved() local
449 struct drm_rect clip; drm_test_damage_iter_single_damage_fractional_src_moved() local
476 struct drm_rect clip; drm_test_damage_iter_damage() local
504 struct drm_rect clip; drm_test_damage_iter_damage_one_intersect() local
534 struct drm_rect clip; drm_test_damage_iter_damage_one_outside() local
558 struct drm_rect clip; drm_test_damage_iter_damage_src_moved() local
585 struct drm_rect clip; drm_test_damage_iter_damage_not_visible() local
[all...]
H A Ddrm_rect_test.c27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
32 * width/height is zero and dst and clip do not intersect. in drm_test_rect_clip_scaled_div_by_zero()
36 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
37 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
44 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
45 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
59 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
61 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
73 drm_rect_init(&clip, in drm_test_rect_clip_scaled_not_clipped()
101 struct drm_rect src, dst, clip; drm_test_rect_clip_scaled_clipped() local
191 struct drm_rect src, dst, clip; drm_test_rect_clip_scaled_signed_vs_unsigned() local
[all...]
/third_party/skia/gm/
H A Dinverseclip.cpp14 SkPathBuilder clip; in DEF_SIMPLE_GM() local
15 clip.setFillType(SkPathFillType::kInverseWinding); in DEF_SIMPLE_GM()
16 clip.moveTo(195.448f, 31); in DEF_SIMPLE_GM()
17 clip.cubicTo(97.9925f, 31, 18.99f, 105.23f, 18.99f, 196.797f); in DEF_SIMPLE_GM()
18 clip.cubicTo(18.99f, 288.365f, 97.9925f, 362.595f, 195.448f, 362.595f); in DEF_SIMPLE_GM()
19 clip.cubicTo(292.905f, 362.595f, 371.905f, 288.365f, 371.905f, 196.797f); in DEF_SIMPLE_GM()
20 clip.cubicTo(371.905f, 105.23f, 292.905f, 31, 195.448f, 31); in DEF_SIMPLE_GM()
21 clip.close(); in DEF_SIMPLE_GM()
22 canvas->clipPath(clip.detach(), true); in DEF_SIMPLE_GM()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_format_helper.h19 const struct drm_rect *clip);
23 const struct drm_rect *clip);
26 const struct drm_rect *clip, bool cached);
29 const struct drm_rect *clip);
32 const struct drm_rect *clip, bool swab);
35 const struct drm_rect *clip);
38 const struct drm_rect *clip);
41 const struct drm_rect *clip);
44 const struct drm_rect *clip);
47 const struct drm_rect *clip);
[all...]
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/
H A Dbtcx-risc.c147 dprintk("btcx: clip align %dx%d+%d+%d\n", in btcx_align()
178 unsigned int clip,skip; in btcx_calc_skips() local
183 for (clip = 0; clip < nclips; clip++) { in btcx_calc_skips()
186 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
188 if (clips[clip].c.left > (signed)width) in btcx_calc_skips()
192 if (line > clips[clip].c.top+clips[clip] in btcx_calc_skips()
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_format_helper.h13 struct drm_rect *clip);
16 struct drm_rect *clip);
18 struct drm_rect *clip, bool cached);
21 struct drm_rect *clip, bool swab);
24 struct drm_rect *clip, bool swab);
27 struct drm_rect *clip);
29 struct drm_rect *clip);
/third_party/skia/src/gpu/v1/
H A DSurfaceDrawContext.cpp329 void SurfaceDrawContext::drawGlyphRunListNoCache(const GrClip* clip, in drawGlyphRunListNoCache() argument
340 GrSubRunNoCachePainter painter{this, alloc, clip, viewMatrix, glyphRunList, paint}; in drawGlyphRunListNoCache()
351 void SurfaceDrawContext::drawGlyphRunListWithCache(const GrClip* clip, in drawGlyphRunListWithCache() argument
394 subRun.draw(clip, viewMatrix, glyphRunList, paint, this); in drawGlyphRunListWithCache()
400 void SurfaceDrawContext::drawGlyphRunList(const GrClip* clip, in drawGlyphRunList() argument
420 this->drawGlyphRunListNoCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList()
422 this->drawGlyphRunListWithCache(clip, viewMatrix, glyphRunList, paint); in drawGlyphRunList()
426 void SurfaceDrawContext::drawPaint(const GrClip* clip, in drawPaint() argument
430 // drawFilledQuad() will automatically restrict it to clip bounds for us if possible. in drawPaint()
435 this->fillRectToRect(clip, st in drawPaint()
462 attemptQuadOptimization( const GrClip* clip, const GrUserStencilSettings* stencilSettings, GrAA* aa, DrawQuad* quad, GrPaint* paint) attemptQuadOptimization() argument
611 drawFilledQuad(const GrClip* clip, GrPaint&& paint, GrAA aa, DrawQuad* quad, const GrUserStencilSettings* ss) drawFilledQuad() argument
644 drawTexture(const GrClip* clip, GrSurfaceProxyView view, SkAlphaType srcAlphaType, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, SkBlendMode blendMode, const SkPMColor4f& color, const SkRect& srcRect, const SkRect& dstRect, GrAA aa, GrQuadAAFlags edgeAA, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> colorSpaceXform) drawTexture() argument
690 drawTexturedQuad(const GrClip* clip, GrSurfaceProxyView proxyView, SkAlphaType srcAlphaType, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, SkBlendMode blendMode, GrAA aa, DrawQuad* quad, const SkRect* subset) drawTexturedQuad() argument
731 drawRect(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& rect, const GrStyle* style) drawRect() argument
784 fillRectToRect(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& rectToDraw, const SkRect& localRect) fillRectToRect() argument
840 drawQuadSet(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const GrQuadSetEntry quads[], int cnt) drawQuadSet() argument
914 stencilPath(const GrHardClip* clip, GrAA doStencilMSAA, const SkMatrix& viewMatrix, const SkPath& path) stencilPath() argument
952 drawTextureSet(const GrClip* clip, GrTextureSetEntry set[], int cnt, int proxyRunCnt, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, SkBlendMode mode, GrAA aa, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> texXform) drawTextureSet() argument
979 drawVertices(const GrClip* clip, GrPaint&& paint, const SkMatrixProvider& matrixProvider, sk_sp<SkVertices> vertices, GrPrimitiveType* overridePrimType) drawVertices() argument
1005 drawAtlas(const GrClip* clip, GrPaint&& paint, const SkMatrix& viewMatrix, int spriteCount, const SkRSXform xform[], const SkRect texRect[], const SkColor colors[]) drawAtlas() argument
1045 const GrClip* clip = origClip; drawRRect() local
1122 drawFastShadow(const GrClip* clip, const SkMatrix& viewMatrix, const SkPath& path, const SkDrawShadowRec& rec) drawFastShadow() argument
1328 drawRegion(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRegion& region, const GrStyle& style, const GrUserStencilSettings* ss) drawRegion() argument
1363 drawOval(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& oval, const GrStyle& style) drawOval() argument
1427 drawArc(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const GrStyle& style) drawArc() argument
1466 drawImageLattice(const GrClip* clip, GrPaint&& paint, const SkMatrix& viewMatrix, GrSurfaceProxyView view, SkAlphaType alphaType, sk_sp<GrColorSpaceXform> csxf, GrSamplerState::Filter filter, std::unique_ptr<SkLatticeIter> iter, const SkRect& dst) drawImageLattice() argument
1549 drawPath(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkPath& path, const GrStyle& style) drawPath() argument
1564 drawShape(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, GrStyledShape&& shape) drawShape() argument
1588 get_clip_bounds(const SurfaceDrawContext* sdc, const GrClip* clip) get_clip_bounds() argument
1592 drawAndStencilPath(const GrHardClip* clip, const GrUserStencilSettings* ss, SkRegion::Op op, bool invert, GrAA aa, const SkMatrix& viewMatrix, const SkPath& path) drawAndStencilPath() argument
1652 clip, drawAndStencilPath() local
1674 drawStrokedLine(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, const SkPoint points[2], const SkStrokeRec& stroke) drawStrokedLine() argument
1721 drawSimpleShape(const GrClip* clip, GrPaint* paint, GrAA aa, const SkMatrix& viewMatrix, const GrStyledShape& shape) drawSimpleShape() argument
1784 drawShapeUsingPathRenderer(const GrClip* clip, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, GrStyledShape&& shape, bool attemptDrawSimple) drawShapeUsingPathRenderer() argument
1892 clip, drawShapeUsingPathRenderer() local
1901 addDrawOp(const GrClip* clip, GrOp::Owner op, const std::function<WillAddOpFn>& willAddFn) addDrawOp() argument
[all...]
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeRegionTest.cpp370 OH_Drawing_Region *clip = OH_Drawing_RegionCreate(); in HWTEST_F() local
372 OH_Drawing_RegionSetRect(clip, rect); in HWTEST_F()
375 // 1. OH_Drawing_RegionSetPath takes correct region, path, and clip object pointers as input in HWTEST_F()
376 EXPECT_TRUE(OH_Drawing_RegionSetPath(region, path, clip)); in HWTEST_F()
380 OH_Drawing_RegionDestroy(clip); in HWTEST_F()
395 OH_Drawing_Region *clip = OH_Drawing_RegionCreate(); in HWTEST_F() local
397 OH_Drawing_RegionSetRect(clip, rect); in HWTEST_F()
399 // 1. OH_Drawing_RegionSetPath takes correct path and clip object pointers as input, region is nullptr in HWTEST_F()
400 OH_Drawing_RegionSetPath(nullptr, path, clip); in HWTEST_F()
405 OH_Drawing_RegionDestroy(clip); in HWTEST_F()
420 OH_Drawing_Region *clip = OH_Drawing_RegionCreate(); HWTEST_F() local
445 OH_Drawing_Region *clip = OH_Drawing_RegionCreate(); HWTEST_F() local
470 OH_Drawing_Region *clip = OH_Drawing_RegionCreate(); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Drender_dialog_modal.cpp105 auto clip = GetRenderClip(); in AnimateTo() local
106 if (!clip) { in AnimateTo()
107 LOGE("AnimateTo failed. render clip is null."); in AnimateTo()
111 double from = clip->GetHeight(); in AnimateTo()
191 auto clip = GetRenderClip(); in PerformClip() local
192 if (!clip) { in PerformClip()
193 LOGE("Perform build failed. render clip is null"); in PerformClip()
211 clip->SetOffsetY(clip->GetLayoutSize().Height() - pageHeight); in PerformClip()
212 clip in PerformClip()
243 auto clip = GetRenderClip(); MovePage() local
[all...]
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_clip_cull_distance_arrays.c30 * This pass combines clip and cull distance arrays in separate locations and
37 * Get the length of the clip/cull distance array, looking past
47 * underlying clip/cull distance array length, not the per-vertex in get_unwrapped_array_length()
70 nir_variable *clip = NULL; in combine_clip_cull() local
74 clip = var; in combine_clip_cull()
80 if (!cull && !clip) { in combine_clip_cull()
92 if (!cull && clip) { in combine_clip_cull()
94 if (!clip->data.compact) in combine_clip_cull()
98 * the combined clip/cull distance array was clip in combine_clip_cull()
[all...]

Completed in 15 milliseconds

12345678910>>...21