Class FFMPEGDecoder
Defined in File ffmpeg_decoder.hpp
Class Documentation
-
class FFMPEGDecoder
Public Types
-
using Callback = std::function<void(const ImageConstPtr &img, bool isKeyFrame)>
-
using PTSMap = std::unordered_map<int64_t, rclcpp::Time>
Public Functions
-
FFMPEGDecoder()
-
~FFMPEGDecoder()
-
inline bool isInitialized() const
-
bool initialize(const FFMPEGPacketConstPtr &msg, Callback callback, const std::string &encoding = std::string())
-
void reset()
-
bool decodePacket(const FFMPEGPacketConstPtr &msg)
-
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()
-
using Callback = std::function<void(const ImageConstPtr &img, bool isKeyFrame)>