Update Orbbec SDK to version 2.4.11

This commit is contained in:
obyalian
2025-08-05 17:11:39 +08:00
parent 127b7ed2c6
commit 68b13fd987
18 changed files with 965 additions and 941 deletions
File diff suppressed because it is too large Load Diff
@@ -570,7 +570,7 @@ public:
*
* @param impl The pointer to the internal frame object.
*/
explicit ConfidenceFrame(const ob_frame *impl) : VideoFrame(impl){};
explicit ConfidenceFrame(const ob_frame *impl) : VideoFrame(impl) {};
~ConfidenceFrame() noexcept override = default;
};
@@ -999,6 +999,22 @@ public:
return frame->as<VideoFrame>();
}
/**
* @brief Create a new FrameSet object.
*
* This function creates a new FrameSet instance by internally calling the native C API.
* The returned FrameSet is managed by a std::shared_ptr, and its lifetime will be
* automatically managed. When no references remain, the underlying native resources will be released.
*
* @return std::shared_ptr<FrameSet> The created FrameSet object.
*/
static std::shared_ptr<FrameSet> createFrameSet() {
ob_error *error = nullptr;
auto impl = ob_create_frameset(&error);
Error::handle(&error);
return std::make_shared<FrameSet>(impl);
}
private:
struct BufferDestroyContext {
BufferDestroyCallback callback;