| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_format_helper.c | 20 static unsigned int clip_offset(struct drm_rect *clip, in clip_offset() argument 23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset() 37 struct drm_rect *clip) in drm_fb_memcpy() argument 40 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy() 41 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy() 43 vaddr += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy() 64 struct drm_rect *clip) in drm_fb_memcpy_dstclip() argument 67 unsigned int offset = clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy_dstclip() 68 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip() 69 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy_dstclip() [all …]
|
| H A D | drm_rect.c | 55 static u32 clip_scaled(int src, int dst, int *clip) in clip_scaled() argument 63 *clip = min(*clip, dst); in clip_scaled() 65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled() 93 const struct drm_rect *clip) in drm_rect_clip_scaled() argument 97 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 105 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled() 113 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled() 121 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
|
| H A D | drm_damage_helper.c | 364 struct drm_rect clip; in drm_atomic_helper_damage_merged() local 373 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged() 374 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged() 375 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged() 376 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged() 377 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
|
| H A D | drm_fb_helper.c | 391 struct drm_clip_rect *clip) in drm_fb_helper_dirty_blit_real() argument 395 size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; in drm_fb_helper_dirty_blit_real() 398 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_helper_dirty_blit_real() 401 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_helper_dirty_blit_real() 416 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty_work() local 422 clip_copy = *clip; in drm_fb_helper_dirty_work() 423 clip->x1 = clip->y1 = ~0; in drm_fb_helper_dirty_work() 424 clip->x2 = clip->y2 = 0; in drm_fb_helper_dirty_work() 637 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty() local 644 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_dirty() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/ |
| H A D | test-drm_damage_helper.c | 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, 10, 10, 1034, 778)); in igt_damage_iter_no_damage_src_moved() 173 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src_moved() local [all …]
|
| H A D | test-drm_rect.c | 16 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_div_by_zero() local 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, 0, 0, 1, 1); in igt_drm_rect_clip_scaled_not_clipped() 66 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/bt8xx/ |
| H A D | btcx-risc.c | 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].c.height-1) in btcx_calc_skips() 194 if (line < clips[clip].c.top) { in btcx_calc_skips() 195 if (maxline > clips[clip].c.top-1) in btcx_calc_skips() 196 maxline = clips[clip].c.top-1; in btcx_calc_skips() 199 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips() 200 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/libwmf/libwmf/ |
| H A D | libwmf-0.2.8.4-useafterfree.patch | 5 --- libwmf-0.2.8.4/src/extra/gd/gd_clip.c.CVE-2009-1364-im-clip-list 2009-04-24 04:06:44.000000000 … 8 { more = gdRealloc (im->clip->list,(im->clip->max + 8) * sizeof (gdClipRectangle)); 10 im->clip->max += 8; 11 + im->clip->list = more; 13 im->clip->list[im->clip->count] = (*rect); 14 im->clip->count++;
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_format_helper.h | 13 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);
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/algorithm/ |
| H A D | generate_clip_ids_impl.hpp | 24 renderable.clip = {}; in update() 25 Leaf leaf{ renderable.clip }; in update() 46 leaf.clip = existing.clip; in update() 50 if (leaf.clip.reference.none()) { in update() 70 renderable.clip.mask |= mask; in update() 73 if (renderable.clip.reference.none()) { in update() 74 renderable.clip.reference = uint32_t(count++) << bit_offset; in update()
|
| H A D | generate_clip_ids.cpp | 17 ClipIDGenerator::Leaf::Leaf(ClipID& clip_) : clip(clip_) { in Leaf() 41 auto res = clipIDs.emplace(id, leaf.clip); in getClipIDs() 45 res.first->second |= leaf.clip; in getClipIDs()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/udl/ |
| H A D | udl_modeset.c | 247 static int udl_aligned_damage_clip(struct drm_rect *clip, int x, int y, in udl_aligned_damage_clip() argument 261 clip->x1 = x1; in udl_aligned_damage_clip() 262 clip->y1 = y; in udl_aligned_damage_clip() 263 clip->x2 = x2; in udl_aligned_damage_clip() 264 clip->y2 = y + height; in udl_aligned_damage_clip() 277 struct drm_rect clip; in udl_handle_damage() local 286 ret = udl_aligned_damage_clip(&clip, x, y, width, height); in udl_handle_damage() 289 else if ((clip.x2 > fb->width) || (clip.y2 > fb->height)) in udl_handle_damage() 312 for (i = clip.y1; i < clip.y2; i++) { in udl_handle_damage() 314 const int byte_offset = line_offset + (clip.x1 << log_bpp); in udl_handle_damage() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/tiny/ |
| H A D | st7586.c | 66 struct drm_rect *clip) in st7586_xrgb8888_to_gray332() argument 68 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332() 76 drm_fb_xrgb8888_to_gray8(buf, vaddr, fb, clip); in st7586_xrgb8888_to_gray332() 79 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332() 80 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332() 92 struct drm_rect *clip) in st7586_buf_copy() argument 106 st7586_xrgb8888_to_gray332(dst, src, fb, clip); in st7586_buf_copy()
|
| /OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | draw.py | 354 def clip_visible(clip, rect): argument 355 xmax = max (clip[0], rect[0]) 356 ymax = max (clip[1], rect[1]) 357 xmin = min (clip[0] + clip[2], rect[0] + rect[2]) 358 ymin = min (clip[1] + clip[3], rect[1] + rect[3]) 361 def render_charts(ctx, options, clip, trace, curr_y, w, h, sec_w): argument 373 if clip_visible (clip, chart_rect): 393 if clip_visible (clip, chart_rect): 402 if clip_visible (clip, chart_rect): 452 if clip_visible (clip, chart_rect): [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/vproc/rga/ |
| H A D | rga.cpp | 265 request->clip.xmin = 0; in rga_control() 266 request->clip.xmax = width - 1; in rga_control() 267 request->clip.ymin = 0; in rga_control() 268 request->clip.ymax = height - 1; in rga_control() 334 request->clip.xmin = 0; in rga_copy() 335 request->clip.xmax = dst_w - 1; in rga_copy() 336 request->clip.ymin = 0; in rga_copy() 337 request->clip.ymax = dst_h - 1; in rga_copy() 397 request->clip.xmin = 0; in rga_dup_field() 398 request->clip.xmax = h_str * 2 - 1; in rga_dup_field() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/geojsonvt/6.5.1/include/mapbox/ |
| H A D | geojsonvt.hpp | 68 bool clip = false) { in geoJSONToTile() argument 77 if (clip) { in geoJSONToTile() 80 const auto left = detail::clip<0>(features, (x - p) / z2, (x + 1 + p) / z2, -1, 2); in geoJSONToTile() 81 features = detail::clip<1>(left, (y - p) / z2, (y + 1 + p) / z2, -1, 2); in geoJSONToTile() 233 const auto left = detail::clip<0>(features, (x - p) / z2, (x + 0.5 + p) / z2, min.x, max.x); in splitTile() 235 splitTile(detail::clip<1>(left, (y - p) / z2, (y + 0.5 + p) / z2, min.y, max.y), z + 1, in splitTile() 237 splitTile(detail::clip<1>(left, (y + 0.5 - p) / z2, (y + 1 + p) / z2, min.y, max.y), z + 1, in splitTile() 241 detail::clip<0>(features, (x + 0.5 - p) / z2, (x + 1 + p) / z2, min.x, max.x); in splitTile() 243 splitTile(detail::clip<1>(right, (y - p) / z2, (y + 0.5 + p) / z2, min.y, max.y), z + 1, in splitTile() 245 splitTile(detail::clip<1>(right, (y + 0.5 - p) / z2, (y + 1 + p) / z2, min.y, max.y), z + 1, in splitTile()
|
| /OK3568_Linux_fs/external/linux-rga/core/ |
| H A D | NormalRga.cpp | 244 RECT clip; in NormalRgaPaletteTable() local 339 dstVirW, dstVirH, &clip, in NormalRgaPaletteTable() 395 RECT clip; in RgaBlit() local 1046 clip.xmin = 0; in RgaBlit() 1047 clip.xmax = dstVirW - 1; in RgaBlit() 1048 clip.ymin = 0; in RgaBlit() 1049 clip.ymax = dstVirH - 1; in RgaBlit() 1091 src1VirW, src1VirH, &clip, in RgaBlit() 1097 dstVirW, dstVirH, &clip, in RgaBlit() 1110 src1VirW, src1VirH, &clip, in RgaBlit() [all …]
|
| H A D | NormalRgaApi.cpp | 346 RECT *clip, in NormalRgaSetDstVirtualInfo() argument 352 RECT *clip, in NormalRgaSetDstVirtualInfo() 363 msg->clip.xmin = clip->xmin; in NormalRgaSetDstVirtualInfo() 364 msg->clip.xmax = clip->xmax; in NormalRgaSetDstVirtualInfo() 365 msg->clip.ymin = clip->ymin; in NormalRgaSetDstVirtualInfo() 366 msg->clip.ymax = clip->ymax; in NormalRgaSetDstVirtualInfo() 387 RECT *clip, in NormalRgaSetPatVirtualInfo() argument 393 RECT *clip, in NormalRgaSetPatVirtualInfo() 404 msg->clip.xmin = clip->xmin; in NormalRgaSetPatVirtualInfo() 405 msg->clip.xmax = clip->xmax; in NormalRgaSetPatVirtualInfo() [all …]
|
| H A D | NormalRga.h | 126 RECT *clip, 132 RECT *clip, 149 RECT *clip, 155 RECT *clip,
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/geojsonvt/6.5.1/include/mapbox/geojsonvt/ |
| H A D | wrap.hpp | 21 auto left = clip<0>(features, -1 - buffer, buffer, -1, 2); in wrap() 23 auto right = clip<0>(features, 1 - buffer, 2 + buffer, -1, 2); in wrap() 29 auto merged = clip<0>(features, -buffer, 1 + buffer, -1, 2); in wrap()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_stdu.c | 711 ddirty.base.clip = vmw_stdu_bo_clip; in vmw_kms_stdu_dma() 721 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_dma() 884 sdirty.base.clip = vmw_kms_stdu_surface_clip; in vmw_kms_stdu_surface_dirty() 1212 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_populate_clip() argument 1220 box->x = clip->x1; in vmw_stdu_bo_populate_clip() 1221 box->y = clip->y1; in vmw_stdu_bo_populate_clip() 1223 box->w = drm_rect_width(clip); in vmw_stdu_bo_populate_clip() 1224 box->h = drm_rect_height(clip); in vmw_stdu_bo_populate_clip() 1262 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument 1376 bo_update.base.clip = vmw_stdu_bo_clip_cpu; in vmw_stdu_plane_update_bo() [all …]
|
| H A D | vmwgfx_scrn.c | 505 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument 514 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip() 515 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip() 516 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip() 517 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip() 561 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo() 621 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument 630 rect->left = clip->x1; in vmw_sou_surface_clip_rect() 631 rect->top = clip->y1; in vmw_sou_surface_clip_rect() 632 rect->right = clip->x2; in vmw_sou_surface_clip_rect() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/rmi4/ |
| H A D | rmi_2d_sensor.txt | 23 - syna,clip-x-low: Sets a minimum value for X. 24 - syna,clip-y-low: Sets a minimum value for Y. 25 - syna,clip-x-high: Sets a maximum value for X. 26 - syna,clip-y-high: Sets a maximum value for Y.
|
| /OK3568_Linux_fs/external/xserver/glamor/ |
| H A D | glamor_glyphblt.c | 50 RegionPtr clip = gc->pCompositeClip; in glamor_poly_glyph_blt_gl() local 107 if (!RegionContainsPoint(clip, pt_x_i, pt_y_i, NULL)) in glamor_poly_glyph_blt_gl() 177 RegionPtr clip = gc->pCompositeClip; in glamor_push_pixels_gl() local 215 RegionContainsPoint(clip, in glamor_push_pixels_gl()
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/ |
| H A D | ia_css_bnr.host.c | 40 to->clip = uDIGIT_FITTING(16384U, 16, SH_CSS_BAYER_BITS); in ia_css_bnr_encode() 64 "bnr_clip", bnr->clip); in ia_css_bnr_dump()
|