Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
web_video_server::LibavStreamer Class Reference

#include <libav_streamer.h>

Inheritance diagram for web_video_server::LibavStreamer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 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)
 ~LibavStreamer ()

Protected Member Functions

virtual void initialize (const cv::Mat &)
virtual void initializeEncoder ()
virtual void sendImage (const cv::Mat &, const ros::Time &time)

Protected Attributes

AVCodec * codec_
AVCodecContext * codec_context_
AVFormatContext * format_context_
AVOutputFormat * output_format_
AVStream * video_stream_

Private Attributes

int bitrate_
std::string codec_name_
std::string content_type_
boost::mutex encode_mutex_
ros::Time first_image_timestamp_
std::string format_name_
AVFrame * frame_
int gop_
AVPicture * picture_
int qmax_
int qmin_
struct SwsContext * sws_context_
AVPicture * tmp_picture_

Detailed Description

Definition at line 23 of file libav_streamer.h.


Constructor & Destructor Documentation

web_video_server::LibavStreamer::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 
)

Definition at line 47 of file libav_streamer.cpp.

Definition at line 65 of file libav_streamer.cpp.


Member Function Documentation

void web_video_server::LibavStreamer::initialize ( const cv::Mat &  img) [protected, virtual]

Reimplemented from web_video_server::ImageTransportImageStreamer.

Definition at line 95 of file libav_streamer.cpp.

Reimplemented in web_video_server::Vp8Streamer.

Definition at line 229 of file libav_streamer.cpp.

void web_video_server::LibavStreamer::sendImage ( const cv::Mat &  img,
const ros::Time time 
) [protected, virtual]

Implements web_video_server::ImageTransportImageStreamer.

Definition at line 233 of file libav_streamer.cpp.


Member Data Documentation

Definition at line 53 of file libav_streamer.h.

Definition at line 38 of file libav_streamer.h.

Definition at line 39 of file libav_streamer.h.

Definition at line 51 of file libav_streamer.h.

Definition at line 52 of file libav_streamer.h.

Definition at line 48 of file libav_streamer.h.

Definition at line 47 of file libav_streamer.h.

Definition at line 37 of file libav_streamer.h.

Definition at line 50 of file libav_streamer.h.

Definition at line 43 of file libav_streamer.h.

Definition at line 56 of file libav_streamer.h.

Definition at line 36 of file libav_streamer.h.

Definition at line 44 of file libav_streamer.h.

Definition at line 55 of file libav_streamer.h.

Definition at line 54 of file libav_streamer.h.

struct SwsContext* web_video_server::LibavStreamer::sws_context_ [private]

Definition at line 46 of file libav_streamer.h.

Definition at line 45 of file libav_streamer.h.

Definition at line 40 of file libav_streamer.h.


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


web_video_server
Author(s): Mitchell Wills
autogenerated on Thu Aug 27 2015 15:42:12