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.
此提交包含在:
@@ -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;
|
||||
|
||||
新增問題並參考
封鎖使用者