diff options
author | Tianmi Chen <tianmi.chen@intel.com> | 2013-03-27 14:09:29 +0800 |
---|---|---|
committer | buildbot <buildbot@intel.com> | 2013-04-03 00:42:58 -0700 |
commit | 149f78740d3a49898617fcb5a0fd106398bddb8c (patch) | |
tree | 9849d5066db4b28171368b6c3dbceb86b6f90683 /va | |
parent | 409de6acb4473c973ed2532e340831dc582e5e0e (diff) | |
download | libva-149f78740d3a49898617fcb5a0fd106398bddb8c.tar.gz |
libva: Add slice parameter buffer structure for VP8
BZ: 93296
Add slice buffer structure for VP8 in accordance with other codecs.
Change-Id: I712ef566abb783fab53146043357b7beff49b6de
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/98565
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'va')
-rw-r--r-- | va/va_dec_vp8.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/va/va_dec_vp8.h b/va/va_dec_vp8.h index db74f4d..f8564c4 100644 --- a/va/va_dec_vp8.h +++ b/va/va_dec_vp8.h @@ -154,17 +154,37 @@ typedef struct _VAPictureParameterBufferVP8 unsigned char mv_probs[2][19]; VABoolCoderContextVPX bool_coder_ctx; +} VAPictureParameterBufferVP8; - /* Partitions */ - unsigned char num_of_partitions; - unsigned int partition_size[9]; +/** + * \brief VP8 Slice Parameter Buffer Structure + * + * This structure conveys parameters related to data partitions and should be + * sent once per frame. + * + */ +typedef struct _VASliceParameterBufferVP8 +{ + 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 first byte of slice data */ + unsigned int slice_data_flag; /* see VA_SLICE_DATA_FLAG_XXX defintions */ /* * offset to the first bit of MB from the first byte of slice data buffer */ unsigned int macroblock_offset; -} VAPictureParameterBufferVP8; + /* Partitions */ + unsigned char num_of_partitions; + unsigned int partition_size[9]; + + /* + * slice data buffer of VASliceDataBufferType is used to send the + * partition data. This field specifies the offset to the first byte of + * partition data in the buffer. + */ + unsigned int partition_data_offset; +} VASliceParameterBufferVP8; /** * \brief VP8 Coefficient Probability Data Buffer Structure |