Jj/hevc decode wip (#18)

* rocDecode/HEVC parsing: Implemented correct logic to set active VPS, SPS and PPS: start from slice header and up. Added video image size change detection. Fixed slice_segment_address bits calculation in slice segment header parsing.

* rocDecode/HEVC: Changed variable naming to Google style.

[ROCm/rocdecode commit: 94ff35e03c]
This commit is contained in:
jeffqjiangNew
2023-10-19 14:07:36 -04:00
committed by GitHub
parent 97c97bcf39
commit b51ce09f9b
4 changed files with 72 additions and 49 deletions
@@ -22,6 +22,12 @@ THE SOFTWARE.
#include "roc_video_parser.h"
RocVideoParser::RocVideoParser() {
pic_width_ = 0;
pic_height_ = 0;
pic_dimension_changed_ = false;
}
/**
* @brief Initializes any parser related stuff for all parsers
*
@@ -39,6 +45,6 @@ rocDecStatus RocVideoParser::Initialize(RocdecParserParams *pParams) {
pfn_get_sei_message_cb_ = pParams->pfnGetSEIMsg; /**< Called when all SEI messages are parsed for particular frame */
parser_params_ = pParams;
return ROCDEC_SUCCESS;
}