File tree Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ target_sources(${LRS_TARGET}
34
34
"${CMAKE_CURRENT_LIST_DIR} /pose-frame.h"
35
35
"${CMAKE_CURRENT_LIST_DIR} /processing.h"
36
36
"${CMAKE_CURRENT_LIST_DIR} /processing-block-interface.h"
37
- "${CMAKE_CURRENT_LIST_DIR} /recommended-proccesing -blocks-interface.h"
37
+ "${CMAKE_CURRENT_LIST_DIR} /recommended-processing -blocks-interface.h"
38
38
"${CMAKE_CURRENT_LIST_DIR} /sensor-interface.h"
39
39
"${CMAKE_CURRENT_LIST_DIR} /serialization.h"
40
40
"${CMAKE_CURRENT_LIST_DIR} /stream-interface.h"
File renamed without changes.
Original file line number Diff line number Diff line change 5
5
6
6
#include " info-interface.h"
7
7
#include " options-container.h"
8
- #include " recommended-proccesing -blocks-interface.h"
8
+ #include " recommended-processing -blocks-interface.h"
9
9
10
10
#include " tagged-profile.h"
11
11
Original file line number Diff line number Diff line change 1
1
// License: Apache 2.0. See LICENSE file in root directory.
2
2
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3
-
4
3
#pragma once
5
4
6
5
#include " core/sensor-interface.h"
@@ -51,6 +50,7 @@ namespace librealsense
51
50
, public virtual sensor_interface
52
51
, public options_container
53
52
, public virtual info_container
53
+ , public recordable< recommended_proccesing_blocks_interface >
54
54
{
55
55
public:
56
56
explicit sensor_base ( std::string const & name, device * device );
@@ -86,6 +86,15 @@ namespace librealsense
86
86
return {};
87
87
}
88
88
89
+ // recordable< recommended_proccesing_blocks_interface > is needed to record our recommended processing blocks
90
+ public:
91
+ void enable_recording ( std::function< void ( const recommended_proccesing_blocks_interface & ) > ) override {}
92
+ void create_snapshot ( std::shared_ptr< recommended_proccesing_blocks_interface > & snapshot ) const override
93
+ {
94
+ snapshot
95
+ = std::make_shared< recommended_proccesing_blocks_snapshot >( get_recommended_processing_blocks () );
96
+ }
97
+
89
98
protected:
90
99
// Since _profiles is private, we need a way to get the final profiles
91
100
stream_profiles const & initialized_profiles () const { return *_profiles; }
Original file line number Diff line number Diff line change @@ -175,12 +175,24 @@ def stop_sensor( sensor ):
175
175
depth_sensor .stop ()
176
176
depth_sensor .close ()
177
177
178
+ color_filters = [f .get_info (rs .camera_info .name ) for f in color_sensor .get_recommended_filters ()]
179
+ depth_filters = [f .get_info (rs .camera_info .name ) for f in depth_sensor .get_recommended_filters ()]
180
+
181
+ test .check ( len (color_filters ) > 0 )
182
+ test .check ( len (depth_filters ) > 0 )
183
+
178
184
ctx = rs .context ()
179
185
playback = ctx .load_device ( file_name )
180
186
181
187
depth_sensor = playback .first_depth_sensor ()
182
188
color_sensor = playback .first_color_sensor ()
183
189
190
+ playback_color_filters = [f .get_info (rs .camera_info .name ) for f in color_sensor .get_recommended_filters ()]
191
+ playback_depth_filters = [f .get_info (rs .camera_info .name ) for f in depth_sensor .get_recommended_filters ()]
192
+
193
+ test .check_equal_lists ( playback_color_filters , color_filters )
194
+ test .check_equal_lists ( playback_depth_filters , depth_filters )
195
+
184
196
restart_profiles ()
185
197
186
198
depth_sensor .open ( dp )
You can’t perform that action at this time.
0 commit comments