Namespaces | Functions
parsing_utils.h File Reference

Parameter parsing helpers. More...

#include <list>
#include <memory>
#include <string>
#include <unordered_map>
#include <libavformat/avformat.h>
#include <cras_cpp_common/expected.hpp>
#include <movie_publisher/types.h>
#include <xmlrpcpp/XmlRpcValue.h>
Include dependency graph for parsing_utils.h:

Go to the source code of this file.

Namespaces

 movie_publisher
 

Functions

cras::expected< std::string, std::string > movie_publisher::avPixFmtToRosEncoding (const AVPixelFormat &libavPixelFormat)
 Map Libav pixel formats to ROS image encodings. More...
 
template<typename T >
movie_publisher::parseTimeParam (const XmlRpc::XmlRpcValue &param)
 Parse time or duration in several formats. More...
 
bool movie_publisher::parseTimestampOffset (const std::unordered_map< std::string, double > &extraVars, const XmlRpc::XmlRpcValue &param, double &value, bool skipNonConvertible, std::list< std::string > *errors)
 Parse the given timestamp offset. More...
 
TimestampSource movie_publisher::parseTimestampSource (const std::string &param)
 Parse TimestampSource from text. More...
 
cras::expected< AVPixelFormat, std::string > movie_publisher::rosEncodingToAvPixFmt (const std::string &rosEncoding)
 Map ROS image encodings to Libav pixel formats. More...
 
std::string movie_publisher::timestampSourceToStr (const TimestampSource &source)
 Convert the given TimestampSource to text. More...
 

Detailed Description

Parameter parsing helpers.

Author
Martin Pecka

Definition in file parsing_utils.h.



movie_publisher
Author(s): Martin Pecka
autogenerated on Wed May 28 2025 02:07:22