3 #include <Driver/OniDriverAPI.h> 14 #pragma warning(disable:4100) // unreferenced formal parameter 15 #pragma warning(disable:4505) // unreferenced local function has been removed 17 #define ONI_MAX_DEPTH 10000 18 #define RS2_EMULATE_PRIMESENSE_HARDWARE // HACK: NiTE only runs on PrimeSense SoC 26 #define PROF_MUTEX_IMPL oni::driver::Rs2Mutex 27 #define PROF_SCOPED_MUTEX_IMPL oni::driver::Rs2ScopedMutex 31 #define NAMED_PROFILER(name) 32 #define SCOPED_PROFILER 36 #define RS2_ASSERT(cond) 38 #define RS2_ASSERT assert 41 #define rsTraceError(format, ...) printf("[RS2] ERROR at FILE %s LINE %d FUNC %s\n\t" format "\n", __FILE__, __LINE__, __FUNCTION__, ## __VA_ARGS__) 42 #define rsTraceFunc(format, ...) printf("[RS2] %s " format "\n", __FUNCTION__, ## __VA_ARGS__) 43 #define rsLogDebug(format, ...) printf("[RS2] " format "\n", ## __VA_ARGS__) 45 namespace oni {
namespace driver {
77 #if defined(PROF_ENABLED) Exposes RealSense processing-block functionality for C compilers.
rs2_exception_type
Exception types are the different categories of errors that RealSense API might return.
void rs2_free_error(rs2_error *error)
OniSensorType convertStreamType(rs2_stream type)
bool isSupportedPixelFormat(rs2_format type)
Exposes librealsense functionality for C compilers.
bool isSupportedStreamType(rs2_stream type)
int getPixelFormatBytes(rs2_format type)
const char * rs2_get_error_message(const rs2_error *error)
rs2_format
A stream's format identifies how binary data is encoded within a frame.
const char * get_message() const
rs2_exception_type rs2_get_librealsense_exception_type(const rs2_error *error)
rs2_stream
Streams are different types of data provided by RealSense devices.
std::lock_guard< std::mutex > Rs2ScopedMutex
rs2_exception_type get_type() const
OniPixelFormat convertPixelFormat(rs2_format type)