Code Clean up - remove unused API (#552)

* Code Clean up - remove unused API

* clean up
Этот коммит содержится в:
Aryan Salmanpour
2025-04-09 13:49:04 -04:00
коммит произвёл GitHub
родитель 038d618836
Коммит d80f807b1a
5 изменённых файлов: 0 добавлений и 41 удалений
-7
Просмотреть файл
@@ -285,13 +285,6 @@ extern rocDecStatus ROCDECAPI rocDecCreateVideoParser(RocdecVideoParser *parser_
/************************************************************************************************/
extern rocDecStatus ROCDECAPI rocDecParseVideoData(RocdecVideoParser parser_handle, RocdecSourceDataPacket *packet);
/************************************************************************************************/
//! \ingroup group_rocparser
//! \fn rocDecStatus ROCDECAPI rocDecParserMarkFrameForReuse(RocdecVideoParser parser_handle, int pic_idx)
//! Mark frame with index pic_idx in parser's buffer pool for reuse (means the frame has been consumed)
/************************************************************************************************/
extern rocDecStatus ROCDECAPI rocDecParserMarkFrameForReuse(RocdecVideoParser parser_handle, int pic_idx);
/************************************************************************************************/
//! \ingroup group_rocparser
//! \fn rocDecStatus ROCDECAPI rocDecDestroyVideoParser(RocdecVideoParser parser_handle)
-1
Просмотреть файл
@@ -38,7 +38,6 @@ public:
const char* ErrorMsg() { return error_.c_str(); }
void CaptureError(const std::string& err_msg) { error_ = err_msg; }
rocDecStatus ParseVideoData(RocdecSourceDataPacket *packet) { return roc_parser_->ParseVideoData(packet); }
rocDecStatus MarkFrameForReuse(int pic_idx) { return roc_parser_->MarkFrameForReuse(pic_idx); }
rocDecStatus DestroyParser() { return DestroyParserInternal(); };
private:
-8
Просмотреть файл
@@ -75,14 +75,6 @@ rocDecStatus RocVideoParser::Initialize(RocdecParserParams *pParams) {
return ROCDEC_SUCCESS;
}
rocDecStatus RocVideoParser::MarkFrameForReuse(int pic_idx) {
if (pic_idx < 0) {
return ROCDEC_INVALID_PARAMETER;
}
//todo::
return ROCDEC_NOT_IMPLEMENTED;
}
void RocVideoParser::InitDecBufPool() {
for (int i = 0; i < dec_buf_pool_size_; i++) {
decode_buffer_pool_[i].use_status = kNotUsed;
-1
Просмотреть файл
@@ -123,7 +123,6 @@ public:
*
* @return rocDecStatus
*/
virtual rocDecStatus MarkFrameForReuse(int pic_idx);
protected:
RocdecParserParams parser_params_ = {};
-24
Просмотреть файл
@@ -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)