Class Decoder

Class Documentation

class Decoder

Public Types

using Callback = std::function<void(const ImageConstPtr &img, bool isKeyFrame)>
using PTSMap = std::unordered_map<int64_t, rclcpp::Time>

Public Functions

Decoder()
~Decoder()
inline bool isInitialized() const
bool initialize(const std::string &encoding, Callback callback, const std::string &dec)
void reset()
bool decodePacket(const std::string &encoding, const uint8_t *data, size_t size, uint64_t pts, const std::string &frame_id, const rclcpp::Time &stamp)
inline void setMeasurePerformance(bool p)
void printTimers(const std::string &prefix) const
void resetTimers()
inline void setLogger(rclcpp::Logger logger)

Public Static Functions

static const std::unordered_map<std::string, std::string> &getDefaultEncoderToDecoderMap()