AMD ROCm Decode API

AMD ROCm Decode API#

Rocprofiler SDK Developer API: rocDecode: AMD ROCm Decode API
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
rocDecode: AMD ROCm Decode API

AMD The rocDecode is a toolkit to decode videos and images using a hardware-accelerated video decoder on AMD’s GPUs. More...

Data Structures

struct  RocdecDecodeCaps
 This structure is used in rocDecGetDecoderCaps API. More...
 
struct  RocDecoderCreateInfo
 This structure is used in rocDecCreateDecoder API. More...
 
struct  RocdecDecodeStatus
 Struct for reporting decode status. This structure is used in RocdecGetDecodeStatus API. More...
 
struct  RocdecReconfigureDecoderInfo
 Struct for decoder reset This structure is used in rocDecReconfigureDecoder() API. More...
 
struct  RocdecAvcPicture
 AVC/H.264 Picture Entry This structure is used in RocdecAvcPicParams structure. More...
 
struct  RocdecHevcPicture
 HEVC Picture Entry This structure is used in RocdecHevcPicParams structure. More...
 
struct  RocdecJPEGPicParams
 JPEG picture parameters This structure is used in RocdecPicParams structure. More...
 
struct  RocdecMpeg2QMatrix
 MPEG2 QMatrix This structure is used in _RocdecMpeg2PicParams structure. More...
 
struct  RocdecMpeg2PicParams
 MPEG2 picture parameters This structure is used in RocdecMpeg2PicParams structure. More...
 
struct  RocdecVc1PicParams
 JPEG picture parameters This structure is used in RocdecVc1PicParams structure. More...
 
struct  RocdecAvcPicParams
 AVC picture parameters This structure is used in RocdecAvcPicParams structure This structure is configured to be the same as VA-API VAPictureParameterBufferH264 structure. More...
 
struct  RocdecAvcSliceParams
 AVC slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferH264 structure. More...
 
struct  RocdecAvcIQMatrix
 AVC Inverse Quantization Matrix This structure is configured to be the same as VA-API VAIQMatrixBufferH264 structure. More...
 
struct  RocdecHevcPicParams
 HEVC picture parameters This structure is used in RocdecHevcPicParams structure. More...
 
struct  RocdecHevcSliceParams
 HEVC slice parameters This structure is used in RocdecPicParams structure. More...
 
struct  RocdecHevcIQMatrix
 HEVC IQMatrix This structure is sent once per frame, and only when scaling_list_enabled_flag = 1. When sps_scaling_list_data_present_flag = 0, app still needs to send in this structure with default matrix values. This structure is used in RocdecHevcQMatrix structure. More...
 
struct  RocdecVp9PicParams
 VP9 picture parameters This structure is configured to be the same as VA-API VADecPictureParameterBufferVP9 structure. More...
 
struct  RocdecVp9SliceParams
 VP9 slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferVP9 structure. More...
 
struct  RocdecAv1PicParams
 AV1 picture parameters This structure is used in RocdecAv1PicParams structure. More...
 
struct  RocdecAv1SliceParams
 AV1 slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferAV1 structure. This structure conveys parameters related to bit stream data and should be sent once per tile. It uses the name RocdecAv1SliceParams to be consistent with other codec, but actually means RocdecTileParameterAV1. Slice data buffer of VASliceDataBufferType is used to send the bitstream. More...
 
struct  _RocdecPicParams
 Picture parameters for decoding This structure is used in rocDecDecodePicture API IN for rocDecDecodePicture. More...
 
struct  RocdecProcParams
 Picture parameters for postprocessing This structure is used in rocDecGetVideoFrame API. More...
 
struct  RocDecoderCreateInfo.display_rect
 
struct  RocDecoderCreateInfo.target_rect
 
struct  RocdecReconfigureDecoderInfo.display_rect
 
struct  RocdecReconfigureDecoderInfo.target_rect
 
union  RocdecMpeg2PicParams.picture_coding_extension
 
struct  RocdecMpeg2PicParams.picture_coding_extension.bits
 
union  RocdecAvcPicParams.seq_fields
 
struct  RocdecAvcPicParams.seq_fields.bits
 
union  RocdecAvcPicParams.pic_fields
 
struct  RocdecAvcPicParams.pic_fields.bits
 
union  RocdecHevcPicParams.pic_fields
 
struct  RocdecHevcPicParams.pic_fields.bits
 
union  RocdecHevcPicParams.slice_parsing_fields
 
struct  RocdecHevcPicParams.slice_parsing_fields.bits
 
union  RocdecHevcSliceParams.long_slice_flags
 
struct  RocdecHevcSliceParams.long_slice_flags.fields
 
union  RocdecVp9PicParams.pic_fields
 
struct  RocdecVp9PicParams.pic_fields.bits
 
union  RocdecAv1PicParams.seq_info_fields
 
struct  RocdecAv1PicParams.seq_info_fields.fields
 
union  RocdecAv1PicParams.pic_info_fields
 
struct  RocdecAv1PicParams.pic_info_fields.bits
 flags for current picture same syntax and semantic as those in AV1 code More...
 
union  RocdecAv1PicParams.loop_filter_info_fields
 
struct  RocdecAv1PicParams.loop_filter_info_fields.bits
 
union  RocdecAv1PicParams.qmatrix_fields
 quantization_matrix More...
 
struct  RocdecAv1PicParams.qmatrix_fields.bits
 
union  RocdecAv1PicParams.mode_control_fields
 
struct  RocdecAv1PicParams.mode_control_fields.bits
 
union  RocdecAv1PicParams.loop_restoration_fields
 loop restoration parameters More...
 
struct  RocdecAv1PicParams.loop_restoration_fields.bits
 

Variables

int RocdecHevcPicture::poc
 picture order count. ! in HEVC, POCs for top and bottom fields of same picture should take different values.
 

Detailed Description

AMD The rocDecode is a toolkit to decode videos and images using a hardware-accelerated video decoder on AMD’s GPUs.


Data Structure Documentation

◆ RocdecDecodeCaps

struct RocdecDecodeCaps

This structure is used in rocDecGetDecoderCaps API.

Definition at line 181 of file rocdecode.h.

+ Collaboration diagram for RocdecDecodeCaps:
Data Fields
uint32_t bit_depth_minus_8

IN: The Value "BitDepth minus 8"

rocDecVideoChromaFormat chroma_format

IN: rocDecVideoChromaFormat_XXX

rocDecVideoCodec codec_type

IN: rocDecVideoCodec_XXX

uint8_t device_id

IN: the device id for which query the decode capability 0 for the first device, 1 for the second device on the system, etc.

uint8_t is_supported

OUT: 1 if codec supported, 0 if not supported

uint32_t max_height

OUT: Max supported coded height in pixels

uint32_t max_width

OUT: Max supported coded width in pixels

uint16_t min_height

OUT: Min supported coded height in pixels

uint16_t min_width

OUT: Min supported coded width in pixels

uint8_t num_decoders

OUT: Number of Decoders that can support IN params

uint16_t output_format_mask

OUT: each bit represents corresponding rocDecVideoSurfaceFormat enum

uint32_t reserved_1[3]

Reserved for future use - set to zero

uint32_t reserved_2[6]

Reserved for future use - set to zero

◆ RocDecoderCreateInfo

struct RocDecoderCreateInfo

This structure is used in rocDecCreateDecoder API.

Definition at line 205 of file rocdecode.h.

+ Collaboration diagram for RocDecoderCreateInfo:
Data Fields
uint32_t bit_depth_minus_8

IN: The value "BitDepth minus 8"

rocDecVideoChromaFormat chroma_format

IN: rocDecVideoChromaFormat_XXX

rocDecVideoCodec codec_type

IN: rocDecVideoCodec_XXX

uint8_t device_id

IN: the device id for which a decoder should be created 0 for the first device, 1 for the second device on the system, etc.

struct RocDecoderCreateInfo.display_rect display_rect

IN: area of the frame that should be displayed

uint32_t height

IN: Coded sequence height in pixels

uint32_t intra_decode_only

IN: Set 1 only if video has all intra frames (default value is 0). This will optimize video memory for Intra frames only decoding. The support is limited to specific codecs - AVC/H264, HEVC, VP9, the flag will be ignored for codecs which are not supported. However decoding might fail if the flag is enabled in case of supported codecs for regular bit streams having P and/or B frames.

uint32_t max_height

IN: Coded sequence max height in pixels used with reconfigure Decoder

uint32_t max_width

IN: Coded sequence max width in pixels used with reconfigure Decoder

uint32_t num_decode_surfaces

IN: Maximum number of internal decode surfaces

uint32_t num_output_surfaces

IN: Maximum number of output surfaces simultaneously mapped

rocDecVideoSurfaceFormat output_format

IN: rocDecVideoSurfaceFormat_XXX

uint32_t reserved_2[4]

Reserved for future use - set to zero

uint32_t target_height

IN: Post-processed output height (Should be aligned to 2)

struct RocDecoderCreateInfo.target_rect target_rect

IN: (for future use) target rectangle in the output frame (for aspect ratio conversion) if a null rectangle is specified, {0,0,target_width,target_height} will be used

uint32_t target_width

IN: Post-processed output width (Should be aligned to 2)

uint32_t width

IN: Coded sequence width in pixels

◆ RocdecDecodeStatus

struct RocdecDecodeStatus

Struct for reporting decode status. This structure is used in RocdecGetDecodeStatus API.

Definition at line 256 of file rocdecode.h.

+ Collaboration diagram for RocdecDecodeStatus:
Data Fields
rocDecDecodeStatus decode_status
void * p_reserved[8]
uint32_t reserved[31]

◆ RocdecReconfigureDecoderInfo

struct RocdecReconfigureDecoderInfo

Struct for decoder reset This structure is used in rocDecReconfigureDecoder() API.

Definition at line 269 of file rocdecode.h.

+ Collaboration diagram for RocdecReconfigureDecoderInfo:
Data Fields
struct RocdecReconfigureDecoderInfo.display_rect display_rect

IN: area of the frame that should be displayed

uint32_t height

IN: Coded sequence height in pixels, MUST be < = max_height defined at RocDecoderCreateInfo

uint32_t num_decode_surfaces

IN: Maximum number of internal decode surfaces

uint32_t reserved_1[12]

Reserved for future use. Set to Zero

uint32_t reserved_2[11]

Reserved for future use. Set to Zero

uint32_t target_height

IN: Post Processed output height

struct RocdecReconfigureDecoderInfo.target_rect target_rect

IN: (for future use) target rectangle in the output frame (for aspect ratio conversion) if a null rectangle is specified, {0,0,target_width,target_height} will be used

uint32_t target_width

IN: Post processed output width

uint32_t width

IN: Coded sequence width in pixels, MUST be < = max_width defined at RocDecoderCreateInfo

◆ RocdecAvcPicture

struct RocdecAvcPicture

AVC/H.264 Picture Entry This structure is used in RocdecAvcPicParams structure.

Definition at line 305 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicture:
Data Fields
int32_t bottom_field_order_cnt

field order count of bottom field

uint32_t flags

See below for definitions

uint32_t frame_idx

frame_num(int16_t-term) or LongTermFrameIdx(long-term)

int pic_idx

picture index of reference frame

uint32_t reserved[4]
int32_t top_field_order_cnt

field order count of top field

◆ RocdecHevcPicture

struct RocdecHevcPicture

HEVC Picture Entry This structure is used in RocdecHevcPicParams structure.

Definition at line 329 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicture:
Data Fields
uint32_t flags

See below for definitions

int pic_idx

reconstructed picture surface ID

int poc picture order count. ! in HEVC, POCs for top and bottom fields of same picture should take different values.
uint32_t reserved[4]

reserved for future; must be zero

◆ RocdecJPEGPicParams

struct RocdecJPEGPicParams

JPEG picture parameters This structure is used in RocdecPicParams structure.

Definition at line 387 of file rocdecode.h.

+ Collaboration diagram for RocdecJPEGPicParams:
Data Fields
int reserved

◆ RocdecMpeg2QMatrix

struct RocdecMpeg2QMatrix

MPEG2 QMatrix This structure is used in _RocdecMpeg2PicParams structure.

Definition at line 398 of file rocdecode.h.

+ Collaboration diagram for RocdecMpeg2QMatrix:
Data Fields
uint8_t chroma_intra_quantiser_matrix[64]
uint8_t chroma_non_intra_quantiser_matrix[64]
uint8_t intra_quantiser_matrix[64]
int32_t load_chroma_intra_quantiser_matrix
int32_t load_chroma_non_intra_quantiser_matrix
int32_t load_intra_quantiser_matrix
int32_t load_non_intra_quantiser_matrix
uint8_t non_intra_quantiser_matrix[64]

◆ RocdecMpeg2PicParams

struct RocdecMpeg2PicParams

MPEG2 picture parameters This structure is used in RocdecMpeg2PicParams structure.

Definition at line 416 of file rocdecode.h.

+ Collaboration diagram for RocdecMpeg2PicParams:
Data Fields
uint32_t backward_reference_picture
int32_t f_code
uint32_t forward_reference_pic
uint16_t horizontal_size
union RocdecMpeg2PicParams.picture_coding_extension picture_coding_extension
int32_t picture_coding_type
RocdecMpeg2QMatrix q_matrix
uint32_t reserved[4]
uint16_t vertical_size

◆ RocdecVc1PicParams

struct RocdecVc1PicParams

JPEG picture parameters This structure is used in RocdecVc1PicParams structure.

Definition at line 455 of file rocdecode.h.

+ Collaboration diagram for RocdecVc1PicParams:
Data Fields
int reserved

◆ RocdecAvcPicParams

struct RocdecAvcPicParams

AVC picture parameters This structure is used in RocdecAvcPicParams structure This structure is configured to be the same as VA-API VAPictureParameterBufferH264 structure.

Definition at line 467 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicParams:
Data Fields
uint8_t bit_depth_chroma_minus8
uint8_t bit_depth_luma_minus8
int8_t chroma_qp_index_offset
RocdecAvcPicture curr_pic
uint16_t frame_num
uint8_t num_ref_frames
uint8_t num_slice_groups_minus1
union RocdecAvcPicParams.pic_fields pic_fields
int8_t pic_init_qp_minus26
int8_t pic_init_qs_minus26
uint16_t picture_height_in_mbs_minus1
uint16_t picture_width_in_mbs_minus1
RocdecAvcPicture ref_frames[16]
uint32_t reserved[8]
int8_t second_chroma_qp_index_offset
union RocdecAvcPicParams.seq_fields seq_fields
uint16_t slice_group_change_rate_minus1
uint8_t slice_group_map_type

◆ RocdecAvcSliceParams

struct RocdecAvcSliceParams

AVC slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferH264 structure.

Definition at line 531 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcSliceParams:
Data Fields
uint8_t cabac_init_idc
uint8_t chroma_log2_weight_denom
int16_t chroma_offset_l0[32][2]
int16_t chroma_offset_l1[32][2]
int16_t chroma_weight_l0[32][2]
uint8_t chroma_weight_l0_flag
int16_t chroma_weight_l1[32][2]
uint8_t chroma_weight_l1_flag
uint8_t direct_spatial_mv_pred_flag
uint8_t disable_deblocking_filter_idc
uint16_t first_mb_in_slice
uint8_t luma_log2_weight_denom
int16_t luma_offset_l0[32]
int16_t luma_offset_l1[32]
int16_t luma_weight_l0[32]
uint8_t luma_weight_l0_flag
int16_t luma_weight_l1[32]
uint8_t luma_weight_l1_flag
uint8_t num_ref_idx_l0_active_minus1
uint8_t num_ref_idx_l1_active_minus1
RocdecAvcPicture ref_pic_list_0[32]
RocdecAvcPicture ref_pic_list_1[32]
uint32_t reserved[4]
int8_t slice_alpha_c0_offset_div2
int8_t slice_beta_offset_div2
uint16_t slice_data_bit_offset Bit offset from NAL Header Unit to the begining of slice_data().

This bit offset is relative to and includes the NAL unit byte and represents the number of bits parsed in the slice_header() after the removal of any emulation prevention bytes in there. However, the slice data buffer passed to the hardware is the original bitstream, thus including any emulation prevention bytes.

uint32_t slice_data_flag
uint32_t slice_data_offset
uint32_t slice_data_size
int8_t slice_qp_delta
uint8_t slice_type

◆ RocdecAvcIQMatrix

struct RocdecAvcIQMatrix

AVC Inverse Quantization Matrix This structure is configured to be the same as VA-API VAIQMatrixBufferH264 structure.

Definition at line 582 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcIQMatrix:
Data Fields
uint32_t reserved[4] Reserved bytes for future use, must be zero.
uint8_t scaling_list_4x4[6][16] 4x4 scaling list, in raster scan order.
uint8_t scaling_list_8x8[2][64] 8x8 scaling list, in raster scan order.

◆ RocdecHevcPicParams

struct RocdecHevcPicParams

HEVC picture parameters This structure is used in RocdecHevcPicParams structure.

Definition at line 598 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicParams:
Data Fields
uint8_t bit_depth_chroma_minus8
uint8_t bit_depth_luma_minus8
uint16_t column_width_minus1[19]

when uniform_spacing_flag equals 1, application should populate column_width_minus[], and row_height_minus1[] with approperiate values.

RocdecHevcPicture curr_pic
uint8_t diff_cu_qp_delta_depth
int8_t init_qp_minus26
uint8_t log2_diff_max_min_luma_coding_block_size
uint8_t log2_diff_max_min_pcm_luma_coding_block_size
uint8_t log2_diff_max_min_transform_block_size
uint8_t log2_max_pic_order_cnt_lsb_minus4

following parameters have same syntax with those in HEVC spec

uint8_t log2_min_luma_coding_block_size_minus3
uint8_t log2_min_pcm_luma_coding_block_size_minus3
uint8_t log2_min_transform_block_size_minus2
uint8_t log2_parallel_merge_level_minus2
uint8_t max_transform_hierarchy_depth_inter
uint8_t max_transform_hierarchy_depth_intra
uint8_t num_extra_slice_header_bits
uint8_t num_long_term_ref_pic_sps
uint8_t num_ref_idx_l0_default_active_minus1
uint8_t num_ref_idx_l1_default_active_minus1
uint8_t num_short_term_ref_pic_sets
uint8_t num_tile_columns_minus1
uint8_t num_tile_rows_minus1
uint8_t pcm_sample_bit_depth_chroma_minus1
uint8_t pcm_sample_bit_depth_luma_minus1
union RocdecHevcPicParams.pic_fields pic_fields
uint16_t picture_height_in_luma_samples
uint16_t picture_width_in_luma_samples
int8_t pps_beta_offset_div2
int8_t pps_cb_qp_offset
int8_t pps_cr_qp_offset
int8_t pps_tc_offset_div2
RocdecHevcPicture ref_frames[15]
uint32_t reserved[8]
uint16_t row_height_minus1[21]
union RocdecHevcPicParams.slice_parsing_fields slice_parsing_fields
uint8_t sps_max_dec_pic_buffering_minus1

SPS fields: the following parameters have same syntax with those in HEVC spec IN: DPB size for current temporal layer

uint32_t st_rps_bits number of bits that structure short_term_ref_pic_set( num_short_term_ref_pic_sets ) takes in slice segment header when short_term_ref_pic_set_sps_flag equals 0. if short_term_ref_pic_set_sps_flag equals 1, the value should be 0. the bit count is calculated after emulation prevention bytes are removed from bit streams. This variable is used for accelorater to skip parsing the short_term_ref_pic_set( num_short_term_ref_pic_sets ) structure.

◆ RocdecHevcSliceParams

struct RocdecHevcSliceParams

HEVC slice parameters This structure is used in RocdecPicParams structure.

Definition at line 722 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcSliceParams:
Data Fields
int8_t chroma_offset_l0[15][2]

corresponds to HEVC spec variable of the same name.

int8_t chroma_offset_l1[15][2]

corresponds to HEVC spec variable of the same name.

uint8_t collocated_ref_idx

HEVC syntax element.

int8_t delta_chroma_log2_weight_denom
int8_t delta_chroma_weight_l0[15][2]
int8_t delta_chroma_weight_l1[15][2]
int8_t delta_luma_weight_l0[15]
int8_t delta_luma_weight_l1[15]

HEVC syntax element.

uint16_t entry_offset_to_subset_array
uint8_t five_minus_max_num_merge_cand

HEVC syntax element.

union RocdecHevcSliceParams.long_slice_flags long_slice_flags
uint8_t luma_log2_weight_denom
int8_t luma_offset_l0[15]
int8_t luma_offset_l1[15]
uint16_t num_entry_point_offsets
uint8_t num_ref_idx_l0_active_minus1
uint8_t num_ref_idx_l1_active_minus1
uint8_t ref_pic_list[2][15] index into ReferenceFrames[] ref_pic_list[0][] corresponds to RefPicList0[] of HEVC variable. ref_pic_list[1][] corresponds to RefPicList1[] of HEVC variable. value range [0..14, 0xFF], where 0xFF indicates invalid entry.
uint32_t reserved[2]
int8_t slice_beta_offset_div2
int8_t slice_cb_qp_offset
int8_t slice_cr_qp_offset
uint32_t slice_data_byte_offset Byte offset from NAL unit header to the begining of slice_data().

This byte offset is relative to and includes the NAL unit header and represents the number of bytes parsed in the slice_header() after the removal of any emulation prevention bytes in there. However, the slice data buffer passed to the hardware is the original bitstream, thus including any emulation prevention bytes.

uint32_t slice_data_flag Slice data buffer flags. See VA_SLICE_DATA_FLAG_XXX.
uint16_t slice_data_num_emu_prevn_bytes Number of emulation prevention bytes in slice header.
uint32_t slice_data_offset The offset to the NAL unit header for this slice.
uint32_t slice_data_size Number of bytes in the slice data buffer for this slice counting from and including NAL unit header.
int8_t slice_qp_delta
uint32_t slice_segment_address

HEVC syntax element.

int8_t slice_tc_offset_div2

◆ RocdecHevcIQMatrix

struct RocdecHevcIQMatrix

HEVC IQMatrix This structure is sent once per frame, and only when scaling_list_enabled_flag = 1. When sps_scaling_list_data_present_flag = 0, app still needs to send in this structure with default matrix values. This structure is used in RocdecHevcQMatrix structure.

Definition at line 816 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcIQMatrix:
Data Fields
uint32_t reserved[4]
uint8_t scaling_list_16x16[6][64] 16x16 scaling, correspongs i = 2, MatrixID is in the range of 0 to 5, inclusive. And j is in the range of 0 to 63, inclusive.
uint8_t scaling_list_32x32[2][64] 32x32 scaling, correspongs i = 3, MatrixID is in the range of 0 to 1, inclusive. And j is in the range of 0 to 63, inclusive.
uint8_t scaling_list_4x4[6][16] 4x4 scaling, correspongs i = 0, MatrixID is in the range of 0 to 5, inclusive. And j is in the range of 0 to 15, inclusive.
uint8_t scaling_list_8x8[6][64] 8x8 scaling, correspongs i = 1, MatrixID is in the range of 0 to 5, inclusive. And j is in the range of 0 to 63, inclusive.
uint8_t scaling_list_dc_16x16[6] DC values of the 16x16 scaling lists, corresponds to HEVC spec syntax scaling_list_dc_coef_minus8[ sizeID - 2 ][ matrixID ] + 8 with sizeID = 2 and matrixID in the range of 0 to 5, inclusive.
uint8_t scaling_list_dc_32x32[2] DC values of the 32x32 scaling lists, corresponds to HEVC spec syntax scaling_list_dc_coef_minus8[ sizeID - 2 ][ matrixID ] + 8 with sizeID = 3 and matrixID in the range of 0 to 1, inclusive.

◆ RocdecVp9PicParams

struct RocdecVp9PicParams

VP9 picture parameters This structure is configured to be the same as VA-API VADecPictureParameterBufferVP9 structure.

Definition at line 865 of file rocdecode.h.

+ Collaboration diagram for RocdecVp9PicParams:
Data Fields
uint8_t bit_depth VP9 bit depth per sample same for both luma and chroma samples.
uint8_t filter_level
uint16_t first_partition_size The byte count of compressed header the bitstream buffer, which corresponds to syntax first_partition_size in code.
uint8_t frame_header_length_in_bytes Number of bytes taken up by the uncompressed frame header, which corresponds to byte length of function read_uncompressed_header() in VP9 code. Specifically, it is the byte count from bit stream buffer start to the last byte of uncompressed frame header. If there are other meta data in the buffer before uncompressed header, its size should be also included here.
uint16_t frame_height picture height Picture original resolution. The value may not be multiple of 8.
uint16_t frame_width picture width Picture original resolution. The value may not be multiple of 8.
uint8_t log2_tile_columns number of tile columns specified by (1 << log2_tile_columns). It corresponds the variable with same name in VP9 code.
uint8_t log2_tile_rows number of tile rows specified by (1 << log2_tile_rows). It corresponds the variable with same name in VP9 code.
uint8_t mb_segment_tree_probs[7]

These values are segment probabilities with same names in VP9 function setup_segmentation(). They should be parsed directly from bitstream by application.

union RocdecVp9PicParams.pic_fields pic_fields
uint8_t profile VP9 Profile definition value range [0..3].
uint32_t reference_frames[8] Surface indices of reference frames in DPB.

Each entry of the list specifies the surface index of the picture that is referred by current picture or will be referred by any future picture. Application who calls this API should update this list based on the refreshing information from VP9 bitstream.

uint8_t segment_pred_probs[3]
uint8_t sharpness_level
uint32_t va_reserved[8] Reserved bytes for future use, must be zero.

◆ RocdecVp9SliceParams

struct RocdecVp9SliceParams

VP9 slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferVP9 structure.

Definition at line 1075 of file rocdecode.h.

+ Collaboration diagram for RocdecVp9SliceParams:
Data Fields
RocdecVp9SegmentParameter seg_param[8] per segment information
uint32_t slice_data_flag

see VA_SLICE_DATA_FLAG_XXX definitions

uint32_t slice_data_offset

offset to the first byte of partition data (control partition)

uint32_t slice_data_size The byte count of current frame in the bitstream buffer, starting from first byte of the buffer. It uses the name slice_data_size to be consitent with other codec, but actually means frame_data_size.
uint32_t va_reserved[4] Reserved bytes for future use, must be zero.

◆ RocdecAv1PicParams

struct RocdecAv1PicParams

AV1 picture parameters This structure is used in RocdecAv1PicParams structure.

Definition at line 1270 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams:
Data Fields
int * anchor_frames_list anchor frame list for large scale tile For large scale tile applications, the anchor frames could come from previously decoded frames in current sequence (aka. internal), or from external sources. For external anchor frames, application should call API vaCreateBuffer() to generate frame buffers and populate them with pixel frames. And this process may happen multiple times. The array anchor_frames_list[] is used to register all the available anchor frames from both external and internal, up to the current frame instance. If a previously registerred anchor frame is no longer needed, it should be removed from the list. But it does not prevent applications from relacing the frame buffer with new anchor frames. Please note that the internal anchor frames may not still be present in the current DPB buffer. But if it is in the anchor_frames_list[], it should not be replaced with other frames or removed from memory until it is not shown in the list. This number of entries of the list is given by parameter anchor_frames_num.
uint8_t anchor_frames_num number of anchor frames for large scale tile This parameter gives the number of entries of anchor_frames_list[]. Value range [0..128].
uint8_t base_qindex quantization

Y AC index value range [0..255]

uint8_t bit_depth_idx bit depth index value range [0..2] 0 - bit depth 8; 1 - bit depth 10; 2 - bit depth 12;
uint8_t cdef_bits
uint8_t cdef_damping_minus_3 CDEF parameters.
uint8_t cdef_uv_strengths[8]
uint8_t cdef_y_strengths[8]

Encode cdef strength:

The cdef_y_strengths[] and cdef_uv_strengths[] are expected to be packed with both primary and secondary strength. The secondary strength is given in the lower two bits and the primary strength is given in the next four bits.

cdef_y_strengths[] & cdef_uv_strengths[] should be derived as: (cdef_y_strengths[]) = (cdef_y_pri_strength[] << 2) | (cdef_y_sec_strength[] & 0x03) (cdef_uv_strengths[]) = (cdef_uv_pri_strength[] << 2) | (cdef_uv_sec_strength[] & 0x03) In which, cdef_y_pri_strength[]/cdef_y_sec_strength[]/cdef_uv_pri_strength[]/cdef_uv_sec_strength[] are variables defined in AV1 Spec 5.9.19. The cdef_y_strengths[] & cdef_uv_strengths[] are corresponding to LIBAOM variables cm->cdef_strengths[] & cm->cdef_uv_strengths[] respectively.

uint16_t context_update_tile_id
int current_display_picture display buffer of current picture Used for film grain applied decoded picture. Valid only when apply_grain equals 1.
int current_frame Picture level information.

buffer description of decoded current picture

RocdecAv1FilmGrainStruct film_grain_info
uint8_t filter_level[2] luma loop filter levels. value range [0..63].
uint8_t filter_level_u chroma loop filter levels. value range [0..63].
uint8_t filter_level_v
uint16_t frame_height_minus1
uint16_t frame_width_minus1 Picture resolution minus 1 Picture original resolution. If SuperRes is enabled, this is the upscaled resolution. value range [0..65535].
uint16_t height_in_sbs_minus_1[63]
uint8_t interp_filter Interpolation filter. value range [0..4].
union RocdecAv1PicParams.loop_filter_info_fields loop_filter_info_fields
union RocdecAv1PicParams.loop_restoration_fields loop_restoration_fields loop restoration parameters
uint8_t matrix_coefficients corresponds to AV1 spec variable of the same name.
union RocdecAv1PicParams.mode_control_fields mode_control_fields
int8_t mode_deltas[2] The adjustment needed for the filter level based on the chosen mode. value range [-64..63].
uint8_t order_hint
uint8_t order_hint_bits_minus_1
uint16_t output_frame_height_in_tiles_minus_1
uint16_t output_frame_width_in_tiles_minus_1 Output frame buffer size in unit of tiles Valid only when large_scale_tile equals 1. value range [0..65535].
union RocdecAv1PicParams.pic_info_fields pic_info_fields
uint8_t primary_ref_frame primary reference frame index Index into ref_frame_idx[], specifying which reference frame contains propagated info that should be loaded at the start of the frame. When value equals PRIMARY_REF_NONE (7), it indicates there is no primary reference frame. value range [0..7]
uint8_t profile sequence level information

AV1 bit stream profile

union RocdecAv1PicParams.qmatrix_fields qmatrix_fields quantization_matrix
int8_t ref_deltas[8] The adjustment needed for the filter level based on the chosen reference frame. value range [-64..63].
uint8_t ref_frame_idx[7] Reference frame indices.

Contains a list of indices into ref_frame_map[8]. It specifies the reference frame correspondence. The indices of the array are defined as [LAST_FRAME – LAST_FRAME, LAST2_FRAME – LAST_FRAME, …, ALTREF_FRAME – LAST_FRAME], where each symbol is defined as: enum{INTRA_FRAME = 0, LAST_FRAME, LAST2_FRAME, LAST3_FRAME, GOLDEN_FRAME, BWDREF_FRAME, ALTREF2_FRAME, ALTREF_FRAME};

int ref_frame_map[8] Surface indices of reference frames in DPB.

Contains a list of uncompressed frame buffer surface indices as references. Application needs to make sure all the entries point to valid frames except for intra frames by checking ref_frame_id[]. If missing frame is identified, application may choose to perform error recovery by pointing problematic index to an alternative frame buffer. Driver is not responsible to validate reference frames' id.

uint32_t reserved[8] Reserved bytes for future use, must be zero.
RocdecAv1SegmentationStruct seg_info
union RocdecAv1PicParams.seq_info_fields seq_info_fields
uint8_t superres_scale_denominator Supper resolution scale denominator. When use_superres=1, superres_scale_denominator must be in the range [9..16]. When use_superres=0, superres_scale_denominator must be 8.
uint8_t tile_cols tile structure When uniform_tile_spacing_flag == 1, width_in_sbs_minus_1[] and height_in_sbs_minus_1[] should be ignored, which will be generated by driver based on tile_cols and tile_rows.
uint16_t tile_count_minus_1 number of tiles minus 1 in large scale tile list Same as AV1 semantic element. Valid only when large_scale_tiles == 1.
uint8_t tile_rows
int8_t u_ac_delta_q U AC delta from Y AC value range [-64..63].
int8_t u_dc_delta_q U DC delta from Y AC value range [-64..63].
int8_t v_ac_delta_q V AC delta from Y AC value range [-64..63].
int8_t v_dc_delta_q V DC delta from Y AC value range [-64..63].
uint16_t width_in_sbs_minus_1[63]
RocdecAv1WarpedMotionParams wm[7] global motion
int8_t y_dc_delta_q Y DC delta from Y AC value range [-64..63].

◆ RocdecAv1SliceParams

struct RocdecAv1SliceParams

AV1 slice parameter buffer This structure is configured to be the same as VA-API VASliceParameterBufferAV1 structure. This structure conveys parameters related to bit stream data and should be sent once per tile. It uses the name RocdecAv1SliceParams to be consistent with other codec, but actually means RocdecTileParameterAV1. Slice data buffer of VASliceDataBufferType is used to send the bitstream.

Definition at line 1678 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1SliceParams:
Data Fields
uint8_t anchor_frame_idx anchor frame index for large scale tile. index into an array AnchorFrames of the frames that the tile uses for prediction. valid only when large_scale_tile equals 1.
uint32_t reserved[4] Reserved bytes for future use, must be zero.
uint32_t slice_data_flag

see VA_SLICE_DATA_FLAG_XXX definitions

uint32_t slice_data_offset

offset to the first byte of the data buffer.

uint32_t slice_data_size The byte count of current tile in the bitstream buffer, starting from first byte of the buffer. It uses the name slice_data_size to be consistent with other codec, but actually means tile_data_size.
uint16_t tg_end
uint16_t tg_start
uint16_t tile_column
uint16_t tile_idx_in_tile_list tile index in the tile list. Valid only when large_scale_tile is enabled. Driver uses this field to decide the tile output location.
uint16_t tile_row

◆ _RocdecPicParams

struct _RocdecPicParams

Picture parameters for decoding This structure is used in rocDecDecodePicture API IN for rocDecDecodePicture.

+ Collaboration diagram for _RocdecPicParams:

◆ RocdecProcParams

struct RocdecProcParams

Picture parameters for postprocessing This structure is used in rocDecGetVideoFrame API.

Definition at line 1780 of file rocdecode.h.

+ Collaboration diagram for RocdecProcParams:
Data Fields
int progressive_frame

IN: Input is progressive (deinterlace_mode will be ignored)

uint64_t raw_input_dptr

IN: Input HIP device ptr for raw YUV extensions

uint32_t raw_input_format

IN: Input YUV format (rocDecVideoCodec_enum)

uint32_t raw_input_pitch

IN: pitch in bytes of raw YUV input (should be aligned appropriately)

uint64_t raw_output_dptr

IN: Output HIP device mem ptr for raw YUV extensions

uint32_t raw_output_format

IN: Output YUV format (rocDecVideoCodec_enum)

uint32_t raw_output_pitch

IN: pitch in bytes of raw YUV output (should be aligned appropriately)

uint32_t reserved[16]

Reserved for future use (set to zero)

uint32_t reserved_flags[2]

Reserved for future use (set to zero)

int top_field_first

IN: Input frame is top field first (1st field is top, 2nd field is bottom)

◆ RocDecoderCreateInfo.display_rect

struct RocDecoderCreateInfo.display_rect

Definition at line 225 of file rocdecode.h.

+ Collaboration diagram for RocDecoderCreateInfo.display_rect:
Data Fields
int16_t bottom
int16_t left
int16_t right
int16_t top

◆ RocDecoderCreateInfo.target_rect

struct RocDecoderCreateInfo.target_rect

Definition at line 237 of file rocdecode.h.

+ Collaboration diagram for RocDecoderCreateInfo.target_rect:
Data Fields
int16_t bottom
int16_t left
int16_t right
int16_t top

◆ RocdecReconfigureDecoderInfo.display_rect

struct RocdecReconfigureDecoderInfo.display_rect

Definition at line 279 of file rocdecode.h.

+ Collaboration diagram for RocdecReconfigureDecoderInfo.display_rect:
Data Fields
int16_t bottom
int16_t left
int16_t right
int16_t top

◆ RocdecReconfigureDecoderInfo.target_rect

struct RocdecReconfigureDecoderInfo.target_rect

Definition at line 286 of file rocdecode.h.

+ Collaboration diagram for RocdecReconfigureDecoderInfo.target_rect:
Data Fields
int16_t bottom
int16_t left
int16_t right
int16_t top

◆ RocdecMpeg2PicParams.picture_coding_extension

union RocdecMpeg2PicParams.picture_coding_extension

Definition at line 425 of file rocdecode.h.

+ Collaboration diagram for RocdecMpeg2PicParams.picture_coding_extension:
Data Fields
struct RocdecMpeg2PicParams.picture_coding_extension.bits bits
uint32_t value

◆ RocdecMpeg2PicParams.picture_coding_extension.bits

struct RocdecMpeg2PicParams.picture_coding_extension.bits

Definition at line 427 of file rocdecode.h.

+ Collaboration diagram for RocdecMpeg2PicParams.picture_coding_extension.bits:
Data Fields
uint32_t alternate_scan: 1
uint32_t concealment_motion_vectors: 1
uint32_t frame_pred_frame_dct: 1
uint32_t intra_dc_precision: 2
uint32_t intra_vlc_format: 1
uint32_t is_first_field: 1
uint32_t picture_structure: 2
uint32_t progressive_frame: 1
uint32_t q_scale_type: 1
uint32_t repeat_first_field: 1
uint32_t top_field_first: 1

◆ RocdecAvcPicParams.seq_fields

union RocdecAvcPicParams.seq_fields

Definition at line 476 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicParams.seq_fields:
Data Fields
struct RocdecAvcPicParams.seq_fields.bits bits
uint32_t value

◆ RocdecAvcPicParams.seq_fields.bits

struct RocdecAvcPicParams.seq_fields.bits

Definition at line 478 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicParams.seq_fields.bits:
Data Fields
uint32_t chroma_format_idc: 2
uint32_t delta_pic_order_always_zero_flag: 1
uint32_t direct_8x8_inference_flag: 1
uint32_t frame_mbs_only_flag: 1
uint32_t gaps_in_frame_num_value_allowed_flag: 1
uint32_t log2_max_frame_num_minus4: 4
uint32_t log2_max_pic_order_cnt_lsb_minus4: 4
uint32_t mb_adaptive_frame_field_flag: 1
uint32_t MinLumaBiPredSize8x8: 1
uint32_t pic_order_cnt_type: 2
uint32_t residual_colour_transform_flag: 1

◆ RocdecAvcPicParams.pic_fields

union RocdecAvcPicParams.pic_fields

Definition at line 503 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicParams.pic_fields:
Data Fields
struct RocdecAvcPicParams.pic_fields.bits bits
uint32_t value

◆ RocdecAvcPicParams.pic_fields.bits

struct RocdecAvcPicParams.pic_fields.bits

Definition at line 505 of file rocdecode.h.

+ Collaboration diagram for RocdecAvcPicParams.pic_fields.bits:
Data Fields
uint32_t constrained_intra_pred_flag: 1
uint32_t deblocking_filter_control_present_flag: 1
uint32_t entropy_coding_mode_flag: 1
uint32_t field_pic_flag: 1
uint32_t pic_order_present_flag: 1
uint32_t redundant_pic_cnt_present_flag: 1
uint32_t reference_pic_flag: 1
uint32_t transform_8x8_mode_flag: 1
uint32_t weighted_bipred_idc: 2
uint32_t weighted_pred_flag: 1

◆ RocdecHevcPicParams.pic_fields

union RocdecHevcPicParams.pic_fields

Definition at line 604 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicParams.pic_fields:
Data Fields
struct RocdecHevcPicParams.pic_fields.bits bits
uint32_t value

◆ RocdecHevcPicParams.pic_fields.bits

struct RocdecHevcPicParams.pic_fields.bits

Definition at line 606 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicParams.pic_fields.bits:
Data Fields
uint32_t amp_enabled_flag: 1
uint32_t chroma_format_idc: 2

following flags have same syntax and semantic as those in HEVC spec

uint32_t constrained_intra_pred_flag: 1
uint32_t cu_qp_delta_enabled_flag: 1
uint32_t entropy_coding_sync_enabled_flag: 1
uint32_t loop_filter_across_tiles_enabled_flag: 1
uint32_t no_bi_pred_flag: 1

picture has no B slices

uint32_t no_pic_reordering_flag: 1

set based on sps_max_num_reorder_pics of current temporal layer.

uint32_t pcm_enabled_flag: 1
uint32_t pcm_loop_filter_disabled_flag: 1
uint32_t pps_loop_filter_across_slices_enabled_flag: 1
uint32_t reserved_bits: 11
uint32_t scaling_list_enabled_flag: 1
uint32_t separate_colour_plane_flag: 1
uint32_t sign_data_hiding_enabled_flag: 1
uint32_t strong_intra_smoothing_enabled_flag: 1
uint32_t tiles_enabled_flag: 1
uint32_t transform_skip_enabled_flag: 1
uint32_t transquant_bypass_enabled_flag: 1
uint32_t weighted_bipred_flag: 1
uint32_t weighted_pred_flag: 1

◆ RocdecHevcPicParams.slice_parsing_fields

union RocdecHevcPicParams.slice_parsing_fields

Definition at line 664 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicParams.slice_parsing_fields:
Data Fields
struct RocdecHevcPicParams.slice_parsing_fields.bits bits
uint32_t value

◆ RocdecHevcPicParams.slice_parsing_fields.bits

struct RocdecHevcPicParams.slice_parsing_fields.bits

Definition at line 666 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcPicParams.slice_parsing_fields.bits:
Data Fields
uint32_t cabac_init_present_flag: 1
uint32_t deblocking_filter_override_enabled_flag: 1
uint32_t dependent_slice_segments_enabled_flag: 1
uint32_t idr_pic_flag: 1

current picture with NUT between 19 and 20 inclusive

uint32_t intra_pic_flag: 1

current picture has only intra slices

uint32_t lists_modification_present_flag: 1

following parameters have same syntax with those in HEVC spec

uint32_t long_term_ref_pics_present_flag: 1
uint32_t output_flag_present_flag: 1
uint32_t pps_disable_deblocking_filter_flag: 1
uint32_t pps_slice_chroma_qp_offsets_present_flag: 1
uint32_t rap_pic_flag: 1

current picture with NUT between 16 and 21 inclusive

uint32_t reserved_bits: 18
uint32_t sample_adaptive_offset_enabled_flag: 1
uint32_t slice_segment_header_extension_present_flag: 1
uint32_t sps_temporal_mvp_enabled_flag: 1

◆ RocdecHevcSliceParams.long_slice_flags

union RocdecHevcSliceParams.long_slice_flags

Definition at line 751 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcSliceParams.long_slice_flags:
Data Fields
struct RocdecHevcSliceParams.long_slice_flags.fields fields
uint32_t value

◆ RocdecHevcSliceParams.long_slice_flags.fields

struct RocdecHevcSliceParams.long_slice_flags.fields

Definition at line 754 of file rocdecode.h.

+ Collaboration diagram for RocdecHevcSliceParams.long_slice_flags.fields:
Data Fields
uint32_t cabac_init_flag: 1
uint32_t collocated_from_l0_flag: 1
uint32_t color_plane_id: 2
uint32_t dependent_slice_segment_flag: 1

HEVC syntax element.

uint32_t last_slice_of_pic: 1

current slice is last slice of picture.

uint32_t mvd_l1_zero_flag: 1
uint32_t reserved: 18
uint32_t slice_deblocking_filter_disabled_flag: 1
uint32_t slice_loop_filter_across_slices_enabled_flag: 1
uint32_t slice_sao_chroma_flag: 1
uint32_t slice_sao_luma_flag: 1
uint32_t slice_temporal_mvp_enabled_flag: 1
uint32_t slice_type: 2

◆ RocdecVp9PicParams.pic_fields

union RocdecVp9PicParams.pic_fields

Definition at line 886 of file rocdecode.h.

+ Collaboration diagram for RocdecVp9PicParams.pic_fields:
Data Fields
struct RocdecVp9PicParams.pic_fields.bits bits
uint32_t value

◆ RocdecVp9PicParams.pic_fields.bits

struct RocdecVp9PicParams.pic_fields.bits

Definition at line 888 of file rocdecode.h.

+ Collaboration diagram for RocdecVp9PicParams.pic_fields.bits:
Data Fields
uint32_t allow_high_precision_mv: 1
uint32_t alt_ref_frame: 3 Index of reference_frames[] and points to the ALTERNATE reference frame. Corresponds to active_ref_idx[2] in VP9 code.
uint32_t alt_ref_frame_sign_bias: 1 Sign Bias of the ALTERNATE reference frame. Corresponds to ref_frame_sign_bias[ALTREF_FRAME] in VP9 code.
uint32_t error_resilient_mode: 1
uint32_t frame_context_idx: 2
uint32_t frame_parallel_decoding_mode: 1
uint32_t frame_type: 1
uint32_t golden_ref_frame: 3 Index of reference_frames[] and points to the GOLDERN reference frame. It corresponds to active_ref_idx[1] in VP9 code.
uint32_t golden_ref_frame_sign_bias: 1 Sign Bias of the GOLDERN reference frame. Corresponds to ref_frame_sign_bias[GOLDERN_FRAME] in VP9 code.
uint32_t intra_only: 1
uint32_t last_ref_frame: 3 Index of reference_frames[] and points to the LAST reference frame. It corresponds to active_ref_idx[0] in VP9 code.
uint32_t last_ref_frame_sign_bias: 1 Sign Bias of the LAST reference frame. It corresponds to ref_frame_sign_bias[LAST_FRAME] in VP9 code.
uint32_t lossless_flag: 1 Lossless Mode LosslessFlag = base_qindex == 0 && y_dc_delta_q == 0 && uv_dc_delta_q == 0 && uv_ac_delta_q == 0; Where base_qindex, y_dc_delta_q, uv_dc_delta_q and uv_ac_delta_q are all variables in VP9 code.
uint32_t mcomp_filter_type: 3
uint32_t refresh_frame_context: 1
uint32_t reset_frame_context: 2
uint32_t segmentation_enabled: 1
uint32_t segmentation_temporal_update: 1 corresponds to variable temporal_update in VP9 code.
uint32_t segmentation_update_map: 1 corresponds to variable update_mb_segmentation_map in VP9 code.
uint32_t show_frame: 1
uint32_t subsampling_x: 1 flags for current picture same syntax and semantic as those in VP9 code
uint32_t subsampling_y: 1

◆ RocdecAv1PicParams.seq_info_fields

union RocdecAv1PicParams.seq_info_fields

Definition at line 1292 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.seq_info_fields:
Data Fields
struct RocdecAv1PicParams.seq_info_fields.fields fields
uint32_t value

◆ RocdecAv1PicParams.seq_info_fields.fields

struct RocdecAv1PicParams.seq_info_fields.fields

Definition at line 1294 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.seq_info_fields.fields:
Data Fields
uint32_t chroma_sample_position: 1
uint32_t color_range: 1
uint32_t enable_cdef: 1
uint32_t enable_dual_filter: 1
uint32_t enable_filter_intra: 1
uint32_t enable_interintra_compound: 1

read_compound_tools

uint32_t enable_intra_edge_filter: 1
uint32_t enable_jnt_comp: 1
uint32_t enable_masked_compound: 1
uint32_t enable_order_hint: 1
uint32_t film_grain_params_present: 1
uint32_t mono_chrome: 1
uint32_t reserved: 16 Reserved bytes for future use, must be zero.
uint32_t still_picture: 1
uint32_t subsampling_x: 1
uint32_t subsampling_y: 1
uint32_t use_128x128_superblock: 1

◆ RocdecAv1PicParams.pic_info_fields

union RocdecAv1PicParams.pic_info_fields

Definition at line 1436 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.pic_info_fields:
Data Fields
struct RocdecAv1PicParams.pic_info_fields.bits bits flags for current picture same syntax and semantic as those in AV1 code
uint32_t value

◆ RocdecAv1PicParams.pic_info_fields.bits

struct RocdecAv1PicParams.pic_info_fields.bits

flags for current picture same syntax and semantic as those in AV1 code

Definition at line 1441 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.pic_info_fields.bits:
Data Fields
uint32_t allow_high_precision_mv: 1
uint32_t allow_intrabc: 1
uint32_t allow_screen_content_tools: 1
uint32_t allow_warped_motion: 1
uint32_t disable_cdf_update: 1
uint32_t disable_frame_end_update_cdf: 1
uint32_t error_resilient_mode: 1
uint32_t force_integer_mv: 1
uint32_t frame_type: 2 Frame Type: 0: KEY_FRAME; 1: INTER_FRAME; 2: INTRA_ONLY_FRAME; 3: SWITCH_FRAME For SWITCH_FRAME, application shall set error_resilient_mode = 1, refresh_frame_flags, etc. appropriately. And driver will convert it to INTER_FRAME.
uint32_t is_motion_mode_switchable: 1
uint32_t large_scale_tile: 1 indicate if current frame in large scale tile mode
uint32_t reserved: 15 Reserved bytes for future use, must be zero.
uint32_t show_frame: 1
uint32_t showable_frame: 1
uint32_t uniform_tile_spacing_flag: 1
uint32_t use_ref_frame_mvs: 1
uint32_t use_superres: 1

◆ RocdecAv1PicParams.loop_filter_info_fields

union RocdecAv1PicParams.loop_filter_info_fields

Definition at line 1499 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.loop_filter_info_fields:
Data Fields
struct RocdecAv1PicParams.loop_filter_info_fields.bits bits
uint8_t value

◆ RocdecAv1PicParams.loop_filter_info_fields.bits

struct RocdecAv1PicParams.loop_filter_info_fields.bits

Definition at line 1501 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.loop_filter_info_fields.bits:
Data Fields
uint8_t mode_ref_delta_enabled: 1
uint8_t mode_ref_delta_update: 1
uint8_t reserved: 3 Reserved bytes for future use, must be zero.
uint8_t sharpness_level: 3 flags for reference pictures same syntax and semantic as those in AV1 code

◆ RocdecAv1PicParams.qmatrix_fields

union RocdecAv1PicParams.qmatrix_fields

quantization_matrix

Definition at line 1557 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.qmatrix_fields:
Data Fields
struct RocdecAv1PicParams.qmatrix_fields.bits bits
uint16_t value

◆ RocdecAv1PicParams.qmatrix_fields.bits

struct RocdecAv1PicParams.qmatrix_fields.bits

Definition at line 1559 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.qmatrix_fields.bits:
Data Fields
uint16_t qm_u: 4
uint16_t qm_v: 4
uint16_t qm_y: 4 qm level value range [0..15] Invalid if using_qmatrix equals 0.
uint16_t reserved: 3 Reserved bytes for future use, must be zero.
uint16_t using_qmatrix: 1

◆ RocdecAv1PicParams.mode_control_fields

union RocdecAv1PicParams.mode_control_fields

Definition at line 1576 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.mode_control_fields:
Data Fields
struct RocdecAv1PicParams.mode_control_fields.bits bits
uint32_t value

◆ RocdecAv1PicParams.mode_control_fields.bits

struct RocdecAv1PicParams.mode_control_fields.bits

Definition at line 1578 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.mode_control_fields.bits:
Data Fields
uint32_t delta_lf_multi: 1 CONFIG_LOOPFILTER_LEVEL.
uint32_t delta_lf_present_flag: 1 delta_lf parameters
uint32_t delta_q_present_flag: 1 delta_q parameters
uint32_t log2_delta_lf_res: 2
uint32_t log2_delta_q_res: 2
uint32_t reduced_tx_set_used: 1
uint32_t reference_select: 1
uint32_t reserved: 20 Reserved bytes for future use, must be zero.
uint32_t skip_mode_present: 1
uint32_t tx_mode: 2 read_tx_mode value range [0..2]

◆ RocdecAv1PicParams.loop_restoration_fields

union RocdecAv1PicParams.loop_restoration_fields

loop restoration parameters

Definition at line 1642 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.loop_restoration_fields:
Data Fields
struct RocdecAv1PicParams.loop_restoration_fields.bits bits
uint16_t value

◆ RocdecAv1PicParams.loop_restoration_fields.bits

struct RocdecAv1PicParams.loop_restoration_fields.bits

Definition at line 1644 of file rocdecode.h.

+ Collaboration diagram for RocdecAv1PicParams.loop_restoration_fields.bits:
Data Fields
uint16_t cbframe_restoration_type: 2
uint16_t crframe_restoration_type: 2
uint16_t lr_unit_shift: 2
uint16_t lr_uv_shift: 1
uint16_t reserved: 7 Reserved bytes for future use, must be zero.
uint16_t yframe_restoration_type: 2

Variable Documentation

◆ poc

int RocdecHevcPicture::poc

picture order count. ! in HEVC, POCs for top and bottom fields of same picture should take different values.

Definition at line 337 of file rocdecode.h.