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

[ROCm/rocdecode commit: 32f854c159]
このコミットが含まれているのは:
Aryan Salmanpour authored and GitHub committed 2023-11-01 09:22:46 -04:00
1 親 9a80f51b34
コミット b6557252a0
9ファイル変更
+170 -77

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -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_;