4 #ifndef __RS_CONVERTER_CONVERTER_PNG_H 5 #define __RS_CONVERTER_CONVERTER_PNG_H 9 #define STB_IMAGE_WRITE_IMPLEMENTATION 10 #include "stb_image_write.h" 12 #include "../converter.hpp" 27 , _streamType(streamType)
33 return "PNG converter";
52 videoframe = _colorizer.
process(videoframe);
58 <<
"_" << std::setprecision(14) << std::fixed << videoframe.
get_timestamp()
61 std::stringstream metadata_file;
62 metadata_file << _filePath
64 <<
"_metadata_" << std::setprecision(14) << std::fixed << videoframe.
get_timestamp()
71 [filenameS, metadataS, videoframe] {
stream_profile get_profile() const
int get_bytes_per_pixel() const
const void * get_data() const
std::string stream_name() const
GLsizei const GLchar *const * string
rs2::frame process(rs2::frame frame) const override
double get_timestamp() const
rs2_stream
Streams are different types of data provided by RealSense devices.
STBIWDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes)
int get_stride_in_bytes() const
rs2_stream stream_type() const