include
web_video_server
jpeg_streamers.h
Go to the documentation of this file.
1
#ifndef JPEG_STREAMERS_H_
2
#define JPEG_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
MjpegStreamer
:
public
ImageTransportImageStreamer
14
{
15
public
:
16
MjpegStreamer
(
const
async_web_server_cpp::HttpRequest
&request,
async_web_server_cpp::HttpConnectionPtr
connection,
17
ros::NodeHandle
& nh);
18
~MjpegStreamer
();
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
MjpegStreamerType
:
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
JpegSnapshotStreamer
:
public
ImageTransportImageStreamer
37
{
38
public
:
39
JpegSnapshotStreamer
(
const
async_web_server_cpp::HttpRequest
&request,
40
async_web_server_cpp::HttpConnectionPtr
connection,
ros::NodeHandle
& nh);
41
~JpegSnapshotStreamer
();
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::JpegSnapshotStreamer::sendImage
virtual void sendImage(const cv::Mat &, const ros::Time &time)
Definition:
jpeg_streamers.cpp:63
boost::shared_ptr< HttpConnection >
web_video_server::JpegSnapshotStreamer::JpegSnapshotStreamer
JpegSnapshotStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition:
jpeg_streamers.cpp:49
web_video_server::ImageTransportImageStreamer
Definition:
image_streamer.h:49
web_video_server::MjpegStreamer::MjpegStreamer
MjpegStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, ros::NodeHandle &nh)
Definition:
jpeg_streamers.cpp:7
image_streamer.h
web_video_server::JpegSnapshotStreamer::~JpegSnapshotStreamer
~JpegSnapshotStreamer()
Definition:
jpeg_streamers.cpp:57
web_video_server::ImageStreamerType
Definition:
image_streamer.h:79
web_video_server::MjpegStreamer
Definition:
jpeg_streamers.h:13
web_video_server::MjpegStreamerType::create_viewer
std::string create_viewer(const async_web_server_cpp::HttpRequest &request)
Definition:
jpeg_streamers.cpp:40
web_video_server::MjpegStreamerType::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:
jpeg_streamers.cpp:33
web_video_server::JpegSnapshotStreamer::quality_
int quality_
Definition:
jpeg_streamers.h:46
web_video_server::MjpegStreamerType
Definition:
jpeg_streamers.h:27
async_web_server_cpp::HttpRequest
web_video_server::MjpegStreamer::sendImage
virtual void sendImage(const cv::Mat &, const ros::Time &time)
Definition:
jpeg_streamers.cpp:21
http_connection.hpp
web_video_server
Definition:
h264_streamer.h:9
image_transport.h
web_video_server::MjpegStreamer::~MjpegStreamer
~MjpegStreamer()
Definition:
jpeg_streamers.cpp:15
web_video_server::MjpegStreamer::stream_
MultipartStream stream_
Definition:
jpeg_streamers.h:23
web_video_server::MjpegStreamer::quality_
int quality_
Definition:
jpeg_streamers.h:24
ros::Time
web_video_server::JpegSnapshotStreamer
Definition:
jpeg_streamers.h:36
http_request.hpp
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