summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2014-05-14 11:15:11 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2014-05-14 11:15:11 +0800
commit968ade9411de9c5ae2eead0a7e8755747a32a3a2 (patch)
treec2c778df2e968f85cb2ba7759a27e17eb622d4e2
parent1bee69216ab590f3d2299e3ced6f28e012ad24b1 (diff)
downloadlibva-968ade9411de9c5ae2eead0a7e8755747a32a3a2.tar.gz
va_vpp.h: Add output_surface_flag in VAProcPipelineParameterBuffer to support BT601 full range input/output
From Liu, Russell Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--va/va_vpp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/va/va_vpp.h b/va/va_vpp.h
index 906c922..3e0bcdb 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -724,6 +724,20 @@ typedef struct _VAProcPipelineParameterBuffer {
* conversion in SDTV/HDTV/UHDTV.
*/
unsigned int input_surface_flag;
+ /**
+ * \brief Flag to indicate the output surface flag such as chroma-siting,
+ * range flag and so on. This flag should be consistent for all streams.
+ *
+ * The lower 4 bits are still used as chroma-siting flag
+ * The range_flag bit is used to indicate that the range flag of color-space conversion.
+ * -\ref VA_SOURCE_RANGE_FULL(Full range): Y/Cb/Cr is in [0, 255].It is
+ * mainly used for JPEG/JFIF formats. The combination with the BT601 flag
+ * means that JPEG/JFIF color-space conversion matrix is used.
+ * -\ref VA_SOURCE_RANGE_REDUCED(Reduced range): Y is in [16, 235] and Cb/Cr
+ * is in [16, 240]. It is mainly used for the YUV<->RGB color-space
+ * conversion in SDTV/HDTV/UHDTV.
+ */
+ unsigned int output_surface_flag;
} VAProcPipelineParameterBuffer;
/**