Public Member Functions | Private Member Functions | Private Attributes
OggSaver Class Reference

List of all members.

Public Member Functions

 OggSaver (const char *filename)
 ~OggSaver ()

Private Member Functions

void msgToOggPacket (const theora_image_transport::Packet &msg, ogg_packet &oggpacket)
void processMsg (const theora_image_transport::PacketConstPtr &message)
void writePage (ogg_page &page)

Private Attributes

ofstream fout_
ros::NodeHandle nh_
ogg_stream_state stream_state_
ros::Subscriber sub_

Detailed Description

Definition at line 50 of file ogg_saver.cpp.


Constructor & Destructor Documentation

OggSaver::OggSaver ( const char *  filename) [inline]

Definition at line 53 of file ogg_saver.cpp.

OggSaver::~OggSaver ( ) [inline]

Definition at line 64 of file ogg_saver.cpp.


Member Function Documentation

void OggSaver::msgToOggPacket ( const theora_image_transport::Packet &  msg,
ogg_packet &  oggpacket 
) [inline, private]

Definition at line 81 of file ogg_saver.cpp.

void OggSaver::processMsg ( const theora_image_transport::PacketConstPtr &  message) [inline, private]
Todo:
Make sure we don't write a video packet first
Todo:
Handle duplicate headers
Todo:
Wait for a keyframe!!
Todo:
Need to flush page for initial identification header packet? And after last header packet?
Todo:
Handle chaining streams? Need to retroactively set e_o_s on previous video packet.

Definition at line 98 of file ogg_saver.cpp.

void OggSaver::writePage ( ogg_page &  page) [inline, private]

Definition at line 92 of file ogg_saver.cpp.


Member Data Documentation

ofstream OggSaver::fout_ [private]

Definition at line 77 of file ogg_saver.cpp.

Definition at line 75 of file ogg_saver.cpp.

ogg_stream_state OggSaver::stream_state_ [private]

Definition at line 76 of file ogg_saver.cpp.

Definition at line 78 of file ogg_saver.cpp.


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


theora_image_transport
Author(s): Patrick Mihelich, Ethan Dreyfuss
autogenerated on Mon Oct 6 2014 00:47:14