Public Types | Public Member Functions | Private Member Functions | Private Attributes
ros_http_video_streamer::FFMPEGEncoder Class Reference

#include <ffmpeg_encoder.h>

List of all members.

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 ServerConfigurationconfig_
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_

Detailed Description

Definition at line 56 of file ffmpeg_encoder.h.


Member Typedef Documentation

Definition at line 60 of file ffmpeg_encoder.h.


Constructor & Destructor Documentation

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.

Definition at line 66 of file ffmpeg_encoder.cpp.


Member Function Documentation

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.

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.


Member Data Documentation

Definition at line 102 of file ffmpeg_encoder.h.

Definition at line 93 of file ffmpeg_encoder.h.

Definition at line 115 of file ffmpeg_encoder.h.

Definition at line 108 of file ffmpeg_encoder.h.

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.

Definition at line 96 of file ffmpeg_encoder.h.

Definition at line 105 of file ffmpeg_encoder.h.

Definition at line 99 of file ffmpeg_encoder.h.


The documentation for this class was generated from the following files:


ros_web_video
Author(s): Julius Kammer
autogenerated on Thu Jun 6 2019 21:07:01