@@ -207,34 +207,6 @@ inline stream_profile find_confidence_corresponding_to_depth(rs2::depth_sensor d
207
207
return *confidence_profile;
208
208
}
209
209
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
-
238
210
inline void do_while_streaming ( rs2::sensor depth_sens,
239
211
std::vector< stream_profile > profiles,
240
212
std::function< void () > action )
0 commit comments