[Libva] [PATCH 13/24] vpp: add pipeline flags.
Xiang, Haihao
haihao.xiang at intel.com
Mon May 13 01:19:16 PDT 2013
From: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
va/va_vpp.h | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/va/va_vpp.h b/va/va_vpp.h
index 3e18624..6b404e6 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -280,6 +280,23 @@ typedef enum _VAProcColorStandardType {
VAProcColorStandardGenericFilm,
} VAProcColorStandardType;
+/** @name Video pipeline flags */
+/**@{*/
+/** \brief Specifies whether to apply subpictures when processing a surface. */
+#define VA_PROC_PIPELINE_SUBPICTURES 0x00000001
+/**
+ * \brief Specifies whether to apply power or performance
+ * optimizations to a pipeline.
+ *
+ * When processing several surfaces, it may be necessary to prioritize
+ * more certain pipelines than others. This flag is only a hint to the
+ * video processor so that it can omit certain filters to save power
+ * for example. Typically, this flag could be used with video surfaces
+ * decoded from a secondary bitstream.
+ */
+#define VA_PROC_PIPELINE_FAST 0x00000002
+/**@}*/
+
/** @name Video filter flags */
/**@{*/
/** \brief Specifies whether the filter shall be present in the pipeline. */
@@ -290,6 +307,8 @@ typedef enum _VAProcColorStandardType {
typedef struct _VAProcPipelineCaps {
/** \brief Video filter flags. See video pipeline flags. */
unsigned int flags;
+ /** \brief Pipeline flags. See VAProcPipelineParameterBuffer::pipeline_flags. */
+ unsigned int pipeline_flags;
/** \brief Extra filter flags. See VAProcPipelineParameterBuffer::filter_flags. */
unsigned int filter_flags;
/** \brief Number of forward reference frames that are needed. */
@@ -384,6 +403,14 @@ typedef struct _VAProcPipelineParameterBuffer {
*/
unsigned int output_background_color;
/**
+ * \brief Pipeline filters. See video pipeline flags.
+ *
+ * Flags to control the pipeline, like whether to apply subpictures
+ * or not, notify the driver that it can opt for power optimizations,
+ * should this be needed.
+ */
+ unsigned int pipeline_flags;
+ /**
* \brief Extra filter flags. See vaPutSurface() flags.
*
* Filter flags are used as a fast path, wherever possible, to use
--
1.7.4.1
More information about the Libva
mailing list