#include <theora_publisher.h>
Public Member Functions | |
virtual std::string | getTransportName () const |
TheoraPublisher () | |
virtual | ~TheoraPublisher () |
Protected Member Functions | |
virtual void | connectCallback (const ros::SingleSubscriberPublisher &pub) |
virtual void | publish (const sensor_msgs::Image &message, const message_transport::SimplePublisherPlugin< sensor_msgs::Image, theora_imagem_transport::packet >::PublishFn &publish_fn) const |
Private Member Functions | |
void | ensure_encoding_context (const CvSize &size, const PublishFn &publish_fn) const |
void | oggPacketToMsg (const ogg_packet &oggpacket, theora_imagem_transport::packet &msgOutput) const |
void | sendHeader (const ros::SingleSubscriberPublisher &pub) const |
Private Attributes | |
th_enc_ctx * | encoding_context_ |
sensor_msgs::CvBridge | img_bridge_ |
int | nearestHeight |
int | nearestWidth |
int | nearestXoff |
int | nearestYoff |
std::vector< ogg_packet > | stream_header_ |
Definition at line 12 of file theora_publisher.h.
theora_imagem_transport::TheoraPublisher::TheoraPublisher | ( | ) |
Definition at line 14 of file theora_publisher.cpp.
theora_imagem_transport::TheoraPublisher::~TheoraPublisher | ( | ) | [virtual] |
Definition at line 19 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::connectCallback | ( | const ros::SingleSubscriberPublisher & | pub | ) | [protected, virtual] |
Definition at line 26 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::ensure_encoding_context | ( | const CvSize & | size, | |
const PublishFn & | publish_fn | |||
) | const [private] |
Definition at line 136 of file theora_publisher.cpp.
virtual std::string theora_imagem_transport::TheoraPublisher::getTransportName | ( | ) | const [inline, virtual] |
Definition at line 16 of file theora_publisher.h.
void theora_imagem_transport::TheoraPublisher::oggPacketToMsg | ( | const ogg_packet & | oggpacket, | |
theora_imagem_transport::packet & | msgOutput | |||
) | const [private] |
Definition at line 215 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::publish | ( | const sensor_msgs::Image & | message, | |
const message_transport::SimplePublisherPlugin< sensor_msgs::Image, theora_imagem_transport::packet >::PublishFn & | publish_fn | |||
) | const [protected, virtual] |
Definition at line 40 of file theora_publisher.cpp.
void theora_imagem_transport::TheoraPublisher::sendHeader | ( | const ros::SingleSubscriberPublisher & | pub | ) | const [private] |
th_enc_ctx* theora_imagem_transport::TheoraPublisher::encoding_context_ [mutable, private] |
Definition at line 41 of file theora_publisher.h.
sensor_msgs::CvBridge theora_imagem_transport::TheoraPublisher::img_bridge_ [mutable, private] |
Definition at line 40 of file theora_publisher.h.
int theora_imagem_transport::TheoraPublisher::nearestHeight [mutable, private] |
Definition at line 46 of file theora_publisher.h.
int theora_imagem_transport::TheoraPublisher::nearestWidth [mutable, private] |
Definition at line 45 of file theora_publisher.h.
int theora_imagem_transport::TheoraPublisher::nearestXoff [mutable, private] |
Definition at line 47 of file theora_publisher.h.
int theora_imagem_transport::TheoraPublisher::nearestYoff [mutable, private] |
Definition at line 48 of file theora_publisher.h.
std::vector<ogg_packet> theora_imagem_transport::TheoraPublisher::stream_header_ [mutable, private] |
Definition at line 42 of file theora_publisher.h.