Decode callback implementation step 3: completion. (#47)

* * rocDecode/HEVC: Filled HEVC picture parameter structures for decode callback. Added some missing inferences in tile size and weighted prediction table parsing.

* * rocDecode/HEVC: Changed CurrPicIdx assignment from POC to pic_idx.

* * rocDecode/HEVC: Rmoved one TODO comment, which has been done.

* * rocDecode/HEVC: Corrected two typos in comment.

* * rocDecode/HEVC: No need to set up scaling lists in decode callback when scaling list is not enabled.

[ROCm/rocdecode commit: 8ed03b5ad0]
Tá an tiomantas seo le fáil i:
jeffqjiangNew
2023-11-09 13:52:02 -05:00
tiomanta ag GitHub
tuismitheoir d44d320717
tiomantas 7db33e7837
D'athraigh 3 comhad le 327 breiseanna agus 29 scriosta
+8 -8
Féach ar an gComhad
@@ -613,7 +613,7 @@ typedef struct _RocdecHevcPicParams {
/** following parameters have same syntax with those in HEVC spec */
uint8_t log2_max_pic_order_cnt_lsb_minus4;
uint8_t num_int16_t_term_ref_pic_sets;
uint8_t num_short_term_ref_pic_sets;
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;
@@ -622,13 +622,13 @@ typedef struct _RocdecHevcPicParams {
uint8_t num_extra_slice_header_bits;
/**
* \brief number of bits that structure
* int16_t_term_ref_pic_set( num_int16_t_term_ref_pic_sets ) takes in slice
* segment header when int16_t_term_ref_pic_set_sps_flag equals 0.
* if int16_t_term_ref_pic_set_sps_flag equals 1, the value should be 0.
* 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
* int16_t_term_ref_pic_set( num_int16_t_term_ref_pic_sets ) structure.
* short_term_ref_pic_set( num_short_term_ref_pic_sets ) structure.
*/
uint32_t st_rps_bits;
} RocdecHevcPicParams;
@@ -757,17 +757,17 @@ typedef struct _RocdecPicParams {
RocdecVc1PicParams vc1;
RocdecJPEGPicParams jpeg;
uint32_t CodecReserved[256];
} PictureParameters;
} pic_params;
union {
// Todo: Add slice params defines for other codecs.
RocdecHevcSliceParams hevc;
} SliceParameters;
} slice_params;
union {
// Todo: Added IQ matrix defines for other codecs.
RocdecHevcIQMatrix hevc;
} IQMatrix;
} iq_matrix;
} RocdecPicParams;
/******************************************************/