/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocdecode/checkouts/docs-6.2.1/api/rocdecode.h Source File#
rocdecode.h
Go to the documentation of this file.
94 } rocDecVideoCodec;
111 /**************************************************************************************************************/
116 /**************************************************************************************************************/
122 } rocDecVideoChromaFormat;
136 rocDecodeStatus_Error_Concealed = 9, // Decode is completed with an error and error is concealed
140 /**************************************************************************************************************/
144 /**************************************************************************************************************/
161 /**************************************************************************************************************/
165 /**************************************************************************************************************/
202 /*********************************************************************************************************/
207 /*********************************************************************************************************/
376 uint32_t is_first_field : 1; // indicate whether the current field is the first field for field picture
1438 /*****************************************************************************************************/
1442 /*****************************************************************************************************/
1443 extern rocDecStatus ROCDECAPI rocDecCreateDecoder(rocDecDecoderHandle *decoder_handle, RocDecoderCreateInfo *decoder_create_info);
1445 /*****************************************************************************************************/
1449 /*****************************************************************************************************/
1452 /**********************************************************************************************************************/
1459 /**********************************************************************************************************************/
1462 /*****************************************************************************************************/
1467 /*****************************************************************************************************/
1468 extern rocDecStatus ROCDECAPI rocDecDecodeFrame(rocDecDecoderHandle decoder_handle, RocdecPicParams *pic_params);
1470 /************************************************************************************************************/
1476 /************************************************************************************************************/
1477 extern rocDecStatus ROCDECAPI rocDecGetDecodeStatus(rocDecDecoderHandle decoder_handle, int pic_idx, RocdecDecodeStatus *decode_status);
1479 /*********************************************************************************************************/
1484 /*********************************************************************************************************/
1485 extern rocDecStatus ROCDECAPI rocDecReconfigureDecoder(rocDecDecoderHandle decoder_handle, RocdecReconfigureDecoderInfo *reconfig_params);
1487 /************************************************************************************************************************/
1494 /************************************************************************************************************************/
1495 extern rocDecStatus ROCDECAPI rocDecGetVideoFrame(rocDecDecoderHandle decoder_handle, int pic_idx,
1499 /*****************************************************************************************************/
1503 /*****************************************************************************************************/
rocDecStatus ROCDECAPI rocDecCreateDecoder(rocDecDecoderHandle *decoder_handle, RocDecoderCreateInfo *decoder_create_info)
rocDecStatus ROCDECAPI rocDecReconfigureDecoder(rocDecDecoderHandle decoder_handle, RocdecReconfigureDecoderInfo *reconfig_params)
int poc
picture order count. ! in HEVC, POCs for top and bottom fields of same picture should take different ...
Definition: rocdecode.h:279
rocDecStatus ROCDECAPI rocDecDecodeFrame(rocDecDecoderHandle decoder_handle, RocdecPicParams *pic_params)
rocDecStatus ROCDECAPI rocDecDestroyDecoder(rocDecDecoderHandle decoder_handle)
const char *ROCDECAPI rocDecGetErrorName(rocDecStatus rocdec_status)
rocDecStatus ROCDECAPI rocDecGetDecodeStatus(rocDecDecoderHandle decoder_handle, int pic_idx, RocdecDecodeStatus *decode_status)
struct _RocdecAv1SegmentationStruct RocdecAv1SegmentationStruct
Segmentation Information for AV1.
@ rocDecVideoSurfaceFormat_YUV444_16Bit
Definition: rocdecode.h:107
struct _RocdecAv1FilmGrainStruct RocdecAv1FilmGrainStruct
Film Grain Information for AV1.
Definition: rocdecode.h:166
struct _RocDecoderCreateInfo::@1 target_rect
rocDecVideoChromaFormat chroma_format
Definition: rocdecode.h:173
rocDecVideoSurfaceFormat output_format
Definition: rocdecode.h:188
struct _RocDecoderCreateInfo::@0 display_rect
Definition: rocdecode.h:938
int8_t u_ac_delta_q
U AC delta from Y AC value range [-64..63].
Definition: rocdecode.h:1207
uint8_t filter_level_u
chroma loop filter levels. value range [0..63].
Definition: rocdecode.h:1160
int ref_frame_map[8]
Surface indices of reference frames in DPB.
Definition: rocdecode.h:1049
uint8_t tile_cols
tile structure When uniform_tile_spacing_flag == 1, width_in_sbs_minus_1[] and height_in_sbs_minus_1[...
Definition: rocdecode.h:1081
uint8_t matrix_coefficients
corresponds to AV1 spec variable of the same name.
Definition: rocdecode.h:957
uint8_t sharpness_level
flags for reference pictures same syntax and semantic as those in AV1 code
Definition: rocdecode.h:1168
int8_t u_dc_delta_q
U DC delta from Y AC value range [-64..63].
Definition: rocdecode.h:1203
uint16_t qm_y
qm level value range [0..15] Invalid if using_qmatrix equals 0.
Definition: rocdecode.h:1226
int8_t ref_deltas[8]
The adjustment needed for the filter level based on the chosen reference frame. value range [-64....
Definition: rocdecode.h:1182
uint8_t bit_depth_idx
bit depth index value range [0..2] 0 - bit depth 8; 1 - bit depth 10; 2 - bit depth 12;
Definition: rocdecode.h:954
uint32_t tx_mode
read_tx_mode value range [0..2]
Definition: rocdecode.h:1255
uint16_t frame_width_minus1
Picture resolution minus 1 Picture original resolution. If SuperRes is enabled, this is the upscaled ...
Definition: rocdecode.h:1030
union _RocdecAV1PicParams::@25 loop_restoration_fields
loop restoration parameters
uint8_t anchor_frames_num
number of anchor frames for large scale tile This parameter gives the number of entries of anchor_fra...
Definition: rocdecode.h:1003
int8_t v_ac_delta_q
V AC delta from Y AC value range [-64..63].
Definition: rocdecode.h:1215
int8_t v_dc_delta_q
V DC delta from Y AC value range [-64..63].
Definition: rocdecode.h:1211
uint8_t reserved
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:1173
uint8_t primary_ref_frame
primary reference frame index Index into ref_frame_idx[], specifying which reference frame contains p...
Definition: rocdecode.h:1070
uint32_t enable_interintra_compound
Definition: rocdecode.h:967
int current_frame
Picture level information.
Definition: rocdecode.h:991
uint8_t cdef_damping_minus_3
CDEF parameters.
Definition: rocdecode.h:1273
uint8_t ref_frame_idx[7]
Reference frame indices.
Definition: rocdecode.h:1061
uint8_t filter_level[2]
luma loop filter levels. value range [0..63].
Definition: rocdecode.h:1155
uint16_t reserved
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:1231
uint32_t delta_q_present_flag
delta_q parameters
Definition: rocdecode.h:1240
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....
Definition: rocdecode.h:1037
uint32_t large_scale_tile
indicate if current frame in large scale tile mode
Definition: rocdecode.h:1133
int8_t mode_deltas[2]
The adjustment needed for the filter level based on the chosen mode. value range [-64....
Definition: rocdecode.h:1188
uint8_t superres_scale_denominator
Supper resolution scale denominator. When use_superres=1, superres_scale_denominator must be in the r...
Definition: rocdecode.h:1145
uint32_t frame_type
flags for current picture same syntax and semantic as those in AV1 code
Definition: rocdecode.h:1116
uint32_t delta_lf_multi
CONFIG_LOOPFILTER_LEVEL.
Definition: rocdecode.h:1250
uint32_t delta_lf_present_flag
delta_lf parameters
Definition: rocdecode.h:1245
int8_t y_dc_delta_q
Y DC delta from Y AC value range [-64..63].
Definition: rocdecode.h:1199
int current_display_picture
display buffer of current picture Used for film grain applied decoded picture. Valid only when apply_...
Definition: rocdecode.h:997
uint8_t interp_filter
Interpolation filter. value range [0..4].
Definition: rocdecode.h:1150
int * anchor_frames_list
anchor frame list for large scale tile For large scale tile applications, the anchor frames could com...
Definition: rocdecode.h:1023
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_...
Definition: rocdecode.h:1096
uint32_t reserved
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:981
uint32_t apply_grain
Specify whether or not film grain is applied on current frame. If set to 0, all the rest parameters s...
Definition: rocdecode.h:859
uint32_t reserved
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:868
int16_t feature_data[8][8]
Segmentation parameters for current frame. feature_data[segment_id][feature_id] where segment_id has ...
Definition: rocdecode.h:837
uint32_t reserved
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:811
uint8_t feature_mask[8]
indicates if a feature is enabled or not. Each bit field itself is the feature_id....
Definition: rocdecode.h:844
Definition: rocdecode.h:1331
uint8_t anchor_frame_idx
anchor frame index for large scale tile. index into an array AnchorFrames of the frames that the tile...
Definition: rocdecode.h:1355
uint32_t slice_data_size
The byte count of current tile in the bitstream buffer, starting from first byte of the buffer....
Definition: rocdecode.h:1337
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 d...
Definition: rocdecode.h:1361
uint32_t reserved[4]
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:1364
Definition: rocdecode.h:914
RocdecAv1TransformationType wmtype
Specify the type of warped motion.
Definition: rocdecode.h:916
int32_t wmmat[8]
Specify warp motion parameters wm.wmmat[] corresponds to gm_params[][] in spec. Details in AV1 spec s...
Definition: rocdecode.h:923
uint32_t reserved[4]
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:929
Definition: rocdecode.h:511
uint8_t scaling_list_8x8[2][64]
8x8 scaling list, in raster scan order.
Definition: rocdecode.h:515
uint32_t reserved[4]
Reserved bytes for future use, must be zero.
Definition: rocdecode.h:517
uint8_t scaling_list_4x4[6][16]
4x4 scaling list, in raster scan order.
Definition: rocdecode.h:513
Definition: rocdecode.h:402
Definition: rocdecode.h:249
Definition: rocdecode.h:461
uint16_t slice_data_bit_offset
Bit offset from NAL Header Unit to the begining of slice_data().
Definition: rocdecode.h:475
Definition: rocdecode.h:145
Definition: rocdecode.h:208
Definition: rocdecode.h:736
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 ...
Definition: rocdecode.h:748
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 ...
Definition: rocdecode.h:742
uint8_t scaling_list_dc_32x32[2]
DC values of the 32x32 scaling lists, corresponds to HEVC spec syntax scaling_list_dc_coef_minus8[ si...
Definition: rocdecode.h:774
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 rang...
Definition: rocdecode.h:754
uint8_t scaling_list_dc_16x16[6]
DC values of the 16x16 scaling lists, corresponds to HEVC spec syntax scaling_list_dc_coef_minus8[ si...
Definition: rocdecode.h:767
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 rang...
Definition: rocdecode.h:760
Definition: rocdecode.h:526
uint16_t column_width_minus1[19]
Definition: rocdecode.h:586
uint32_t st_rps_bits
number of bits that structure short_term_ref_pic_set( num_short_term_ref_pic_sets ) takes in slice se...
Definition: rocdecode.h:635
uint8_t sps_max_dec_pic_buffering_minus1
Definition: rocdecode.h:562
uint32_t no_pic_reordering_flag
Definition: rocdecode.h:553
uint32_t lists_modification_present_flag
Definition: rocdecode.h:592
uint8_t log2_max_pic_order_cnt_lsb_minus4
Definition: rocdecode.h:617
Definition: rocdecode.h:272
Definition: rocdecode.h:645
uint32_t slice_segment_address
Definition: rocdecode.h:666
uint32_t slice_data_flag
Slice data buffer flags. See VA_SLICE_DATA_FLAG_XXX.
Definition: rocdecode.h:653
uint8_t five_minus_max_num_merge_cand
Definition: rocdecode.h:717
uint32_t slice_data_offset
The offset to the NAL unit header for this slice.
Definition: rocdecode.h:651
uint32_t slice_data_size
Number of bytes in the slice data buffer for this slice counting from and including NAL unit header.
Definition: rocdecode.h:649
int8_t delta_luma_weight_l1[15]
Definition: rocdecode.h:711
uint16_t slice_data_num_emu_prevn_bytes
Number of emulation prevention bytes in slice header.
Definition: rocdecode.h:721
uint8_t ref_pic_list[2][15]
index into ReferenceFrames[] ref_pic_list[0][] corresponds to RefPicList0[] of HEVC variable....
Definition: rocdecode.h:672
uint32_t dependent_slice_segment_flag
Definition: rocdecode.h:679
uint32_t slice_data_byte_offset
Byte offset from NAL unit header to the begining of slice_data().
Definition: rocdecode.h:664
Definition: rocdecode.h:329
Definition: rocdecode.h:356
Definition: rocdecode.h:339
Definition: rocdecode.h:1374
union _RocdecPicParams::@33 slice_params
Variable size array. The user should allocate one slice param struct for each slice.
Definition: rocdecode.h:1423
Definition: rocdecode.h:220
struct _RocdecReconfigureDecoderInfo::@3 target_rect
uint32_t num_decode_surfaces
Definition: rocdecode.h:225
struct _RocdecReconfigureDecoderInfo::@2 display_rect
Definition: rocdecode.h:391