Namespaces | Macros | Functions | Variables
types.cpp File Reference
#include "types.h"
#include <algorithm>
#include <iomanip>
#include <numeric>
#include <fstream>
#include <cmath>
#include "core/streaming.h"
#include "../include/librealsense2/hpp/rs_processing.hpp"
Include dependency graph for types.cpp:

Go to the source code of this file.

Namespaces

 librealsense
 

Macros

#define CASE(X)   STRCASE(EXCEPTION_TYPE, X)
 
#define CASE(X)   STRCASE(STREAM, X)
 
#define CASE(X)   STRCASE(SR300_VISUAL_PRESET, X)
 
#define CASE(X)   STRCASE(SENSOR_MODE, X)
 
#define CASE(X)   STRCASE(CALIBRATION, X)
 
#define CASE(X)   STRCASE(CALIBRATION, X)
 
#define CASE(X)   STRCASE(AMBIENT_LIGHT, X)
 
#define CASE(X)   STRCASE(DIGITAL_GAIN, X)
 
#define CASE(X)   STRCASE(CAH_TRIGGER, X)
 
#define CASE(X)   STRCASE(HOST_PERF, X)
 
#define CASE(X)   STRCASE(EXTENSION, X)
 
#define CASE(X)   STRCASE(PLAYBACK_STATUS, X)
 
#define CASE(X)   STRCASE(LOG_SEVERITY, X)
 
#define CASE(X)   STRCASE(OPTION, X)
 
#define CASE(X)   case RS2_FORMAT_##X: return #X;
 
#define CASE(X)   STRCASE(DISTORTION, X)
 
#define CASE(X)   STRCASE(CAMERA_INFO, X)
 
#define CASE(X)   STRCASE(FRAME_METADATA, X)
 
#define CASE(X)   STRCASE(TIMESTAMP_DOMAIN, X)
 
#define CASE(X)   STRCASE(CALIB_TARGET, X)
 
#define CASE(X)   STRCASE(NOTIFICATION_CATEGORY, X)
 
#define CASE(X)   STRCASE(MATCHER, X)
 
#define CASE(X)   STRCASE(L500_VISUAL_PRESET, X)
 
#define STRCASE(T, X)
 
#define UPDC32(octet, crc)   (crc_32_tab[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8))
 

Functions

uint32_t librealsense::calc_crc32 (const uint8_t *buf, size_t bufsize)
 Calculate CRC code for arbitrary characters buffer. More...
 
float3x3 librealsense::calc_rotation_from_rodrigues_angles (const std::vector< double > rot)
 
void librealsense::copy (void *dst, void const *src, size_t size)
 
bool librealsense::file_exists (const char *filename)
 
rs2_extrinsics librealsense::from_raw_extrinsics (rs2_extrinsics extr)
 
const char * librealsense::get_string (rs2_exception_type value)
 
const char * librealsense::get_string (rs2_stream value)
 
const char * librealsense::get_string (rs2_sr300_visual_preset value)
 
const char * librealsense::get_string (rs2_sensor_mode value)
 
const char * librealsense::get_string (rs2_calibration_type type)
 
const char * librealsense::get_string (rs2_calibration_status value)
 
const char * librealsense::get_string (rs2_ambient_light value)
 
const char * librealsense::get_string (rs2_digital_gain value)
 
const char * librealsense::get_string (rs2_cah_trigger value)
 
const char * librealsense::get_string (rs2_host_perf_mode value)
 
const char * librealsense::get_string (rs2_extension value)
 
const char * librealsense::get_string (rs2_playback_status value)
 
const char * librealsense::get_string (rs2_log_severity value)
 
const char * librealsense::get_string (rs2_option value)
 
const char * librealsense::get_string (rs2_format value)
 
const char * librealsense::get_string (rs2_distortion value)
 
const char * librealsense::get_string (rs2_camera_info value)
 
const char * librealsense::get_string (rs2_frame_metadata_value value)
 
const char * librealsense::get_string (rs2_timestamp_domain value)
 
const char * librealsense::get_string (rs2_calib_target_type value)
 
const char * librealsense::get_string (rs2_notification_category value)
 
const char * librealsense::get_string (rs2_matchers value)
 
const char * librealsense::get_string (rs2_l500_visual_preset value)
 
std::string librealsense::make_less_screamy (const char *str)
 
rs2_extrinsics librealsense::to_raw_extrinsics (rs2_extrinsics extr)
 

Variables

static const uint32_t librealsense::crc_32_tab []
 
const double SQRT_DBL_EPSILON = sqrt(std::numeric_limits<double>::epsilon())
 

Macro Definition Documentation

#define CASE (   X)    STRCASE(EXCEPTION_TYPE, X)
#define CASE (   X)    STRCASE(STREAM, X)
#define CASE (   X)    STRCASE(SR300_VISUAL_PRESET, X)
#define CASE (   X)    STRCASE(SENSOR_MODE, X)
#define CASE (   X)    STRCASE(CALIBRATION, X)
#define CASE (   X)    STRCASE(CALIBRATION, X)
#define CASE (   X)    STRCASE(AMBIENT_LIGHT, X)
#define CASE (   X)    STRCASE(DIGITAL_GAIN, X)
#define CASE (   X)    STRCASE(CAH_TRIGGER, X)
#define CASE (   X)    STRCASE(HOST_PERF, X)
#define CASE (   X)    STRCASE(EXTENSION, X)
#define CASE (   X)    STRCASE(PLAYBACK_STATUS, X)
#define CASE (   X)    STRCASE(LOG_SEVERITY, X)
#define CASE (   X)    STRCASE(OPTION, X)
#define CASE (   X)    case RS2_FORMAT_##X: return #X;
#define CASE (   X)    STRCASE(DISTORTION, X)
#define CASE (   X)    STRCASE(CAMERA_INFO, X)
#define CASE (   X)    STRCASE(FRAME_METADATA, X)
#define CASE (   X)    STRCASE(TIMESTAMP_DOMAIN, X)
#define CASE (   X)    STRCASE(CALIB_TARGET, X)
#define CASE (   X)    STRCASE(NOTIFICATION_CATEGORY, X)
#define CASE (   X)    STRCASE(MATCHER, X)
#define CASE (   X)    STRCASE(L500_VISUAL_PRESET, X)
#define STRCASE (   T,
 
)
Value:
case RS2_##T##_##X: {\
static const std::string s##T##_##X##_str = make_less_screamy(#X);\
return s##T##_##X##_str.c_str(); }
GLdouble s
std::string make_less_screamy(const char *str)
Definition: types.cpp:52
GLsizei const GLchar *const * string
list X
Definition: rmse.py:131
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN typedef arg< -1 > _

Definition at line 15 of file types.cpp.

#define UPDC32 (   octet,
  crc 
)    (crc_32_tab[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8))

Definition at line 754 of file types.cpp.

Variable Documentation

const double SQRT_DBL_EPSILON = sqrt(std::numeric_limits<double>::epsilon())

Definition at line 19 of file types.cpp.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:30