4 #ifndef __RS_CONVERTER_CONVERTER_BIN_H 5 #define __RS_CONVERTER_CONVERTER_BIN_H 11 #include "../converter.hpp" 49 uint32_t exponent = shift + ((1 << 7) - 1);
51 ieee754 = (sign << 31) | (exponent << 23) | mantissa;
54 buffer[0] = ieee754 & 0xff;
55 buffer[1] = (ieee754 >> 8) & 0xff;
56 buffer[2] = (ieee754 >> 16) & 0xff;
57 buffer[3] = (ieee754 >> 24) & 0xff;
65 , _streamType(streamType)
69 std::string
name()
const override 71 return "BIN converter";
93 <<
"_" << std::setprecision(14) << std::fixed << depthframe.
get_timestamp()
96 std::stringstream metadata_file;
97 metadata_file << _filePath
99 <<
"_metadata_" << std::setprecision(14) << std::fixed << depthframe.
get_timestamp()
102 std::string filenameS = filename.str();
103 std::string metadataS = metadata_file.str();
106 [filenameS, metadataS, depthframe] {
std::string stream_name() const
double get_timestamp() const
float get_distance(int x, int y) const
rs2_stream
Streams are different types of data provided by RealSense devices.
unsigned long long get_frame_number() const
rs2_stream stream_type() const
stream_profile get_profile() const