summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-04-06 11:25:34 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-04-08 07:23:12 +0200
commit0a49e209e6d2802e2739c3f09d26819e743b5699 (patch)
tree2e400859037192773634bc1cfc3c0e99b807eeba
parenta8b87bea88048eb1ad747e60cb86930236fa7f1c (diff)
API: h264 decode: fix the definition of slice_data_bit_offset.
Align with the existing practice in various media stacks available in Linux today. i.e. codec layer submits slice data that represents the original bitstream, thus including any emulation prevent bytes. However, the slice_data_bit_offset represents an offset relative to the buffer that contains the NAL unit byte and the rest of the slice with any emulation prevention bytes removed. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
-rw-r--r--va/va.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/va/va.h b/va/va.h
index 2d92ce7..8468f4d 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1495,12 +1495,12 @@ typedef struct _VASliceParameterBufferH264
/**
* \brief Bit offset from NAL Header Unit to the begining of slice_data().
*
- * This bit offset is relative from the NAL unit byte to the first
- * bit of slice_data(), thus including any emulation prevention
- * bytes in slice_header().
- *
- * Basically, this field represents the number of bits parsed in
- * the slice_header() + 8 for the initial NAL unit byte.
+ * This bit offset is relative to and includes the NAL unit byte
+ * and represents the number of bits parsed in the slice_header()
+ * after the removal of any emulation prevention bytes in
+ * there. However, the slice data buffer passed to the hardware is
+ * the original bitstream, thus including any emulation prevention
+ * bytes.
*/
unsigned short slice_data_bit_offset;
unsigned short first_mb_in_slice;