|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
4 #ifndef LIBREALSENSE_RS2_HPP
5 #define LIBREALSENSE_RS2_HPP
8 #include "hpp/rs_types.hpp"
9 #include "hpp/rs_context.hpp"
10 #include "hpp/rs_device.hpp"
11 #include "hpp/rs_frame.hpp"
12 #include "hpp/rs_processing.hpp"
13 #include "hpp/rs_record_playback.hpp"
14 #include "hpp/rs_sensor.hpp"
15 #include "hpp/rs_pipeline.hpp"
82 const char*
raw()
const
138 template<
typename S >
152 rs2_log(severity, message, &e);
175 #endif // LIBREALSENSE_RS2_HPP
Exposes librealsense functionality for C compilers.
const char * rs2_log_severity_to_string(rs2_log_severity info)
const char * full() const
const char * rs2_camera_info_to_string(rs2_camera_info info)
const char * rs2_option_to_string(rs2_option option)
struct rs2_log_message rs2_log_message
rs2_distortion
Distortion model: defines how pixel coordinates should be mapped to sensor coordinates.
const char * rs2_notification_category_to_string(rs2_notification_category category)
const char * filename() const
rs2_notification_category
Category of the librealsense notification.
void rs2_enable_rolling_log_file(unsigned max_size, rs2_error **error)
Enable rolling log file when used with rs2_log_to_file: Upon reaching (max_size/2) bytes,...
const char * rs2_l500_visual_preset_to_string(rs2_l500_visual_preset preset)
rs2_calibration_status
Used in device_calibration with rs2_calibration_change_callback.
const char * rs2_distortion_to_string(rs2_distortion distortion)
const char * rs2_calibration_type_to_string(rs2_calibration_type)
void rs2_reset_logger(rs2_error **error)
rs2_camera_info
Read-only strings that can be queried from the device.
void rs2_log_to_callback_cpp(rs2_log_severity min_severity, rs2_log_callback *callback, rs2_error **error)
const char * rs2_get_full_log_message(rs2_log_message const *msg, rs2_error **error)
const char * rs2_get_log_message_filename(rs2_log_message const *msg, rs2_error **error)
rs2_exception_type
Exception types are the different categories of errors that RealSense API might return.
const char * rs2_frame_metadata_to_string(rs2_frame_metadata_value metadata)
rs2_log_severity
Severity of the librealsense logger.
std::ostream & operator<<(std::ostream &o, rs2_stream stream)
const char * rs2_exception_type_to_string(rs2_exception_type type)
const char * rs2_timestamp_domain_to_string(rs2_timestamp_domain info)
void rs2_log(rs2_log_severity severity, const char *message, rs2_error **error)
Add custom message into librealsense log.
const char * rs2_calibration_status_to_string(rs2_calibration_status)
void log_to_console(rs2_log_severity min_severity)
rs2_calibration_type
Used in device_calibration; enumerates the different calibration types available for that extension.
const char * rs2_sr300_visual_preset_to_string(rs2_sr300_visual_preset preset)
unsigned rs2_get_log_message_line_number(rs2_log_message const *msg, rs2_error **error)
constexpr absl::OTABSL_OPTION_NAMESPACE_NAME::remove_reference_t< T > && move(T &&t) noexcept
void enable_rolling_log_file(unsigned max_size)
const char * rs2_format_to_string(rs2_format format)
rs2_frame_metadata_value
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame...
void log(rs2_log_severity severity, const char *message)
rs2_format
A stream's format identifies how binary data is encoded within a frame.
size_t line_number() const
const char * rs2_sensor_mode_to_string(rs2_sensor_mode preset)
rs2_option
Defines general configuration controls.
rs2_l500_visual_preset
For L500 devices: provides optimized settings (presets) for specific types of usage.
rs2_sr300_visual_preset
For SR300 devices: provides optimized settings (presets) for specific types of usage.
void rs2_log_to_console(rs2_log_severity min_severity, rs2_error **error)
static void handle(rs2_error *e)
const char * rs2_get_raw_log_message(rs2_log_message const *msg, rs2_error **error)
void log_to_file(rs2_log_severity min_severity, const char *file_path=nullptr)
rs2_sensor_mode
For setting the camera_mode option.
void log_to_callback(rs2_log_severity min_severity, S callback)
void on_log(rs2_log_severity severity, rs2_log_message const &msg) noexcept override
const char * rs2_stream_to_string(rs2_stream stream)
const char * rs2_playback_status_to_string(rs2_playback_status status)
void rs2_log_to_file(rs2_log_severity min_severity, const char *file_path, rs2_error **error)
rs2_stream
Streams are different types of data provided by RealSense devices.
static std::string format(const char *fmt,...)
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
struct rs2_error rs2_error