Class LibavStreamer

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class LibavStreamer : public web_video_server::ImageTransportImageStreamer

Subclassed by web_video_server::H264Streamer, web_video_server::Vp8Streamer, web_video_server::Vp9Streamer

Public Functions

LibavStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::SharedPtr node, const std::string &format_name, const std::string &codec_name, const std::string &content_type)
~LibavStreamer()

Protected Functions

virtual void initializeEncoder()
virtual void sendImage(const cv::Mat&, const std::chrono::steady_clock::time_point &time)
virtual void initialize(const cv::Mat&)

Protected Attributes

AVFormatContext *format_context_
const AVCodec *codec_
AVCodecContext *codec_context_
AVStream *video_stream_
AVDictionary *opt_