This commit is contained in:
Ziyang Zhou
2022-07-16 10:18:13 +08:00
parent 829ddb19d3
commit a53c889571
43 changed files with 363 additions and 28 deletions

View File

@@ -1021,6 +1021,13 @@ typedef enum {
* VAConfigAttribValEncAV1Ext2 union.
*/
VAConfigAttribEncAV1Ext2 = 54,
/** \brief Settings per block attribute for Encoding. Read-only.
*
* This attribute describes whether to support delta qp per block,
* the supported size of delta qp block and the size of delta QP in bytes.
* The value returned uses the VAConfigAttribValEncPerBlockControl type.
*/
VAConfigAttribEncPerBlockControl = 55,
/**@}*/
VAConfigAttribTypeMax
} VAConfigAttribType;
@@ -1401,6 +1408,21 @@ typedef union _VAConfigAttribValContextPriority {
uint32_t value;
} VAConfigAttribValContextPriority;
/** brief Attribute value VAConfigAttribEncPerBlockControl */
typedef union _VAConfigAttribValEncPerBlockControl {
struct {
/** \brief whether to support dela qp per block */
uint32_t delta_qp_support : 1;
/** \brief supported size of delta qp block */
uint32_t log2_delta_qp_block_size : 4;
/** \brief size of delta qp per block in bytes*/
uint32_t delta_qp_size_in_bytes : 3;
/** \brief reserved bit for future, must be zero */
uint32_t reserved : 24;
} bits;
uint32_t value;
} VAConfigAttribValEncPerBlockControl;
/** @name Attribute values for VAConfigAttribProtectedContentCipherAlgorithm */
/** \brief AES cipher */
#define VA_PC_CIPHER_AES 0x00000001
@@ -2069,6 +2091,17 @@ typedef enum {
*/
VAEncryptionParameterBufferType = 60,
/**
* \brief Encoding delta QP per block buffer
*
* This buffer only could be created and accepted
* when \c VAConfigAttribValEncPerBlockControl delta_qp_support == 1.
* This input buffer contains delta QP per block for encoding.
* The supported size of delta QP block and the size of delta QP
* must be quried from \c VAConfigAttribValEncPerBlockControl.
*/
VAEncDeltaQpPerBlockBufferType = 61,
VABufferTypeMax
} VABufferType;
@@ -5036,6 +5069,11 @@ typedef enum {
* modes of vaCopy
*/
VADisplayAttribCopy = 20,
/*
* HW attribute. read only. retrieve the device information from backend driver
* the value should be combined with vendor ID << 16 | device ID
*/
VADisplayPCIID = 21,
} VADisplayAttribType;
/* flags for VADisplayAttribute */