[Libva] [PATCH] h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).

Gwenole Beauchesne gb.devel at gmail.com
Fri Mar 2 04:56:18 PST 2012


2012/3/2 Gwenole Beauchesne <gb.devel at gmail.com>:

> Note: this assumes VASliceParameterBufferH264.slice_data_bit_offset
> represents the offset relative to the raw bitstream with emulation
> prevention bytes. Should this count be minus emulation prevention bytes,
> then avc_get_first_mb_bit_offset() is swapped with the _epb() variant
> with '+' EPB count instead of '-'.

I pushed the patch with slice_data_bit_offset matching current
practise in VA drivers and some media players, which is not conformant
to VA-API. In the end, only ILK needs a scan for EPB. For SNB and IVB,
the HW is programmed to scan EPB itself.


More information about the Libva mailing list