Update sdk to v2.2.8 and replace Repeat using clean IR video and speckle depth video with skip frame

This commit is contained in:
datean
2025-03-17 18:13:34 +08:00
parent 9caaa78c0a
commit 2c0fa34988
29 changed files with 242 additions and 107 deletions
@@ -113,6 +113,7 @@ public:
/**
* @brief Set the device plug-in callback function.
* @attention This function supports multiple callbacks. Each call to this function adds a new callback to an internal list.
*
* @param callback The function triggered when the device is plugged and unplugged.
*/
@@ -383,6 +383,20 @@ public:
Error::handle(&error);
}
/**
* @brief Update the device optional depth presets
*
* @param filePathList A list(2D array) of preset file paths, each up to OB_PATH_MAX characters.
* @param pathCount The number of the preset file paths.
* @param callback Preset update progress and status callback
*/
void updateOptionalDepthPresets(const char filePathList[][OB_PATH_MAX], uint8_t pathCount, DeviceFwUpdateCallback callback) {
ob_error *error = nullptr;
fwUpdateCallback_ = callback;
ob_device_update_optional_depth_presets(impl_, filePathList, pathCount, &Device::firmwareUpdateCallback, this, &error);
Error::handle(&error);
}
/**
* @brief Set the device state changed callbacks
*
@@ -957,7 +957,9 @@ private:
static void BufferDestroy(uint8_t *buffer, void *context) {
auto *ctx = static_cast<BufferDestroyContext *>(context);
ctx->callback(buffer);
if (ctx->callback) {
ctx->callback(buffer);
}
delete ctx;
}
};