diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-04-03 10:08:59 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-04-05 10:09:31 +0200 |
commit | bccf8655fed772e98d7fdd2de6ff3144aaee183e (patch) | |
tree | be3fab0ac0d37a0082ae2f00baa74ae2494e9d72 /va/va.h | |
parent | 0d1a407728804b9fc14ad850907483daec7e3e94 (diff) |
API: h264 decode: clarify slice_data_bit_offset field.
slice_data_bit_offset represents a bit offset from the NAL Header Unit
byte to the begining of the slice_data(), thus including any emulation
prevention bytes. Baiscally, this represents the number of bits parsed
for slice_header().
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'va/va.h')
-rw-r--r-- | va/va.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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; |