Skip to contentSkip to conversation

media: Add video processing entity functions

PATCH New Laurent Pinchart 1 participant 1 message Feb 29, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: Add video processing entity functions

Add composer, format converter and scaler functions, as well as generic video processing to be used when no other processing function is applicable.

---
 Documentation/DocBook/media/v4l/media-types.xml | 17 +++++++++++++++++
 include/uapi/linux/media.h                      |  8 ++++++++
 2 files changed, 25 insertions(+)
Documentation/DocBook/media/v4l/media-types.xml +17 -0
index 8b4fa39cf611..8859a5de7a30 100644
@@ -109,6 +109,23 @@
 		   decoder.
 	    </entry>
 	  </row>
+	  <row>
+	    <entry><constant>MEDIA_ENT_F_PROC_VIDEO_GENERIC</constant></entry>
+	    <entry>Generic video processing, when no other processing function
+		   is applicable.
+	    </entry>
+	  <row>
+	    <entry><constant>MEDIA_ENT_F_PROC_VIDEO_COMPOSER</constant></entry>
+	    <entry>Video composer (blender)</entry>
+	  </row>
+	  </row>
+	    <entry><constant>MEDIA_ENT_F_PROC_VIDEO_CONVERTER</constant></entry>
+	    <entry>Video format converter</entry>
+	  </row>
+	  <row>
+	    <entry><constant>MEDIA_ENT_F_PROC_VIDEO_SCALER</constant></entry>
+	    <entry>Video scaler</entry>
+	  </row>
 	</tbody>
       </tgroup>
     </table>
include/uapi/linux/media.h +8 -0
index 6aac2f035a5d..998023ca43ae 100644
@@ -88,6 +88,14 @@ struct media_device_info {
 #define MEDIA_ENT_F_IF_AUD_DECODER	(MEDIA_ENT_F_BASE + 2002)
 
 /*
+ * Processing entities
+ */
+#define MEDIA_ENT_F_PROC_VIDEO_GENERIC		(MEDIA_ENT_F_BASE + 3001)
+#define MEDIA_ENT_F_PROC_VIDEO_COMPOSER		(MEDIA_ENT_F_BASE + 3002)
+#define MEDIA_ENT_F_PROC_VIDEO_CONVERTER	(MEDIA_ENT_F_BASE + 3003)
+#define MEDIA_ENT_F_PROC_VIDEO_SCALER		(MEDIA_ENT_F_BASE + 3004)
+
+/*
  * Connectors
  */
 /* It is a responsibility of the entity drivers to add connectors and links */
Signature · 3 lines
Regards,

Laurent Pinchart