diff --git a/projects/rocdecode/api/rocdecode/rocparser.h b/projects/rocdecode/api/rocdecode/rocparser.h index e725dc125a..bc010ba0e3 100644 --- a/projects/rocdecode/api/rocdecode/rocparser.h +++ b/projects/rocdecode/api/rocdecode/rocparser.h @@ -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) diff --git a/projects/rocdecode/src/parser/parser_handle.h b/projects/rocdecode/src/parser/parser_handle.h index 8fba6db423..7c0618dfbc 100644 --- a/projects/rocdecode/src/parser/parser_handle.h +++ b/projects/rocdecode/src/parser/parser_handle.h @@ -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: diff --git a/projects/rocdecode/src/parser/roc_video_parser.cpp b/projects/rocdecode/src/parser/roc_video_parser.cpp index b3872cb1c1..888357b1ad 100644 --- a/projects/rocdecode/src/parser/roc_video_parser.cpp +++ b/projects/rocdecode/src/parser/roc_video_parser.cpp @@ -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; diff --git a/projects/rocdecode/src/parser/roc_video_parser.h b/projects/rocdecode/src/parser/roc_video_parser.h index c541919e0c..34bd185416 100644 --- a/projects/rocdecode/src/parser/roc_video_parser.h +++ b/projects/rocdecode/src/parser/roc_video_parser.h @@ -123,7 +123,6 @@ public: * * @return rocDecStatus */ - virtual rocDecStatus MarkFrameForReuse(int pic_idx); protected: RocdecParserParams parser_params_ = {}; diff --git a/projects/rocdecode/src/parser/rocparser_api.cpp b/projects/rocdecode/src/parser/rocparser_api.cpp index bdac7cd986..48e5ed2fcd 100644 --- a/projects/rocdecode/src/parser/rocparser_api.cpp +++ b/projects/rocdecode/src/parser/rocparser_api.cpp @@ -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(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)