Skip to content

Commit

Permalink
add RAW16 to DDS mappings (IntelRealSense#13179)
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Jul 23, 2024
1 parent fc68a9d commit fbcbada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/dds/rs-dds-sensor-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ void dds_sensor_proxy::register_basic_converters()
_formats_converter.register_converter( processing_block_factory::create_id_pbf( RS2_FORMAT_RGBA8, RS2_STREAM_COLOR ) );
_formats_converter.register_converter( processing_block_factory::create_id_pbf( RS2_FORMAT_BGR8, RS2_STREAM_COLOR ) );
_formats_converter.register_converter( processing_block_factory::create_id_pbf( RS2_FORMAT_BGRA8, RS2_STREAM_COLOR ) );
_formats_converter.register_converter( processing_block_factory::create_id_pbf( RS2_FORMAT_RAW16, RS2_STREAM_COLOR ) );

_formats_converter.register_converters(
processing_block_factory::create_pbf_vector< uyvy_converter >(
Expand Down
4 changes: 2 additions & 2 deletions unit-tests/dds/test-librs-device-properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
test.check( rs.color_sensor( sensor ))
test.check( sensors[sensor.name] )
test.check_equal( sensor.name, 'RGB Camera' )
test.check_equal( len(sensor.get_stream_profiles()), 192 ) # As measured running rs-sensor-control example
test.check_equal( len(sensor.get_stream_profiles()), 193 ) # As measured running rs-sensor-control example
sensor = dev.first_motion_sensor()
if test.check( sensor ):
test.check( rs.motion_sensor( sensor ))
Expand Down Expand Up @@ -100,7 +100,7 @@
if test.check( sensor ):
test.check( sensors[sensor.name] )
test.check_equal( sensor.name, 'RGB Camera' )
test.check_equal( len(sensor.get_stream_profiles()), 186 ) # As measured running rs-sensor-control example
test.check_equal( len(sensor.get_stream_profiles()), 187 ) # As measured running rs-sensor-control example
sensor = dev.first_motion_sensor()
if test.check( sensor ):
test.check( sensors[sensor.name] )
Expand Down

0 comments on commit fbcbada

Please sign in to comment.