From 63402bc46d72915b5cc7af3117a7f22f5cf1fbfc Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Wed, 11 Jan 2012 16:24:59 +0800 Subject: [PATCH] Support 16-bits quantization element for JPEG decoding Signed-off-by: Xiang, Haihao --- va/va.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/va/va.h b/va/va.h index ecc505f..c819f6c 100644 --- a/va/va.h +++ b/va/va.h @@ -639,11 +639,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; -- 2.7.4