AVC: Added several steps in slice decoding process (8.2) (#208)

* * rocDecode/AVC: Added decode picture callback from parser to decoder and VAAPI decode submission.

* * rocDecode/AVC: Minor changes based on code review comments.

* * rocDecode/AVC: Removed a redundant line.

* * rocDecode/AVC: Added picture order count calculation.

* * rocDecode/AVC: Added initial implementation of reference list setup.

* * rocDecode/AVC: Added decoded reference picture marking.

* * rocDecode/AVC: Minor changes based on code review.

[ROCm/rocdecode commit: 6bd8509bec]
This commit is contained in:
jeffqjiangNew
2024-01-29 12:09:36 -05:00
کامیت شده توسط GitHub
والد 97a6f07780
کامیت e140ba1249
4فایلهای تغییر یافته به همراه404 افزوده شده و 17 حذف شده
@@ -662,7 +662,7 @@ bool HevcVideoParser::ParsePictureData(const uint8_t* p_stream, uint32_t pic_dat
}
// Get POC. 8.3.1.
CalculateCurrPOC();
CalculateCurrPoc();
// Decode RPS. 8.3.2.
DecodeRps();
@@ -1916,8 +1916,8 @@ bool HevcVideoParser::IsRefPic(HevcNalUnitHeader *nal_header_ptr) {
}
}
void HevcVideoParser::CalculateCurrPOC() {
// Recode decode order count
void HevcVideoParser::CalculateCurrPoc() {
// Record decode order count
curr_pic_info_.decode_order_count = pic_count_;
if (IsIdrPic(&slice_nal_unit_header_)) {
curr_pic_info_.pic_order_cnt = 0;