Skip to content

Commit

Permalink
va: correct the description of segment id map buffer for vp9e
Browse files Browse the repository at this point in the history
previous description limited the segment id block 8x8
it is not accurate and should support different block size which
could be set by picture parameter.

attention: this change will impact backward compatiblility,
considering no one is using it. we could ignore this side effect

Signed-off-by: Carl Zhang <[email protected]>
  • Loading branch information
XinfengZhang committed Jul 3, 2024
1 parent cfae9df commit 2d677b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions va/va_enc_vp9.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,10 @@ typedef struct _VAEncMiscParameterTypeVP9PerSegmantParam {
* \brief VP9 Block Segmentation ID Buffer
*
* The application provides a buffer of VAEncMacroblockMapBufferType containing
* the initial segmentation id for each 8x8 block, one byte each, in raster scan order.
* Rate control may reassign it. For example, a 640x480 video, the buffer has 4800 entries.
* the initial segmentation id for each block, block size is specified by seg_id_block_size
* in VAEncPictureParameterBufferVP9 , one byte each, in raster scan order.
* Rate control may reassign it. For example, a 640x480 video, seg_id_block_size is
* VA_SEGID_BLOCK_16X16 , the buffer has 1200 entries.
* The value of each entry should be in the range [0..7], inclusive.
* If segmentation is not enabled, the application does not need to provide it.
*/
Expand Down

0 comments on commit 2d677b3

Please sign in to comment.