Skip to content

Commit

Permalink
PR IntelRealSense#13315 from remibettan: Sensor ts metadata mipi corr…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
Nir-Az authored Oct 28, 2024
2 parents 9f8861a + 9e9530e commit 258da85
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/ds/d400/d400-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,15 +1090,12 @@ namespace librealsense
// attributes of md_mipi_depth_control structure
auto md_prop_offset = offsetof(metadata_mipi_depth_raw, depth_mode);

// optical_timestamp contains value of exposure/2
depth_sensor.register_metadata(RS2_FRAME_METADATA_SENSOR_TIMESTAMP,
make_attribute_parser(&md_mipi_depth_mode::hw_timestamp,
md_mipi_depth_control_attributes::hw_timestamp_attribute,
md_prop_offset));

depth_sensor.register_metadata(RS2_FRAME_METADATA_SENSOR_TIMESTAMP,
make_attribute_parser(&md_mipi_depth_mode::optical_timestamp,
md_mipi_depth_control_attributes::optical_timestamp_attribute,
md_prop_offset));
make_rs400_sensor_ts_parser(make_uvc_header_parser(&platform::uvc_header::timestamp),
make_attribute_parser(&md_mipi_depth_mode::optical_timestamp,
md_mipi_depth_control_attributes::optical_timestamp_attribute,
md_prop_offset)));

depth_sensor.register_metadata(RS2_FRAME_METADATA_ACTUAL_EXPOSURE,
make_attribute_parser(&md_mipi_depth_mode::exposure_time,
Expand Down

0 comments on commit 258da85

Please sign in to comment.