Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5ac1c6

Browse files
committedNov 27, 2024
remove SENSOR_MODE
1 parent 4b97ccc commit c5ac1c6

File tree

6 files changed

+5
-33
lines changed

6 files changed

+5
-33
lines changed
 

‎unit-tests/live/live-common.h

-28
Original file line numberDiff line numberDiff line change
@@ -207,34 +207,6 @@ inline stream_profile find_confidence_corresponding_to_depth(rs2::depth_sensor d
207207
return *confidence_profile;
208208
}
209209

210-
inline stream_profile
211-
find_profile( rs2::depth_sensor depth_sens, rs2_stream stream, rs2_sensor_mode mode )
212-
{
213-
std::vector< stream_profile > stream_profiles;
214-
REQUIRE_NOTHROW( stream_profiles = depth_sens.get_stream_profiles() );
215-
216-
std::map< rs2_sensor_mode, std::pair< uint32_t, uint32_t > > sensor_mode_to_resolution
217-
= { { { RS2_SENSOR_MODE_VGA }, { 640, 480 } },
218-
{ { RS2_SENSOR_MODE_XGA }, { 1024, 768 } },
219-
{ { RS2_SENSOR_MODE_QVGA }, { 320, 240 } } };
220-
221-
222-
auto profile
223-
= std::find_if( stream_profiles.begin(), stream_profiles.end(), [&]( stream_profile sp ) {
224-
auto vp = sp.as< video_stream_profile >();
225-
if( vp )
226-
{
227-
return sp.stream_type() == stream
228-
&& vp.width() == sensor_mode_to_resolution[mode].first
229-
&& vp.height() == sensor_mode_to_resolution[mode].second;
230-
}
231-
return false;
232-
} );
233-
234-
REQUIRE( profile != stream_profiles.end() );
235-
return *profile;
236-
}
237-
238210
inline void do_while_streaming( rs2::sensor depth_sens,
239211
std::vector< stream_profile > profiles,
240212
std::function< void() > action )

‎wrappers/android/librealsense/src/main/java/com/intel/realsense/librealsense/Option.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public enum Option {
7272
INVALIDATION_BYPASS(68),
7373
AMBIENT_LIGHT(69), // Deprecated - Use DIGITAL_GAIN instead
7474
DIGITAL_GAIN(69),
75-
SENSOR_MODE(70),
75+
SENSOR_MODE(70), // Deprecated
7676
EMITTER_ALWAYS_ON(71),
7777
THERMAL_COMPENSATION(72),
7878
TRIGGER_CAMERA_ACCURACY_HEALTH(73),

‎wrappers/csharp/Intel.RealSense/Types/Enums/Option.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public enum Option
224224
/// <summary>Change the depth digital gain see rs2_digital_gain for values</summary>
225225
DigitalGain = 69,
226226

227-
/// <summary>The resolution mode: see rs2_sensor_mode for values</summary>
227+
/// <summary>Deprecated - The resolution mode: see rs2_sensor_mode for values</summary>
228228
SensorMode = 70,
229229

230230
/// <summary>Enable Laser On constantly (GS SKU Only)</summary>

‎wrappers/matlab/option.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
invalidation_bypass (68)
7272
ambient_light_env_level (69) % Deprecated - Use DIGITAL_GAIN instead
7373
digital_gain (69)
74-
sensor_mode (70)
74+
sensor_mode (70) % Deprecated
7575
emitter_always_on (71)
7676
thermal_compensation (72)
7777
trigger_camera_accuracy_health (73)

‎wrappers/python/pybackend.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ PYBIND11_MODULE(NAME, m) {
176176
.value("activate_pixel_invalidation", RS2_OPTION_INVALIDATION_BYPASS)
177177
.value("ambient_light_environment_level", RS2_OPTION_AMBIENT_LIGHT)
178178
.value("digital_gain", RS2_OPTION_DIGITAL_GAIN)
179-
.value("sensor_resolution_mode", RS2_OPTION_SENSOR_MODE)
179+
.value("sensor_resolution_mode", RS2_OPTION_SENSOR_MODE) // Deprecated
180180
.value("emitter_always_on", RS2_OPTION_EMITTER_ALWAYS_ON)
181181
.value("thermal_compensation", RS2_OPTION_THERMAL_COMPENSATION)
182182
.value("host_performance", RS2_OPTION_HOST_PERFORMANCE)

‎wrappers/unrealengine4/Plugins/RealSense/Source/RealSense/Public/RealSenseTypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ enum class ERealSenseOptionType : uint8
124124
INVALIDATION_BYPASS , /**< Enable\disable pixel invalidation */
125125
AMBIENT_LIGHT , /**< Change the depth ambient light see rs2_ambient_light for values */
126126
DIGITAL_GAIN = AMBIENT_LIGHT , /**< Change the depth digital gain see rs2_digital_gain for values */
127-
SENSOR_MODE , /**< The resolution mode: see rs2_sensor_mode for values */
127+
SENSOR_MODE , /**< Deprecated!! - The resolution mode: see rs2_sensor_mode for values */
128128
EMITTER_ALWAYS_ON , /**< Enable Laser On constantly (GS SKU Only) */
129129
THERMAL_COMPENSATION , /**< Depth Thermal Compensation for selected D400 SKUs */
130130
TRIGGER_CAMERA_ACCURACY_HEALTH , /**< DEPRECATED! */

0 commit comments

Comments
 (0)