diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-31 10:48:27 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-08-01 10:31:02 +0200 |
commit | 44b03ffcdb814392a9acf025615f99a06fed63d4 (patch) | |
tree | 00d949296b97d02ca76586fe8e7a4e5e148f9f51 /va/va_dec_jpeg.h | |
parent | 69078e8190a9a202168a6e380e4405fd9a3afa46 (diff) |
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 <gwenole.beauchesne@intel.com>
(cherry picked from commit f8aa29ff28dcbe8134661c3c3c5ca30a8eadcad8)
Diffstat (limited to 'va/va_dec_jpeg.h')
-rw-r--r-- | va/va_dec_jpeg.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |