Code Clean up - remove unused API (#552)

* Code Clean up - remove unused API

* clean up

[ROCm/rocdecode commit: d80f807b1a]
This commit is contained in:
Aryan Salmanpour
2025-04-09 13:49:04 -04:00
committed by GitHub
vanhempi 711f12d271
commit 20e919c6cf
5 muutettua tiedostoa jossa 0 lisäystä ja 41 poistoa
@@ -82,30 +82,6 @@ rocDecParseVideoData(RocdecVideoParser parser_handle, RocdecSourceDataPacket *pa
return ret;
}
/************************************************************************************************/
//! \ingroup group_rocparser
//! \fn rocDecStatus ROCDECAPI rocDecParserMarkFrameForReuse(RocdecVideoParser parser_handle, int pic_idx)
//! Release frame with index pic_idx from parser's buffer pool and mark it for reuse
/************************************************************************************************/
rocDecStatus ROCDECAPI
rocDecParserMarkFrameForReuse(RocdecVideoParser parser_handle, int pic_idx) {
if (parser_handle == nullptr || pic_idx < 0) {
return ROCDEC_INVALID_PARAMETER;
}
auto roc_parser_handle = static_cast<RocParserHandle *>(parser_handle);
rocDecStatus ret;
try {
ret = roc_parser_handle->MarkFrameForReuse(pic_idx);
}
catch(const std::exception& e) {
roc_parser_handle->CaptureError(e.what());
ERR(e.what())
return ROCDEC_RUNTIME_ERROR;
}
return ret;
}
/************************************************************************************************/
//! \ingroup FUNCTS
//! \fn rocDecStatus ROCDECAPI rocDecDestroyVideoParser(RocdecVideoParser parser_handle)