summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2014-01-28 13:46:19 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-02-20 14:49:45 +0800
commitc210fbf92e7c542e48502a598a46de05c5ad0d25 (patch)
tree93efb39941f8c819ca5571fae8a9e2dfbf418321
parentcb407ae851851ca4f6aa1d9fb890574ce1b00530 (diff)
libva:Add range parameter flag to reflect the JPEG/JFIF CSC coeff matrix
V1->V2: Follow Peene and Jonathan to reduce the JPEG flag. Instead it is derived from the combination of the range flag and BT601 CSC standard. At the same time the chroma_siting flag in va_vpp.h is rename as input_surface_flag to hold the corresponding range flag on the input pixel data. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--va/va.h3
-rw-r--r--va/va_vpp.h10
2 files changed, 11 insertions, 2 deletions
diff --git a/va/va.h b/va/va.h
index a7b210b..881494f 100644
--- a/va/va.h
+++ b/va/va.h
@@ -217,6 +217,9 @@ typedef int VAStatus; /* Return status type from functions */
#define VA_FILTER_SCALING_NL_ANAMORPHIC 0x00000300
#define VA_FILTER_SCALING_MASK 0x00000f00
+#define VA_SOURCE_RANGE_MASK 0x00010000
+#define VA_SOURCE_RANGE_FULL 0x00010000
+#define VA_SOURCE_RANGE_REDUCED 0x00000000
/*
* The upper 16 bits are reserved for VPP filter fast path usage.
* Flag to enable auto noise reduction.
diff --git a/va/va_vpp.h b/va/va_vpp.h
index 9408b4f..1ebb67e 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -710,8 +710,14 @@ typedef struct _VAProcPipelineParameterBuffer {
VASurfaceID *additional_outputs;
/** \brief Number of additional output surfaces. */
unsigned int num_additional_outputs;
- /** \brief Flag to indicate the chroma siting information. */
- unsigned int chroma_siting_flag;
+ /**
+ * \brief Flag to indicate the input surface flag such as chroma-siting,
+ * range flag and so on.
+ *
+ * The lower 4 bits are still used as chroma-siting flag
+ * The bit 16 is used to indicate the range flag of color-space conversion
+ */
+ unsigned int input_surface_flag;
} VAProcPipelineParameterBuffer;
/**