summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-01-11 16:24:59 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-01-12 13:36:51 +0800
commit31276a1ab151268d24eb2126a8ae67d20b4c4df0 (patch)
tree1221d98135e3424af02e86914f3ee5cc7c78643d
parentc75833d3dd4d0f5b6eed6f0be410c7321f889db5 (diff)
Support 16-bits quantization element for JPEG decoding
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--va/va.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/va/va.h b/va/va.h
index d5ff604..5fa7e2d 100644
--- a/va/va.h
+++ b/va/va.h
@@ -719,11 +719,17 @@ typedef struct _VAEncPictureParameterBufferJPEG
} VAEncPictureParameterBufferJPEG;
/* data struct for JPEG decoding */
+
+/* Quantization table */
typedef struct _VAIQMatrixBufferJPEG
{
- unsigned char quantiser_matrix[4][64]; /* quantiser_matrix[Tq][64] (Tq=0,1,2,3) specifies a
+ int precision[4]; /* valid value: 0(8-bits) , 1(16-bits), precision[Tq](Tq=0,1,2,3)
+ * specifies precision for destination Tq
+ */
+ unsigned char quantiser_matrix[4][128]; /* quantiser_matrix[Tq](Tq=0,1,2,3) specifies a
* quantization table for destination Tq in zig-zag
- * scan order
+ * scan order. Only the first 64 bytes are valid for each
+ * table if precision
*/
} VAIQMatrixBufferJPEG;