[Libva] [PATCH 21/24] Add maximum type number define, and one addition VPP flag

Xiang, Haihao haihao.xiang at intel.com
Mon May 13 01:19:24 PDT 2013


From: Binglin Chen <binglin.chen at intel.com>

Add maximum type number define for VAEntryPoint,
VAConfigAttribTypeMax, VABufferTypeMax, which can be used as
the current total number of entrypoint/attribute/buffer type.

Add END of stream flag for VPP pipeline which indicates it's
the last frames in the pipeline.

Signed-off-by: Binglin Chen <binglin.chen at intel.com>
---
 va/va.h     |    4 +++-
 va/va_vpp.h |    6 ++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/va/va.h b/va/va.h
index 54b77d9..f7f8e0b 100644
--- a/va/va.h
+++ b/va/va.h
@@ -302,6 +302,7 @@ typedef enum
     VAEntrypointEncSlice	= 6,	/* slice level encode */
     VAEntrypointEncPicture 	= 7,	/* pictuer encode, JPEG, etc */
     VAEntrypointVideoProc       = 10,   /**< Video pre/post-processing. */
+    VAEntrypointMax
 } VAEntrypoint;
 
 /* Currently defined configuration attribute types */
@@ -384,6 +385,7 @@ typedef enum
      */
     VAConfigAttribEncMacroblockInfo     = 16,
     /**@}*/
+    VAConfigAttribTypeMax
 } VAConfigAttribType;
 
 /*
@@ -740,7 +742,7 @@ typedef enum
      * color balance (#VAProcFilterParameterBufferColorBalance), etc.
      */
     VAProcFilterParameterBufferType     = 42,
-    VABufferTypeMax                     = 0xff
+    VABufferTypeMax
 } VABufferType;
 
 typedef enum
diff --git a/va/va_vpp.h b/va/va_vpp.h
index 473937f..0eb295f 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -331,6 +331,12 @@ typedef enum _VAProcColorStandardType {
 #define VA_PROC_FILTER_MANDATORY        0x00000001
 /**@}*/
 
+/** @name Pipeline end flags */
+/**@{*/
+/** \brief Specifies the pipeline is the last. */
+#define VA_PIPELINE_FLAG_END		0x00000004
+/**@}*/
+
 /** \brief Video processing pipeline capabilities. */
 typedef struct _VAProcPipelineCaps {
     /** \brief Pipeline flags. See VAProcPipelineParameterBuffer::pipeline_flags. */
-- 
1.7.4.1



More information about the Libva mailing list