-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set depth invalidation enabled by CMake flag #6288
Set depth invalidation enabled by CMake flag #6288
Conversation
src/l500/CMakeLists.txt
Outdated
@@ -21,3 +21,7 @@ target_sources(${LRS_TARGET} | |||
"${CMAKE_CURRENT_LIST_DIR}/l500-serializable.h" | |||
"${CMAKE_CURRENT_LIST_DIR}/l500-options.h" | |||
) | |||
|
|||
if (ENABLE_DEPTH_INVALIDATION) | |||
add_definitions(-DDEPTH_INVALIDATION_ENABLED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you keep the define name the same as the CMake variable to make it more intuitive to search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed.
src/l500/l500-depth.h
Outdated
@@ -111,7 +117,8 @@ namespace librealsense | |||
<< "Unsupported depth invalidation enabled " << val << " is out of range."); | |||
}); | |||
|
|||
register_option(static_cast<rs2_option>(RS2_OPTION_DEPTH_INVALIDATION_ENABLE), _depth_invalidation_option); | |||
// The depth invalidation enable option is depricated for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed.
CMake/lrs_options.cmake
Outdated
option(ANDROID_USB_HOST_UVC "Build UVC backend for Android - deprecated, use FORCE_RSUSB_BACKEND instead" OFF) | ||
option(ENABLE_DEPTH_INVALIDATION "Turn on the depth frame validator" ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to mention it's for L500 only... maybe make it ENABLE_L500_DEPTH_INVALIDATION?
Also, it's not exactly clear what "depth invalidation" is -- maybe mention "to automatically catch corrupted frames and restart the sensor"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed.
…nvalidation_enabled_v2 Merge changes from origin
No description provided.