include
web_video_server
png_streamers.h
Go to the documentation of this file.
1
#ifndef PNG_STREAMERS_H_
2
#define PNG_STREAMERS_H_
3
4
#include <
image_transport/image_transport.h
>
5
#include "
web_video_server/image_streamer.h
"
6
#include "
async_web_server_cpp/http_request.hpp
"
7
#include "
async_web_server_cpp/http_connection.hpp
"
8
#include "
web_video_server/multipart_stream.h
"
9
10
namespace
web_video_server
11
{
12
13
class
PngStreamer
:
public
ImageTransportImageStreamer
14
{
15
public
:
16
PngStreamer
(
const
async_web_server_cpp::HttpRequest
&request,
async_web_server_cpp::HttpConnectionPtr
connection,
17
ros::NodeHandle
& nh);
18
~PngStreamer
();
19
protected
:
20
virtual
void
sendImage
(
const
cv::Mat &,
const
ros::Time
&time);
21
22
private
:
23
MultipartStream
stream_
;
24
int
quality_
;
25
};
26
27
class
PngStreamerType
:
public
ImageStreamerType
28
{
29
public
:
30
boost::shared_ptr<ImageStreamer>
create_streamer
(
const
async_web_server_cpp::HttpRequest
&request,
31
async_web_server_cpp::HttpConnectionPtr
connection,
32
ros::NodeHandle
& nh);
33
std::string
create_viewer
(
const
async_web_server_cpp::HttpRequest
&request);
34
};
35
36
class
PngSnapshotStreamer
:
public
ImageTransportImageStreamer
37
{
38
public
:
39
PngSnapshotStreamer
(
const
async_web_server_cpp::HttpRequest
&request,
40
async_web_server_cpp::HttpConnectionPtr
connection,
ros::NodeHandle
& nh);
41
~PngSnapshotStreamer
();
42
protected
:
43
virtual
void
sendImage
(
const
cv::Mat &,
const
ros::Time
&time);
44
45
private
:
46
int
quality_
;
47
};
48
49
}
50
51
#endif
web_video_server::PngStreamerType
Definition:
png_streamers.h:27
web_video_server::PngStreamer::quality_
int quality_
Definition:
png_streamers.h:24
web_video_server::PngStreamer::stream_
MultipartStream stream_
Definition:
png_streamers.h:23
web_video_server::PngStreamerType::create_viewer
std::string create_viewer(const async_web_server_cpp::HttpRequest &request)
Definition:
png_streamers.cpp:40
boost::shared_ptr< HttpConnection >
web_video_server::PngStreamer::sendImage
virtual void sendImage(const cv::Mat &, const ros::Time &time)
Definition:
png_streamers.cpp:21
web_video_server::ImageTransportImageStreamer
Definition:
image_streamer.h:49
web_video_server::PngSnapshotStreamer
Definition:
png_streamers.h:36
image_streamer.h
web_video_server::ImageStreamerType
Definition:
image_streamer.h:79
web_video_server::PngStreamer
Definition:
png_streamers.h:13
async_web_server_cpp::HttpRequest
http_connection.hpp
web_video_server
Definition:
h264_streamer.h:9
web_video_server::PngSnapshotStreamer::~PngSnapshotStreamer
~PngSnapshotStreamer()
Definition:
png_streamers.cpp:57
image_transport.h
web_video_server::PngStreamer::PngStreamer
PngStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition:
png_streamers.cpp:7
ros::Time
web_video_server::PngSnapshotStreamer::quality_
int quality_
Definition:
png_streamers.h:46
web_video_server::PngStreamer::~PngStreamer
~PngStreamer()
Definition:
png_streamers.cpp:15
web_video_server::PngSnapshotStreamer::sendImage
virtual void sendImage(const cv::Mat &, const ros::Time &time)
Definition:
png_streamers.cpp:63
http_request.hpp
web_video_server::PngSnapshotStreamer::PngSnapshotStreamer
PngSnapshotStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition:
png_streamers.cpp:49
web_video_server::PngStreamerType::create_streamer
boost::shared_ptr< ImageStreamer > create_streamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition:
png_streamers.cpp:33
multipart_stream.h
web_video_server::MultipartStream
Definition:
multipart_stream.h:17
ros::NodeHandle
web_video_server
Author(s): Mitchell Wills
autogenerated on Wed Mar 2 2022 01:13:35