Skip to content
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

Conversation

Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Apr 22, 2020

No description provided.

@@ -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)
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed.

@@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed.

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)
Copy link
Collaborator

@maloel maloel Apr 23, 2020

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"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed.

@dorodnic dorodnic merged commit 7a39551 into IntelRealSense:development Apr 23, 2020
@Nir-Az Nir-Az deleted the change_depth_invalidation_enabled_v2 branch April 23, 2020 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants