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>(
158 std::shared_ptr<rs2_device> create_device_ptr()
161 std::shared_ptr<rs2_device> dev(
170 :
device(create_device_ptr())
181 std::shared_ptr<rs2_sensor>
sensor(
202 #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:21
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:232
Definition: rs_frame.hpp:286
#define RS2_API_VERSION
Definition: rs.h:37
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
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:96
All the parameters are requaired to defind video stream.
Definition: rs_internal.h:34
void set_metadata(rs2_frame_metadata_value value, rs2_metadata_type type)
Definition: rs_internal.hpp:108
software_device()
Definition: rs_internal.hpp:169
Definition: rs_context.hpp:11
software_sensor add_sensor(std::string name)
Definition: rs_internal.hpp:178
Definition: rs_context.hpp:104
void set_read_only_option(rs2_option option, float val)
Definition: rs_internal.hpp:134
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:120
rs2_time_t rs2_get_time(rs2_error **error)
std::shared_ptr< rs2_sensor > _sensor
Definition: rs_sensor.hpp:421
Definition: rs_internal.hpp:14
std::shared_ptr< rs2_context > _context
Definition: rs_context.hpp:217
Definition: rs_internal.hpp:73
void rs2_delete_sensor(rs2_sensor *sensor)
rs2_matchers
Specifies types of different matchers.
Definition: rs_types.h:127
std::shared_ptr< rs2_device > _dev
Definition: rs_device.hpp:143
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:193
Definition: rs_internal.hpp:156
static void handle(rs2_error *e)
Definition: rs_types.hpp:121
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 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:181
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 add_read_only_option(rs2_option option, float val)
Definition: rs_internal.hpp:121
void rs2_software_sensor_on_video_frame(rs2_sensor *sensor, rs2_software_video_frame frame, rs2_error **error)
All the parameters are requaired to define video frame.
Definition: rs_internal.h:48
struct rs2_error rs2_error
Definition: rs_types.h:149
Definition: rs_device.hpp:18
double get_time()
Definition: rs_internal.hpp:62
rs2_frame_metadata_value
Per-Frame-Metadata are set of read-only properties that might be exposed for each individual frame...
Definition: rs_frame.h:28
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