Add support for rocDecCreateDecoder API (#28)

* Add support for rocDecCreateDecoder API

* check the decoder config support before initializing the vaapi

* rename RocdecDecoderCreateInfo to RocDecoderCreateInfo

* fix a typo
This commit is contained in:
Aryan Salmanpour
2023-11-01 09:22:46 -04:00
committed by GitHub
parent 88a34e4db0
commit 32f854c159
9 changed files with 170 additions and 77 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ int RocVideoDecoder::HandleVideoSequence(RocdecVideoFormat *pVideoFormat) {
}
video_format_ = *pVideoFormat;
RocdecDecoderCreateInfo videoDecodeCreateInfo = { 0 };
RocDecoderCreateInfo videoDecodeCreateInfo = { 0 };
videoDecodeCreateInfo.CodecType = pVideoFormat->codec;
videoDecodeCreateInfo.ChromaFormat = pVideoFormat->chroma_format;
videoDecodeCreateInfo.OutputFormat = video_surface_format_;