From eb171e6a35462903060ea73f2f15d7df2f1aad17 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 31 Jul 2012 10:48:27 +0200 Subject: jpeg: pad Huffman table to 4-byte boundaries (Haihao). Some VA driver implementations require alignment to 4-byte boundaries so that to allow for direct memory transfers. Signed-off-by: Gwenole Beauchesne (cherry picked from commit f8aa29ff28dcbe8134661c3c3c5ca30a8eadcad8) --- va/va_dec_jpeg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/va/va_dec_jpeg.h b/va/va_dec_jpeg.h index f8858aa..9936692 100644 --- a/va/va_dec_jpeg.h +++ b/va/va_dec_jpeg.h @@ -121,6 +121,8 @@ typedef struct _VAHuffmanTableBufferJPEGBaseline { unsigned char num_ac_codes[16]; /** \brief Value associated with each Huffman code (Vij). */ unsigned char ac_values[162]; + /** \brief Padding to 4-byte boundaries. Must be set to zero. */ + unsigned char pad[2]; /**@}*/ } huffman_table[2]; } VAHuffmanTableBufferJPEGBaseline; -- cgit v1.2.1