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:16:01 +0200
commit8a220efc5a316f508de76ae0a1f91c38e759f40c (patch)
tree5752aa5909214579413e23f532acf9e92595cf8b
parentde72bb2655e637ce624b7aaac31965353203f7d1 (diff)
downloadlibva-8a220efc5a316f508de76ae0a1f91c38e759f40c.tar.gz
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 b4c4659..2fcd060 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1130,12 +1130,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;