summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--va/va.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/va/va.h b/va/va.h
index 0d61f9a..5f3c2c5 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1221,9 +1221,20 @@ typedef struct _VAIQMatrixBufferH264
typedef struct _VASliceParameterBufferH264
{
unsigned int slice_data_size;/* number of bytes in the slice data buffer for this slice */
- unsigned int slice_data_offset;/* the offset to the NAL start code for this slice */
+ /** \brief Byte offset to the NAL Header Unit for this slice. */
+ unsigned int slice_data_offset;
unsigned int slice_data_flag; /* see VA_SLICE_DATA_FLAG_XXX defintions */
- unsigned short slice_data_bit_offset; /* bit offset from NAL start code to the beginning of slice data */
+ /**
+ * \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.
+ */
+ unsigned short slice_data_bit_offset;
unsigned short first_mb_in_slice;
unsigned char slice_type;
unsigned char direct_spatial_mv_pred_flag;