Skip to content

Commit

Permalink
va: add execution hint to customize execution
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Zhang <carl.zhang@intel.com>
  • Loading branch information
XinfengZhang committed Sep 19, 2023
1 parent 8575b2b commit 3d90d18
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ typedef enum {
* same as "render_target" set in vaBeginPicture(), but the driver may choose
* to ignore this parameter.
*/
/**@}*/
VAConfigAttribDecProcessing = 8,
/** @name Attributes for encoding */
/**@{*/
Expand Down Expand Up @@ -1036,7 +1037,17 @@ typedef enum {
* The value returned uses the VAConfigAttribValEncPerBlockControl type.
*/
VAConfigAttribEncPerBlockControl = 55,
/** \brief setting execution hint for support config. Read/write.
*
* This attribute is used to check whether backend driver support
* different execution mode, the hint should come from different
* usage scenario, such as VDI, you may need low latency, may need high
* frequency. for a remote player, may need power saving to extend battery
* life. the value should refer /c VAConfigAttribValExecHint
*/
VAConfigAttribExecHint = 56,
/**@}*/

VAConfigAttribTypeMax
} VAConfigAttribType;

Expand Down Expand Up @@ -1433,6 +1444,19 @@ typedef union _VAConfigAttribValEncPerBlockControl {
uint32_t value;
} VAConfigAttribValEncPerBlockControl;

/** brief Attribute values for VAConfigAttribExecHint */
typedef union _VAConfigAttribValExecHint {
struct {
/** \brief whehter to support power saving mode */
uint32_t power_saving : 1;
/** \brief reserved bit for future, must be zero */
uint32_t reserved;
: 31;
} bits
uint32_t value;
} VAConfigAttribValExecHint;


/** @name Attribute values for VAConfigAttribProtectedContentCipherAlgorithm */
/** \brief AES cipher */
#define VA_PC_CIPHER_AES 0x00000001
Expand Down

0 comments on commit 3d90d18

Please sign in to comment.