Add support for rocDecGetDecodeStatus API (#46)

This commit is contained in:
Aryan Salmanpour
2023-11-09 08:47:58 -05:00
zatwierdzone przez GitHub
rodzic 9afec26af0
commit 6ab31ce40e
5 zmienionych plików z 34 dodań i 5 usunięć
+6 -4
Wyświetl plik
@@ -64,10 +64,12 @@ rocDecStatus RocDecoder::decodeFrame(RocdecPicParams *pPicParams) {
}
rocDecStatus RocDecoder::getDecodeStatus(int nPicIdx, RocdecDecodeStatus* pDecodeStatus) {
// todo:: return appropriate decStatus
// init vaapi decoder to get the decoding status of the picture specified by nPicIndex
// return status
return ROCDEC_NOT_IMPLEMENTED;
rocDecStatus rocdec_status = ROCDEC_SUCCESS;
rocdec_status = va_video_decoder_.GetDecodeStatus(nPicIdx, pDecodeStatus);
if (rocdec_status != ROCDEC_SUCCESS) {
ERR("ERROR: Failed to query the decode status!" + TOSTR(rocdec_status));
}
return rocdec_status;
}
rocDecStatus RocDecoder::reconfigureDecoder(RocdecReconfigureDecoderInfo *pDecReconfigParams) {