16 #include <sensor_msgs/Image.h> 133 const std::string& format);
194 std::pair<cras::optional<CompressedTransportFormat>, cras::optional<CompressedDepthTransportFormat>>, std::string>
245 const char* rawEncoding,
246 const char* compressedEncoding,
267 const char* imageEncoding,
309 const char* rawEncoding,
325 const char* imageEncoding,
357 const uint8_t imageHeader[64],
358 bool& isCompressedDepth,
std::string makeCompressedDepthTransportFormat(const CompressedDepthTransportFormat &format)
Convert the CompressedDepthTransportFormat structure into a string to be filled in field sensor_msgs:...
cras::expected< std::pair< cras::optional< CompressedTransportFormat >, cras::optional< CompressedDepthTransportFormat > >, std::string > guessAnyCompressedImageTransportFormat(const sensor_msgs::CompressedImage &image)
Parse the string from field sensor_msgs::CompressedImage::format using either compressed or compresse...
bool operator==(const ::ros::Rate &r1, const ::ros::Rate &r2)
CompressedTransportCompressionFormat
Compression format of compressed codec (JPEG/PNG).
cras::expected< CompressedTransportFormat, std::string > parseCompressedTransportFormat(const std::string &format)
Parse the string from field sensor_msgs::CompressedImage::format using compressed transport into Comp...
void *(* allocator_t)(size_t)
RVL compression format (only usable in Noetic).
std::string makeCompressedTransportFormat(const CompressedTransportFormat &format)
Convert the CompressedTransportFormat structure into a string to be filled in field sensor_msgs::Comp...
cras::expected< CompressedDepthTransportFormat, std::string > parseCompressedDepthTransportFormat(const std::string &format)
Parse the string from field sensor_msgs::CompressedImage::format using compressedDepth transport into...
CompressedDepthTransportFormat extractCompressedDepthTransportFormat(const std::string &imageEncoding, const CompressedDepthTransportCompressionFormat &compressionFormat)
Create the CompressedDepthTransportFormat structure for the given raw image compressed with the given...
CompressedDepthTransportCompressionFormat
Compression format of compressedDepth codec (PNG/RVL). RVL is only usable in Noetic.
CompressedTransportFormat extractCompressedTransportFormat(const std::string &imageEncoding, const CompressedTransportCompressionFormat &compressionFormat)
Create the CompressedTransportFormat structure for the given raw image compressed with the given meth...