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]

Make sure we don't write a video packet first
Handle duplicate headers
Wait for a keyframe!!
Need to flush page for initial identification header packet? And after last header packet?
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.

ros::NodeHandle OggSaver::nh_ [private]

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.

ros::Subscriber OggSaver::sub_ [private]

Definition at line 44 of file ogg_saver.cpp.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends

Author(s): Patrick Mihelich, Ethan Dreyfuss
autogenerated on Fri Jan 11 09:41:26 2013