Go to the documentation of this file. 1 #ifndef LIBAV_STREAMERS_H_
2 #define LIBAV_STREAMERS_H_
11 #include <libavcodec/avcodec.h>
12 #include <libavformat/avformat.h>
13 #include <libavutil/intreadwrite.h>
14 #include <libavformat/avio.h>
15 #include <libswscale/swscale.h>
16 #include <libavutil/opt.h>
17 #include <libavutil/mathematics.h>
18 #include <libavutil/imgutils.h>
28 ros::NodeHandle& nh,
const std::string &format_name,
const std::string &codec_name,
29 const std::string &content_type);
65 LibavStreamerType(
const std::string &format_name,
const std::string &codec_name,
const std::string &content_type);
virtual void sendImage(const cv::Mat &, const ros::Time &time)
const std::string codec_name_
AVOutputFormat * output_format_
AVCodecContext * codec_context_
virtual void initializeEncoder()
std::string content_type_
ros::Time first_image_timestamp_
LibavStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh, const std::string &format_name, const std::string &codec_name, const std::string &content_type)
LibavStreamerType(const std::string &format_name, const std::string &codec_name, const std::string &content_type)
const std::string content_type_
std::string create_viewer(const async_web_server_cpp::HttpRequest &request)
virtual void initialize(const cv::Mat &)
boost::mutex encode_mutex_
const std::string format_name_
struct SwsContext * sws_context_
boost::shared_ptr< ImageStreamer > create_streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
AVFormatContext * format_context_
web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Mar 2 2022 01:13:35