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 16 of file ogg_saver.cpp.


Constructor & Destructor Documentation

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

Definition at line 19 of file ogg_saver.cpp.

OggSaver::~OggSaver ( ) [inline]

Definition at line 30 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 47 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 64 of file ogg_saver.cpp.

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

Definition at line 58 of file ogg_saver.cpp.


Member Data Documentation

ofstream OggSaver::fout_ [private]

Definition at line 43 of file ogg_saver.cpp.

Definition at line 41 of file ogg_saver.cpp.

ogg_stream_state OggSaver::stream_state_ [private]

Definition at line 42 of file ogg_saver.cpp.

Definition at line 44 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 Sat Dec 28 2013 17:06:15