OSDN Git Service

h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 1 Mar 2012 17:04:56 +0000 (18:04 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 2 Mar 2012 10:43:09 +0000 (11:43 +0100)
commit9b7863bf49dcf8bf1de9b45ce4e986dfd1cca418
treeb1d59db3a93519562c49186da596ee5f6c7a21cc
parent96f453ab612c37845c5993b846553db40358a3b5
h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).

Fix and simplify the scan for emulation_prevention_bytes, thus avoiding
a read beyond the end of the slice data buffer. Besides, if slice_header()
bytes are needed, use dri_bo_get_subdata() instead.

HW specific changes:
- SNB: make the HW skip the emulation prevention bytes itself.
- IVB: fix MFD_AVC_BSD_OBJECT to report the actual slice data buffer size.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
NEWS
src/gen6_mfd.c
src/gen7_mfd.c
src/i965_avc_bsd.c
src/i965_decoder_utils.c
src/i965_decoder_utils.h