[Libva] [PATCH 0/2] jpeg: generate default Huffman tables

Gwenole Beauchesne gb.devel at gmail.com
Mon Jun 18 07:49:43 PDT 2012


Hi,

This patch series makes sure the driver generates default Huffman
tables if no valid one was provided from the application. There are
also two side effects of those:

1. This fixes garbage emitted for the last AC_HUFFVAL bytes and
   possible buffer overflow from intel_batchbuffer_data(),

2. This keeps internal states, Huffman tables for now, so that some
   recovery mechanism could be performed later on on failure. Note:
   this doesn't mean this recovery mechanism will be implemented
   though.

Regards,
Gwenole Beauchesne (2):
  jpeg: generate default Huffman tables.
  jpeg: maintain internal Huffman tables in MFX format.

 src/gen7_mfd.c           |  114 ++++++++++++++++++++++++-------------------
 src/gen7_mfd.h           |    3 +-
 src/i965_decoder.h       |   14 +++++
 src/i965_decoder_utils.c |  120 ++++++++++++++++++++++++++++++++++++++++++++++
 src/i965_decoder_utils.h |   11 ++++
 5 files changed, 210 insertions(+), 52 deletions(-)

-- 
1.7.5.4



More information about the Libva mailing list