AVC: Added decode picture callback from parser to decoder and VAAPI decode submission. (#190)

* * 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: Condensed several lines based on code review feedback.
This commit is contained in:
jeffqjiangNew
2024-01-23 20:30:29 -05:00
committed by GitHub
parent e7dbd65315
commit 426067898c
5 changed files with 460 additions and 111 deletions
+2 -2
View File
@@ -287,8 +287,8 @@ int HevcVideoParser::SendPicForDecode() {
RocdecHevcPicParams *pic_param_ptr = &dec_pic_params_.pic_params.hevc;
// Current picture
pic_param_ptr->cur_pic.PicIdx = curr_pic_info_.pic_idx;
pic_param_ptr->cur_pic.POC = curr_pic_info_.pic_order_cnt;
pic_param_ptr->curr_pic.PicIdx = curr_pic_info_.pic_idx;
pic_param_ptr->curr_pic.POC = curr_pic_info_.pic_order_cnt;
// Reference pictures
ref_idx = 0;