4 #ifndef LIBREALSENSE_RS2_INTERNAL_HPP 5 #define LIBREALSENSE_RS2_INTERNAL_HPP 10 #include "../h/rs_internal.h" 22 const std::string& section =
"",
26 _context = std::shared_ptr<rs2_context>(
44 const std::string& section =
"",
45 const std::string& min_api_version =
"0.0.0")
48 _context = std::shared_ptr<rs2_context>(
212 std::shared_ptr<rs2_device> create_device_ptr()
215 std::shared_ptr<rs2_device> dev(
224 :
device(create_device_ptr())
235 std::shared_ptr<rs2_sensor>
sensor(
271 #endif // LIBREALSENSE_RS2_INTERNAL_HPP void rs2_software_sensor_set_metadata(rs2_sensor *sensor, rs2_frame_metadata_value value, rs2_metadata_type type, rs2_error **error)
Definition: rs_frame.hpp:22
recording_context(const std::string &filename, const std::string §ion="", rs2_recording_mode mode=RS2_RECORDING_MODE_BLANK_FRAMES)
Definition: rs_internal.hpp:21
Definition: rs_sensor.hpp:103
Definition: rs_frame.hpp:336
#define RS2_API_VERSION
Definition: rs.h:41
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition: rs_option.h:22
rs2_stream_profile * rs2_software_sensor_add_pose_stream(rs2_sensor *sensor, rs2_pose_stream pose_stream, rs2_error **error)
rs2_recording_mode
Definition: rs_internal.h:25
void rs2_delete_device(rs2_device *device)
void rs2_delete_context(rs2_context *context)
Frees the relevant context object.
void on_video_frame(rs2_software_video_frame frame)
Definition: rs_internal.hpp:126
All the parameters are required to define video stream.
Definition: rs_internal.h:34
void set_metadata(rs2_frame_metadata_value value, rs2_metadata_type type)
Definition: rs_internal.hpp:162
All the parameters are required to define pose frame.
Definition: rs_internal.h:93
software_device()
Definition: rs_internal.hpp:223
Definition: rs_context.hpp:11
void on_motion_frame(rs2_software_motion_frame frame)
Definition: rs_internal.hpp:138
software_sensor add_sensor(std::string name)
Definition: rs_internal.hpp:232
Definition: rs_context.hpp:96
void set_read_only_option(rs2_option option, float val)
Definition: rs_internal.hpp:188
Definition: rs_internal.hpp:35
rs2_context * rs2_create_recording_context(int api_version, const char *filename, const char *section, rs2_recording_mode mode, rs2_error **error)
stream_profile add_video_stream(rs2_video_stream video_stream)
Definition: rs_internal.hpp:81
Definition: rs_types.h:160
stream_profile add_motion_stream(rs2_motion_stream motion_stream)
Definition: rs_internal.hpp:96
rs2_stream_profile * rs2_software_sensor_add_motion_stream(rs2_sensor *sensor, rs2_motion_stream motion_stream, rs2_error **error)
rs2_time_t rs2_get_time(rs2_error **error)
stream_profile add_pose_stream(rs2_pose_stream pose_stream)
Definition: rs_internal.hpp:111
std::shared_ptr< rs2_sensor > _sensor
Definition: rs_sensor.hpp:327
Definition: rs_internal.hpp:14
std::shared_ptr< rs2_context > _context
Definition: rs_context.hpp:218
All the parameters are required to define pose stream.
Definition: rs_internal.h:59
Definition: rs_internal.hpp:73
void rs2_delete_sensor(rs2_sensor *sensor)
rs2_matchers
Specifies types of different matchers.
Definition: rs_types.h:189
void rs2_software_sensor_on_pose_frame(rs2_sensor *sensor, rs2_software_pose_frame frame, rs2_error **error)
std::shared_ptr< rs2_device > _dev
Definition: rs_device.hpp:146
rs2_device * rs2_create_software_device(rs2_error **error)
void rs2_software_sensor_add_read_only_option(rs2_sensor *sensor, rs2_option option, float val, rs2_error **error)
void create_matcher(rs2_matchers matcher)
Definition: rs_internal.hpp:262
All the parameters are required to define motion stream.
Definition: rs_internal.h:48
Definition: rs_internal.hpp:210
static void handle(rs2_error *e)
Definition: rs_types.hpp:130
rs2_sensor * rs2_software_device_add_sensor(rs2_device *dev, const char *sensor_name, rs2_error **error)
void rs2_software_sensor_update_read_only_option(rs2_sensor *sensor, rs2_option option, float val, rs2_error **error)
Definition: rs_internal.h:27
rs2_stream_profile * rs2_software_sensor_add_video_stream(rs2_sensor *sensor, rs2_video_stream video_stream, rs2_error **error)
void add_to(context &ctx)
Definition: rs_internal.hpp:251
void rs2_software_device_create_matcher(rs2_device *dev, rs2_matchers matcher, rs2_error **error)
int rs2_is_sensor_extendable_to(const rs2_sensor *sensor, rs2_extension extension, rs2_error **error)
long long rs2_metadata_type
Definition: rs_types.h:255
rs2_context * rs2_create_mock_context_versioned(int api_version, const char *filename, const char *section, const char *min_api_version, rs2_error **error)
void on_pose_frame(rs2_software_pose_frame frame)
Definition: rs_internal.hpp:150
void rs2_context_add_software_device(rs2_context *ctx, rs2_device *dev, rs2_error **error)
All the parameters are required to define motion frame.
Definition: rs_internal.h:82
void rs2_software_sensor_on_motion_frame(rs2_sensor *sensor, rs2_software_motion_frame frame, rs2_error **error)
void add_read_only_option(rs2_option option, float val)
Definition: rs_internal.hpp:175
void rs2_software_sensor_on_video_frame(rs2_sensor *sensor, rs2_software_video_frame frame, rs2_error **error)
All the parameters are required to define video frame.
Definition: rs_internal.h:69
struct rs2_error rs2_error
Definition: rs_types.h:217
Definition: rs_device.hpp:18
double get_time()
Definition: rs_internal.hpp:62
rs2_frame_metadata_value
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame...
Definition: rs_frame.h:29
mock_context(const std::string &filename, const std::string §ion="", const std::string &min_api_version="0.0.0")
Definition: rs_internal.hpp:43
recording_context()=delete