mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-03 19:47:46 +08:00
Update Orbbec SDK to version 2.4.11
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user