Skip to content

mipi color md type changed in fw side adjustments#14394

Merged
Nir-Az merged 3 commits intorealsenseai:developmentfrom
remibettan:mipi_color_md_parser_for_correctd_md_type
Oct 30, 2025
Merged

mipi color md type changed in fw side adjustments#14394
Nir-Az merged 3 commits intorealsenseai:developmentfrom
remibettan:mipi_color_md_parser_for_correctd_md_type

Conversation

@remibettan
Copy link
Contributor

Tracked by: RSDSO-20682

@remibettan remibettan requested review from Nir-Az and Copilot October 29, 2025 08:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adjusts metadata handling for MIPI color frames to accommodate firmware version-dependent type changes. The firmware now uses different metadata type IDs based on version, requiring backward compatibility.

  • Restores the proper META_DATA_MIPI_INTEL_RGB_ID type and removes the workaround comment
  • Implements a new firmware version-aware metadata parser class for MIPI color streams
  • Updates all MIPI color metadata registrations to use the new version-aware parser

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/metadata.h Restores proper MIPI RGB metadata type and removes legacy workaround
src/metadata-parser.h Adds new firmware version-aware metadata parser class for MIPI color
src/ds/d400/d400-color.cpp Updates all metadata registrations to use the new version-aware parser

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

expected_type = md_type_trait<S>::type;
}

// checking type and size, with updated expected type
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

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

Inconsistent indentation detected. This line uses tabs while the surrounding code uses spaces. Please use consistent spacing throughout the file.

Suggested change
// checking type and size, with updated expected type
// checking type and size, with updated expected type

Copilot uses AI. Check for mistakes.
Comment on lines +281 to +282
template<class S, class Attribute, typename Flag>
const librealsense::firmware_version md_attribute_parser_mipi_color<S, Attribute, Flag>::_min_fw_for_type{ "5.17.0.12" };
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

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

The firmware version string '5.17.0.12' is hardcoded. Consider defining this as a named constant or configuration value to improve maintainability and make it easier to update when firmware requirements change.

Suggested change
template<class S, class Attribute, typename Flag>
const librealsense::firmware_version md_attribute_parser_mipi_color<S, Attribute, Flag>::_min_fw_for_type{ "5.17.0.12" };
// Named constant for minimum firmware version required for MIPI color type
constexpr const char MIN_FW_VERSION_FOR_MIPI_COLOR_TYPE[] = "5.17.0.12";
template<class S, class Attribute, typename Flag>
const librealsense::firmware_version md_attribute_parser_mipi_color<S, Attribute, Flag>::_min_fw_for_type{ MIN_FW_VERSION_FOR_MIPI_COLOR_TYPE };

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

Currently merging as is, we will try later to optimize it

@Nir-Az Nir-Az merged commit 18a3417 into realsenseai:development Oct 30, 2025
26 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.

3 participants