#include <ffmpeg_encoder.h>
Public Types | |
typedef boost::shared_ptr < FFMPEGEncoder > | ptr |
Public Member Functions | |
FFMPEGEncoder (const std::string &refID, const std::string &topic, const ServerConfiguration &config) | |
const std::string & | getRefID () |
void | getVideoPacket (std::vector< uint8_t > &buf) |
int | initEncoding (std::vector< uint8_t > &buf) |
void | start () |
void | stop () |
virtual | ~FFMPEGEncoder () |
Private Member Functions | |
void | convertFloatingPointImageToMono8 (float *input, const std::size_t width, const std::size_t height, std::vector< uint8_t > &output) |
Private Attributes | |
const ServerConfiguration & | config_ |
bool | doEncoding_ |
FFMPEG_Wrapper * | ffmpeg_ |
unsigned | frameID_ |
bool | init_ |
boost::posix_time::ptime | last_tick |
const std::string | refID_ |
ImageSubscriber | subscriber_ |
const std::string | topic_ |
Definition at line 56 of file ffmpeg_encoder.h.
typedef boost::shared_ptr<FFMPEGEncoder> ros_http_video_streamer::FFMPEGEncoder::ptr |
Definition at line 60 of file ffmpeg_encoder.h.
ros_http_video_streamer::FFMPEGEncoder::FFMPEGEncoder | ( | const std::string & | refID, |
const std::string & | topic, | ||
const ServerConfiguration & | config | ||
) |
Definition at line 53 of file ffmpeg_encoder.cpp.
ros_http_video_streamer::FFMPEGEncoder::~FFMPEGEncoder | ( | ) | [virtual] |
Definition at line 66 of file ffmpeg_encoder.cpp.
void ros_http_video_streamer::FFMPEGEncoder::convertFloatingPointImageToMono8 | ( | float * | input, |
const std::size_t | width, | ||
const std::size_t | height, | ||
std::vector< uint8_t > & | output | ||
) | [private] |
Definition at line 97 of file ffmpeg_encoder.cpp.
const std::string & ros_http_video_streamer::FFMPEGEncoder::getRefID | ( | ) |
Definition at line 92 of file ffmpeg_encoder.cpp.
void ros_http_video_streamer::FFMPEGEncoder::getVideoPacket | ( | std::vector< uint8_t > & | buf | ) |
Definition at line 195 of file ffmpeg_encoder.cpp.
int ros_http_video_streamer::FFMPEGEncoder::initEncoding | ( | std::vector< uint8_t > & | buf | ) |
Definition at line 154 of file ffmpeg_encoder.cpp.
Definition at line 71 of file ffmpeg_encoder.cpp.
Definition at line 75 of file ffmpeg_encoder.cpp.
const ServerConfiguration& ros_http_video_streamer::FFMPEGEncoder::config_ [private] |
Definition at line 102 of file ffmpeg_encoder.h.
bool ros_http_video_streamer::FFMPEGEncoder::doEncoding_ [private] |
Definition at line 93 of file ffmpeg_encoder.h.
FFMPEG_Wrapper* ros_http_video_streamer::FFMPEGEncoder::ffmpeg_ [private] |
Definition at line 115 of file ffmpeg_encoder.h.
unsigned ros_http_video_streamer::FFMPEGEncoder::frameID_ [private] |
Definition at line 108 of file ffmpeg_encoder.h.
bool ros_http_video_streamer::FFMPEGEncoder::init_ [private] |
Definition at line 110 of file ffmpeg_encoder.h.
boost::posix_time::ptime ros_http_video_streamer::FFMPEGEncoder::last_tick [private] |
Definition at line 112 of file ffmpeg_encoder.h.
const std::string ros_http_video_streamer::FFMPEGEncoder::refID_ [private] |
Definition at line 96 of file ffmpeg_encoder.h.
Definition at line 105 of file ffmpeg_encoder.h.
const std::string ros_http_video_streamer::FFMPEGEncoder::topic_ [private] |
Definition at line 99 of file ffmpeg_encoder.h.