Skip to content

Commit

Permalink
encode segmentation map refine
Browse files Browse the repository at this point in the history
Signed-off-by: Yao, Leyu <[email protected]>
  • Loading branch information
leyu-yao committed Aug 28, 2023
1 parent b4870fd commit 02eed8a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion va/va_enc_av1.h
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ typedef struct _VAEncPictureParameterBufferAV1 {
* 0: 16x16 block size, default value;
* 1: 32x32 block size;
* 2: 64x64 block size;
* 3: 8x8 block size.
* 3: 8x8 block size;
* 4: 4x4 block size.
*/
uint8_t seg_id_block_size;

Expand Down
28 changes: 27 additions & 1 deletion va/va_enc_vp9.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,19 @@ typedef struct _VAEncPictureParameterBufferVP9 {
*/
uint32_t skip_frames_size;

/** \brief Block size for each Segment ID in Segment Map.
* This specify the granularity of media driver of reading and processing the segment map.
* 0: 16x16 block size, default value;
* 1: 32x32 block size;
* 2: 64x64 block size;
* 3: 8x8 block size.
*/
uint8_t seg_id_block_size;

uint8_t va_reserved8[3];

/** \brief Reserved bytes for future use, must be zero */
uint32_t va_reserved[VA_PADDING_MEDIUM];
uint32_t va_reserved[7];
} VAEncPictureParameterBufferVP9;


Expand Down Expand Up @@ -594,6 +605,21 @@ typedef struct _VAEncMiscParameterTypeVP9PerSegmantParam {
*/


/** \brief Attribute value for VAConfigAttribEncVP9. */
typedef union _VAConfigAttribValEncVP9 {
struct {
/**
* \brief Min segmentId block size accepted.
* This is the granularity of segmentation map.
*/
uint32_t min_segid_block_size_accepted : 8;

/** \brief Reserved bits for future, must be zero. */
uint32_t reserved : 24;
} bits;
uint32_t value;
} VAConfigAttribValEncVP9;

/**@}*/

#ifdef __cplusplus
Expand Down

0 comments on commit 02eed8a

Please sign in to comment.