/kernel/linux/linux-6.6/drivers/gpu/drm/sprd/ |
H A D | sprd_dpu.c | 503 static int sprd_plane_atomic_check(struct drm_plane *plane, in sprd_plane_atomic_check() argument 507 plane); in sprd_plane_atomic_check() 549 static void sprd_plane_create_properties(struct sprd_plane *plane, int index) in sprd_plane_create_properties() argument 556 drm_plane_create_rotation_property(&plane->base, in sprd_plane_create_properties() 562 drm_plane_create_alpha_property(&plane->base); in sprd_plane_create_properties() 565 drm_plane_create_blend_mode_property(&plane->base, supported_modes); in sprd_plane_create_properties() 568 drm_plane_create_zpos_immutable_property(&plane->base, index); in sprd_plane_create_properties() 588 struct sprd_plane *plane, *primary; in sprd_planes_init() local 596 plane = drmm_universal_plane_alloc(drm, struct sprd_plane, base, in sprd_planes_init() 600 if (IS_ERR(plane)) { in sprd_planes_init() 826 struct sprd_plane *plane; sprd_dpu_bind() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ingenic/ |
H A D | ingenic-drm-drv.c | 55 * f1 (aka. foreground1) is our primary plane, on top of which 298 * If IPU plane is enabled, enable IPU as source for the F1 in ingenic_drm_crtc_atomic_begin() 299 * plane; otherwise use regular DMA. in ingenic_drm_crtc_atomic_begin() 340 static int ingenic_drm_plane_atomic_check(struct drm_plane *plane, in ingenic_drm_plane_atomic_check() argument 343 struct ingenic_drm *priv = drm_device_get_priv(plane->dev); in ingenic_drm_plane_atomic_check() 345 struct drm_crtc *crtc = state->crtc ?: plane->state->crtc; in ingenic_drm_plane_atomic_check() 374 * Require full modeset if enabling or disabling a plane, or changing in ingenic_drm_plane_atomic_check() 378 (!plane->state->fb || !state->fb || in ingenic_drm_plane_atomic_check() 379 plane->state->crtc_x != state->crtc_x || in ingenic_drm_plane_atomic_check() 380 plane in ingenic_drm_plane_atomic_check() 389 ingenic_drm_plane_enable(struct ingenic_drm *priv, struct drm_plane *plane) ingenic_drm_plane_enable() argument 404 ingenic_drm_plane_disable(struct device *dev, struct drm_plane *plane) ingenic_drm_plane_disable() argument 419 ingenic_drm_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) ingenic_drm_plane_atomic_disable() argument 427 ingenic_drm_plane_config(struct device *dev, struct drm_plane *plane, u32 fourcc) ingenic_drm_plane_config() argument 487 ingenic_drm_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *oldstate) ingenic_drm_plane_atomic_update() argument [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | vk_format.h | 146 vk_format_get_plane_width(VkFormat format, unsigned plane, unsigned width) in vk_format_get_plane_width() argument 148 return util_format_get_plane_width(vk_format_to_pipe_format(format), plane, width); in vk_format_get_plane_width() 152 vk_format_get_plane_height(VkFormat format, unsigned plane, unsigned height) in vk_format_get_plane_height() argument 154 return util_format_get_plane_height(vk_format_to_pipe_format(format), plane, height); in vk_format_get_plane_height()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop2.c | 186 * Number of windows that are registered as plane, may be less than the 445 static bool rockchip_afbc(struct drm_plane *plane, u64 modifier) in rockchip_afbc() argument 452 for (i = 0 ; i < plane->modifier_count; i++) in rockchip_afbc() 453 if (plane->modifiers[i] == modifier) in rockchip_afbc() 459 static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format, in rockchip_vop2_mod_supported() argument 462 struct vop2_win *win = to_vop2_win(plane); in rockchip_vop2_mod_supported() 471 if (!rockchip_afbc(plane, modifier)) { in rockchip_vop2_mod_supported() 560 * 0: half mode, for plane input width range 2048 ~ 4096 561 * 1: half mode, for cluster work at 2 * 2048 plane mode 934 static int vop2_plane_atomic_check(struct drm_plane *plane, in vop2_plane_atomic_check() argument 1006 vop2_plane_atomic_disable(struct drm_plane *plane, struct drm_atomic_state *state) vop2_plane_atomic_disable() argument 1028 vop2_plane_setup_color_key(struct drm_plane *plane, u32 color_key) vop2_plane_setup_color_key() argument 1074 vop2_plane_atomic_update(struct drm_plane *plane, struct drm_atomic_state *state) vop2_plane_atomic_update() argument 1644 struct drm_plane *plane; vop2_crtc_atomic_check() local 1779 struct drm_plane *plane; vop2_setup_alpha() local 1883 struct drm_plane *plane; vop2_setup_layer_mixer() local 2030 struct drm_plane *plane; vop2_crtc_atomic_begin() local 2261 struct drm_plane *plane; vop2_create_crtcs() local 2387 struct drm_plane *plane, *tmpp; vop2_destroy_crtcs() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | huffyuvenc.c | 464 static int encode_plane_bitstream(HYuvContext *s, int width, int plane) in encode_plane_bitstream() argument 480 s->stats[plane][y0]++; in encode_plane_bitstream() 482 s->stats[plane][y0>>2]++; in encode_plane_bitstream() 484 put_bits(&s->pb, s->len[plane][y0], s->bits[plane][y0]); in encode_plane_bitstream() 486 put_bits(&s->pb, s->len[plane][y0>>2], s->bits[plane][y0>>2]);\ in encode_plane_bitstream() 499 s->stats[plane][y0]++;\ in encode_plane_bitstream() 500 s->stats[plane][y1]++; in encode_plane_bitstream() 502 s->stats[plane][y in encode_plane_bitstream() 912 int plane; encode_frame() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/ |
H A D | omap_drv.c | 86 * plane update is executed only after the first vblank in omap_atomic_commit_tail() 100 * a plane. For now, skip the WA for OMAP3. in omap_atomic_commit_tail() 128 return sa->plane->base.id - sb->plane->base.id; in drm_atomic_state_normalized_zpos_cmp() 143 struct drm_plane *plane; in omap_atomic_update_normalize_zpos() local 158 /* Reset plane increment and index value for every crtc */ in omap_atomic_update_normalize_zpos() 165 drm_for_each_plane_mask(plane, dev, new_state->plane_mask) { in omap_atomic_update_normalize_zpos() 168 plane); in omap_atomic_update_normalize_zpos() 180 plane = states[i]->plane; in omap_atomic_update_normalize_zpos() 434 struct drm_plane *plane; omap_modeset_init() local [all...] |
H A D | omap_overlay.c | 62 * Assign a new overlay to a plane with the required caps and supported fourcc 63 * If a plane need a new overlay, the previous one should have been released 65 * This should be called from the plane atomic_check() in order to prepare the 68 int omap_overlay_assign(struct drm_atomic_state *s, struct drm_plane *plane, in omap_overlay_assign() argument 81 overlay_map[ovl->idx] = plane; in omap_overlay_assign() 93 overlay_map[r_ovl->idx] = plane; in omap_overlay_assign() 97 DBG("%s: assign to plane %s caps %x", ovl->name, plane->name, caps); in omap_overlay_assign() 100 DBG("%s: assign to right of plane %s caps %x", in omap_overlay_assign() 101 r_ovl->name, plane in omap_overlay_assign() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_perspective.c | 446 int plane; in filter_frame() local 463 for (plane = 0; plane < s->nb_planes; plane++) { in filter_frame() 464 int hsub = plane == 1 || plane == 2 ? s->hsub : 0; in filter_frame() 465 int vsub = plane == 1 || plane == 2 ? s->vsub : 0; in filter_frame() 466 ThreadData td = {.dst = out->data[plane], in filter_frame() 467 .dst_linesize = out->linesize[plane], in filter_frame() [all...] |
H A D | vf_thumbnail.c | 187 for (int plane = 0; plane < 3; plane++) { in filter_frame() 188 const uint8_t *p = frame->data[plane]; in filter_frame() 189 for (j = 0; j < s->planeheight[plane]; j++) { in filter_frame() 190 for (i = 0; i < s->planewidth[plane]; i++) in filter_frame() 191 hist[256*plane + p[i]]++; in filter_frame() 192 p += frame->linesize[plane]; in filter_frame()
|
H A D | vf_neighbor.c | 263 int plane, y; in filter_slice() local 265 for (plane = 0; plane < s->nb_planes; plane++) { in filter_slice() 267 const int threshold = s->threshold[plane]; in filter_slice() 268 const int stride = in->linesize[plane]; in filter_slice() 269 const int dstride = out->linesize[plane]; in filter_slice() 270 const int height = s->planeheight[plane]; in filter_slice() 271 const int width = s->planewidth[plane]; in filter_slice() 274 const uint8_t *src = (const uint8_t *)in->data[plane] in filter_slice() [all...] |
H A D | vf_tinterlace.c | 316 int plane, vsub = desc->log2_chroma_h; in copy_picture_field() local 320 for (plane = 0; plane < desc->nb_components; plane++) { in copy_picture_field() 321 int lines = plane == 1 || plane == 2 ? AV_CEIL_RSHIFT(src_h, vsub) : src_h; in copy_picture_field() 322 int cols = plane == 1 || plane == 2 ? AV_CEIL_RSHIFT( w, hsub) : w; in copy_picture_field() 323 uint8_t *dstp = dst[plane]; in copy_picture_field() 324 const uint8_t *srcp = src[plane]; in copy_picture_field() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_crtc.c | 405 struct drm_plane *plane, in _dpu_crtc_blend_setup_pipe() 422 state = plane->state; in _dpu_crtc_blend_setup_pipe() 424 trace_dpu_crtc_setup_mixer(DRMID(crtc), DRMID(plane), in _dpu_crtc_blend_setup_pipe() 429 DRM_DEBUG_ATOMIC("crtc %d stage:%d - plane %d sspp %d fb %d multirect_idx %d\n", in _dpu_crtc_blend_setup_pipe() 432 plane->base.id, in _dpu_crtc_blend_setup_pipe() 449 struct drm_plane *plane; in _dpu_crtc_blend_setup_mixer() local 462 drm_atomic_crtc_for_each_plane(plane, crtc) { in _dpu_crtc_blend_setup_mixer() 463 state = plane->state; in _dpu_crtc_blend_setup_mixer() 479 _dpu_crtc_blend_setup_pipe(crtc, plane, in _dpu_crtc_blend_setup_mixer() 487 _dpu_crtc_blend_setup_pipe(crtc, plane, in _dpu_crtc_blend_setup_mixer() 404 _dpu_crtc_blend_setup_pipe(struct drm_crtc *crtc, struct drm_plane *plane, struct dpu_crtc_mixer *mixer, u32 num_mixers, enum dpu_stage stage, struct dpu_format *format, uint64_t modifier, struct dpu_sw_pipe *pipe, unsigned int stage_idx, struct dpu_hw_stage_cfg *stage_cfg ) _dpu_crtc_blend_setup_pipe() argument 849 struct drm_plane *plane; dpu_crtc_atomic_flush() local 1191 struct drm_plane *plane; dpu_crtc_atomic_check() local 1283 struct drm_plane *plane; _dpu_debugfs_status_show() local 1463 dpu_crtc_init(struct drm_device *dev, struct drm_plane *plane, struct drm_plane *cursor) dpu_crtc_init() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
H A D | malidp_crtc.c | 254 struct drm_plane *plane; in malidp_crtc_atomic_check_scaling() local 267 /* The scaling engine can only handle one plane at a time. */ in malidp_crtc_atomic_check_scaling() 271 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling() 272 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_crtc_atomic_check_scaling() 342 struct drm_plane *plane; in malidp_crtc_atomic_check() local 351 * Each plane has set its required memory size in the ->plane_check() in malidp_crtc_atomic_check() 355 * The rotation memory allocation algorithm (for each plane): in malidp_crtc_atomic_check() 357 * rotate memory in the bank is available for use by the plane. in malidp_crtc_atomic_check() 358 * b. If other rotated or compressed planes exist, and plane's in malidp_crtc_atomic_check() 362 * c. If other rotated or compressed planes exist, and plane' in malidp_crtc_atomic_check() 526 struct drm_plane *primary = NULL, *plane; malidp_crtc_init() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_atomic.c | 29 * See intel_atomic_plane.c for the plane-specific atomic functionality. 334 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_atomic_setup_scaler() local 338 } else if (icl_is_hdr_plane(dev_priv, plane->id)) { in intel_atomic_setup_scaler() 342 * we don't need the scaler to upsample the UV plane. in intel_atomic_setup_scaler() 396 struct drm_plane *plane = NULL; in intel_atomic_setup_scalers() local 414 * - as part of plane commit, scalers will be committed in intel_atomic_setup_scalers() 447 /* plane scaler case: assign as a plane scaler */ in intel_atomic_setup_scalers() 448 /* find the plane tha in intel_atomic_setup_scalers() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/ |
H A D | malidp_crtc.c | 257 struct drm_plane *plane; in malidp_crtc_atomic_check_scaling() local 270 /* The scaling engine can only handle one plane at a time. */ in malidp_crtc_atomic_check_scaling() 274 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling() 275 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_crtc_atomic_check_scaling() 347 struct drm_plane *plane; in malidp_crtc_atomic_check() local 356 * Each plane has set its required memory size in the ->plane_check() in malidp_crtc_atomic_check() 360 * The rotation memory allocation algorithm (for each plane): in malidp_crtc_atomic_check() 362 * rotate memory in the bank is available for use by the plane. in malidp_crtc_atomic_check() 363 * b. If other rotated or compressed planes exist, and plane's in malidp_crtc_atomic_check() 367 * c. If other rotated or compressed planes exist, and plane' in malidp_crtc_atomic_check() 529 struct drm_plane *primary = NULL, *plane; malidp_crtc_init() local [all...] |
/third_party/skia/tools/gpu/ |
H A D | YUVUtils.cpp | 96 const auto& pmap = fPixmaps.plane(yuvaLocations[c].fPlane); 101 const auto& pmap = fPixmaps.plane(aPlane); 123 SkASSERT(fPixmaps.plane(i).colorType() == pixmaps.plane(i).colorType()); 124 SkASSERT(fPixmaps.plane(i).dimensions() == pixmaps.plane(i).dimensions()); 125 SkASSERT(fPixmaps.plane(i).rowBytes() == pixmaps.plane(i).rowBytes()); 126 fPixmaps.plane(i).readPixels(pixmaps.plane( [all...] |
/third_party/skia/platform_tools/libraries/include/ |
H A D | arcore_c_api.h | 125 /// @defgroup plane Plane 277 /// @addtogroup plane 400 inline ArTrackable *ArAsTrackable(ArPlane *plane) { in ArAsTrackable() argument 401 return reinterpret_cast<ArTrackable *>(plane); in ArAsTrackable() 715 /// Select the behavior of the plane detection subsystem. 740 /// @ingroup plane 741 /// Simple summary of the normal vector of a plane, for filtering purposes. 743 /// A horizontal plane facing upward (for example a floor or tabletop). in AR_DEFINE_ENUM() 745 /// A horizontal plane facing downward (for example a ceiling). in AR_DEFINE_ENUM() 747 /// A vertical plane (fo in AR_DEFINE_ENUM() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/ |
H A D | rcar_du_crtc.c | 329 static unsigned int plane_zpos(struct rcar_du_plane *plane) in plane_zpos() argument 331 return plane->plane.state->normalized_zpos; in plane_zpos() 335 plane_format(struct rcar_du_plane *plane) in plane_format() argument 337 return to_rcar_plane_state(plane->plane.state)->format; in plane_format() 352 struct rcar_du_plane *plane = &rcrtc->group->planes[i]; in rcar_du_crtc_update_planes() local 355 if (plane->plane.state->crtc != &rcrtc->crtc || in rcar_du_crtc_update_planes() 356 !plane in rcar_du_crtc_update_planes() 371 struct rcar_du_plane *plane = planes[i]; rcar_du_crtc_update_planes() local 897 struct drm_plane *plane = &rcrtc->vsp->planes[i].plane; rcar_du_crtc_crc_init() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_crtc.c | 329 static unsigned int plane_zpos(struct rcar_du_plane *plane) in plane_zpos() argument 331 return plane->plane.state->normalized_zpos; in plane_zpos() 335 plane_format(struct rcar_du_plane *plane) in plane_format() argument 337 return to_rcar_plane_state(plane->plane.state)->format; in plane_format() 352 struct rcar_du_plane *plane = &rcrtc->group->planes[i]; in rcar_du_crtc_update_planes() local 355 if (plane->plane.state->crtc != &rcrtc->crtc || in rcar_du_crtc_update_planes() 356 !plane in rcar_du_crtc_update_planes() 371 struct rcar_du_plane *plane = planes[i]; rcar_du_crtc_update_planes() local 928 struct drm_plane *plane = &rcrtc->vsp->planes[i].plane; rcar_du_crtc_crc_init() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_wm_types.h | 27 u16 plane[I915_MAX_PLANES]; member 32 u16 plane; member 38 u8 plane[I915_MAX_PLANES]; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_damage_helper.c | 54 * drm_atomic_helper_check_plane_damage - Verify plane damage on atomic_check. 58 * This helper function makes sure that damage from plane state is discarded 60 * plane update rather than processing individual damage regions, then those 63 * Note that &drm_plane_state.fb_damage_clips == NULL in plane state means that 64 * full plane update should happen. It also ensure helper iterator will return 97 * during plane update. If num_clips is 0 then this helper will do a full plane 116 struct drm_plane *plane; in drm_atomic_helper_dirtyfb() local 159 drm_for_each_plane(plane, fb->dev) { in drm_atomic_helper_dirtyfb() 162 ret = drm_modeset_lock(&plane in drm_atomic_helper_dirtyfb() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | curs507a.c | 37 nvif_msec(&nouveau_drm(wndw->plane.dev)->client.device, 100, in curs507a_space() 81 u32 handle = nv50_disp(wndw->plane.dev)->core->chan.vram.handle; in curs507a_prepare() 101 struct nouveau_drm *drm = nouveau_drm(wndw->plane.dev); in curs507a_acquire() 132 wndw->plane.name, asyw->image.pitch[0], asyw->image.w); in curs507a_acquire() 140 wndw->plane.name, asyw->image.w, asyw->image.h); in curs507a_acquire() 148 wndw->plane.name, fb->format->format); in curs507a_acquire()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap/ |
H A D | omapfb.h | 150 void (*get_caps) (int plane, struct omapfb_caps *caps); 153 int (*setup_plane) (int plane, int channel_out, 159 int (*setup_mem) (int plane, size_t size, 163 int (*set_scale) (int plane, 166 int (*enable_plane) (int plane, int enable);
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap/ |
H A D | omapfb.h | 150 void (*get_caps) (int plane, struct omapfb_caps *caps); 153 int (*setup_plane) (int plane, int channel_out, 159 int (*setup_mem) (int plane, size_t size, 163 int (*set_scale) (int plane, 166 int (*enable_plane) (int plane, int enable);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/meson/ |
H A D | meson_overlay.c | 168 static int meson_overlay_atomic_check(struct drm_plane *plane, in meson_overlay_atomic_check() argument 172 plane); in meson_overlay_atomic_check() 229 struct drm_plane *plane, in meson_overlay_setup_scaler_params() 234 struct drm_plane_state *state = plane->state; in meson_overlay_setup_scaler_params() 471 static void meson_overlay_atomic_update(struct drm_plane *plane, in meson_overlay_atomic_update() argument 474 struct meson_overlay *meson_overlay = to_meson_overlay(plane); in meson_overlay_atomic_update() 476 plane); in meson_overlay_atomic_update() 550 meson_overlay_setup_scaler_params(priv, plane, interlace_mode); in meson_overlay_atomic_update() 659 DRM_DEBUG("plane 2 addr 0x%x stride %d height %d\n", in meson_overlay_atomic_update() 671 DRM_DEBUG("plane in meson_overlay_atomic_update() 228 meson_overlay_setup_scaler_params(struct meson_drm *priv, struct drm_plane *plane, bool interlace_mode) meson_overlay_setup_scaler_params() argument 725 meson_overlay_atomic_disable(struct drm_plane *plane, struct drm_atomic_state *state) meson_overlay_atomic_disable() argument 753 meson_overlay_format_mod_supported(struct drm_plane *plane, u32 format, u64 modifier) meson_overlay_format_mod_supported() argument 837 struct drm_plane *plane; meson_overlay_create() local [all...] |