API: h264 decode: introduce num_emulation_prevention_bytes.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 1 Mar 2012 13:01:33 +0000 (14:01 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Apr 2012 07:44:48 +0000 (09:44 +0200)
commita870f078984ce829f797e5610b30d39a3921af4f
tree92559022ebe8b75527f06d897d3f52b39982fbd2
parent94874e7f90111eb9741a3b9614b55f9a80d85879
API: h264 decode: introduce num_emulation_prevention_bytes.

num_emulation_prevention_bytes represent the number of emulation prevention
bytes available in the slice_header(). This helps VA drivers determine how
many emulation prevention bytes there are so that to program the hardware
appropriately, without having to parse the slice_header() again.

Rationale: it is not always possible to parse the slice_header() again.
For instance, if "protected slices" are used, the slice data is uploaded
into a VAProtectedSliceDataBuffer and it is no longer possible to read
bytes from it afterwards. e.g. it could be in encrypted memory region
or protected memory region only accessible from the video decoder.

In newly written code, this member shall be filled in appropriately along
with emulation_prevention_bytes_flag set to 1.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
va/va.h