HEVC: Cut HEVC parser creation time from about 40 milliseconds to about 50 microseconds. (#458)

* * rocDecode/HEVC: Cut HEVC parser creation time from about 40 milliseconds to about 50 microseconds.

* * rocDecode/HEVC: Added necessary parameter init in parser constructor.

---------

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: 27e9ed23ed]
This commit is contained in:
jeffqjiangNew
2024-11-19 15:10:35 -05:00
committed by GitHub
parent a1d84696ca
commit f7cffa4db2
2 changed files with 34 additions and 56 deletions
+4 -4
View File
@@ -119,10 +119,10 @@ protected:
int32_t m_active_vps_id_;
int32_t m_active_sps_id_;
int32_t m_active_pps_id_;
HevcVideoParamSet* m_vps_ = nullptr;
HevcSeqParamSet* m_sps_ = nullptr;
HevcPicParamSet* m_pps_ = nullptr;
HevcSliceSegHeader* m_sh_copy_ = nullptr;
HevcVideoParamSet vps_list_[MAX_VPS_COUNT];
HevcSeqParamSet sps_list_[MAX_SPS_COUNT];
HevcPicParamSet pps_list_[MAX_PPS_COUNT];
HevcSliceSegHeader slice_header_copy_;
std::vector<HevcSliceInfo> slice_info_list_;
std::vector<RocdecHevcSliceParams> slice_param_list_;