4 #ifndef __RS_CONVERTER_CONVERTER_H 5 #define __RS_CONVERTER_CONVERTER_H 7 #include <unordered_map> 8 #include <unordered_set> 48 std::unordered_map<int, std::unordered_set<frame_number_t>>
_framesMap;
53 if (_framesMap.find(streamType) == _framesMap.end()) {
54 _framesMap.emplace(streamType, std::unordered_set<frame_number_t>());
57 auto &
set = _framesMap[streamType];
58 bool result = (
set.find(frameNumber) !=
set.end());
61 set.emplace(frameNumber);
69 _worker = std::thread(f);
74 _subWorkers.emplace_back(f);
79 for_each(_subWorkers.begin(), _subWorkers.end(),
94 result <<
name() <<
'\n';
96 for (
auto&
i : _framesMap) {
98 <<
i.second.size() <<
' ' 100 <<
" frame(s) processed" 104 return (result.str());
const char * rs2_frame_metadata_to_string(rs2_frame_metadata_value metadata)
rs2_metadata_type get_frame_metadata(rs2_frame_metadata_value frame_metadata) const
stream_profile get_profile() const
bool supports_frame_metadata(rs2_frame_metadata_value frame_metadata) const
GLsizei const GLchar *const * string
rs2_stream
Streams are different types of data provided by RealSense devices.
const char * rs2_stream_to_string(rs2_stream stream)
rs2_stream stream_type() const
rs2_frame_metadata_value
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame...