aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-03-27 11:54:38 -0400
committerChris Michael <cp.michael@samsung.com>2017-04-18 07:55:10 -0400
commit19da4706f3763cf2c8eb333fbbc6e31e69d63850 (patch)
treedf4d2a8113194f45571189cb00699d356392ec13 /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore-drm2: Cleanup list of output planes on output_destroy (diff)
downloadefl-19da4706f3763cf2c8eb333fbbc6e31e69d63850.tar.gz
ecore-drm2: Add hardware plane functions
This patch adds a new file where we can store any additional functions we may need to work with hardware planes. Currently the file contains a public function that can be used to assign a given Ecore_Drm2_Fb to a hardware plane @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/Ecore_Drm2.h')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index e75a57847e..62eebc1e52 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -99,6 +99,7 @@ typedef void (*Ecore_Drm2_Release_Handler)(void *data, Ecore_Drm2_Fb *b);
* @li @ref Ecore_Drm2_Device_Group
* @li @ref Ecore_Drm2_Output_Group
* @li @ref Ecore_Drm2_Fb_Group
+ * @li @ref Ecore_Drm2_Plane_Group
*/
/**
@@ -988,6 +989,25 @@ EAPI void *ecore_drm2_fb_bo_get(Ecore_Drm2_Fb *fb);
*/
EAPI Ecore_Drm2_Fb *ecore_drm2_fb_dmabuf_import(int fd, int width, int height, int depth, int bpp, unsigned int format, unsigned int strides[4], int dmabuf_fd[4], int dmabuf_fd_count);
+/**
+ * @defgroup Ecore_Drm2_Plane_Group Functions that deal with hardware planes
+ *
+ * Functions that deal with hardware plane manipulation
+ */
+
+/**
+ * Find a hardware plane where a given Ecore_Drm2_Fb can go based on format and size
+ *
+ * @param output
+ * @param fb
+ *
+ * @return A newly allocated plane object, or NULL otherwise
+ *
+ * @ingroup Ecore_Drm2_Plane_Group
+ * @since 1.20
+ */
+EAPI Ecore_Drm2_Plane *ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb);
+
# endif
#endif