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.
此提交包含在:
jeffqjiangNew
2024-01-29 12:09:36 -05:00
提交者 GitHub
父節點 6658070d1c
當前提交 6bd8509bec
共有 4 個檔案被更改,包括 404 行新增17 行删除
+3 -3
查看文件
@@ -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;