When we do an atomic commit, we need to know where to place a given
plane (in the case of overlays) in relation to the CRTC, so provide an
API function that can be used for that purpose.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
*/
EAPI Ecore_Drm2_Plane *ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb);
+/**
+ * Set plane destination values
+ *
+ * @param plane
+ * @param x
+ * @param y
+ * @param w
+ * @param h
+ *
+ * @ingroup Ecore_Drm2_Plane_Group
+ * @since 1.20
+ */
+EAPI void ecore_drm2_plane_destination_set(Ecore_Drm2_Plane *plane, int x, int y, int w, int h);
+
# endif
#endif
return NULL;
#endif
}
+
+EAPI void
+ecore_drm2_plane_destination_set(Ecore_Drm2_Plane *plane, int x, int y, int w, int h)
+{
+ EINA_SAFETY_ON_NULL_RETURN(plane);
+
+ plane->state->cx.value = x;
+ plane->state->cy.value = y;
+ plane->state->cw.value = w;
+ plane->state->ch.value = h;
+}