Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
optimize values for VAConfigAttribEncSliceStructure
redefine VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROW to non-zero value
all slice structure attributes value can OR'd together.

Signed-off-by: xfengcarl <carl.zhang@intel.com>
  • Loading branch information
XinfengZhang authored and xhaihao committed Sep 27, 2017
1 parent c0716f3 commit 0e6d544
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions va/va.h
Expand Up @@ -648,12 +648,16 @@ typedef struct _VAConfigAttrib {

/** @name Attribute values for VAConfigAttribEncSliceStructure */
/**@{*/
/** \brief Driver supports an arbitrary number of rows per slice. */
#define VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS 0x00000000
/** \brief Driver supports a power-of-two number of rows per slice. */
#define VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS 0x00000001
/** \brief Driver supports an arbitrary number of macroblocks per slice. */
#define VA_ENC_SLICE_STRUCTURE_ARBITRARY_MACROBLOCKS 0x00000002
/** \brief Dirver support 1 rows per slice */
#define VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS 0x00000004
/** \brief Dirver support max encoded slice size per slice */
#define VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE 0x00000008
/** \brief Driver supports an arbitrary number of rows per slice. */
#define VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS 0x00000010
/**@}*/

/** \brief Attribute value for VAConfigAttribEncJPEG */
Expand Down

0 comments on commit 0e6d544

Please sign in to comment.