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

helper functions for formatted values on metadata #12550

Merged
merged 2 commits into from Jan 2, 2024

Conversation

AviaAv
Copy link
Contributor

@AviaAv AviaAv commented Jan 1, 2024

Tracked on: [RSDEV-1306]

@AviaAv AviaAv requested a review from Nir-Az January 1, 2024 13:43

bool stream_model::should_show_in_hex(rs2_frame_metadata_value& md_val) const
{
static std::unordered_set< rs2_frame_metadata_value > show_in_hex = {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a comment
place in the SET metadata type you wish to display in HEX format

@@ -106,6 +106,8 @@ namespace rs2
std::unique_ptr< reflectivity > _reflectivity;
rsutils::number::stabilized_value<float> _stabilized_reflectivity;

std::string format_value(rs2_frame_metadata_value& md_val, rs2_metadata_type& attribute_val) const;
bool stream_model::should_show_in_hex(rs2_frame_metadata_value& md_val) const;
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove stream_model:: in header

@AviaAv AviaAv requested a review from Nir-Az January 2, 2024 08:46
@Nir-Az Nir-Az merged commit 8af2a77 into IntelRealSense:development Jan 2, 2024
17 checks passed
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.

None yet

2 participants