Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Public Attributes | List of all members
MuxFrame Class Reference

A muxed packet (in some container format) More...

#include <frame.h>

Inheritance diagram for MuxFrame:
Inheritance graph
[legend]
Collaboration diagram for MuxFrame:
Collaboration graph
[legend]

Public Member Functions

 MuxFrame ()
 Default ctor.
 
virtual ~MuxFrame ()
 Default virtual dtor.
 
 frame_essentials (FrameClass::mux, MuxFrame)
 
 frame_clone (FrameClass::mux, MuxFrame)
 
virtual void print (std::ostream &os) const
 Produces frame output.
 
virtual std::string dumpPayload ()
 Dumps internal payload data.
 
virtual void dumpPayloadToFile (std::ofstream &fout)
 Dumps internal payload data into a file.
 
virtual void reset ()
 Reset the internal data.
 
void reserve (std::size_t n_bytes)
 Reserve space for internal payload.
 
void resize (std::size_t n_bytes)
 Init space for internal payload.
 
- Public Member Functions inherited from Frame
 Frame ()
 Default ctor.
 
virtual ~Frame ()
 Default virtual dtor.
 
 frame_essentials (FrameClass::none, Frame)
 
 frame_clone (FrameClass::none, Frame)
 
virtual void updateAux ()
 Update internal auxiliary state variables.
 
virtual void update ()
 Update helper points (call always)
 
virtual bool isSeekable ()
 Can we seek to this frame? (e.g. is it a key-frame .. for H264 sps packets are used as seek markers)
 
void copyMetaFrom (Frame *f)
 Copy metadata (slot, subsession index, timestamp) to this frame.
 

Public Attributes

std::vector< uint8_t > payload
 Raw payload data (use .data() to get the pointer from std::vector)
 
AVMediaType media_type
 Type of the media (video/audio) of the underlying elementary stream.
 
AVCodecID codec_id
 AVCodeCID of the underlying elementary stream.
 
std::vector< uint8_t > meta_blob
 Byte blob that is casted to correct metadata struct.
 
MuxMetaType meta_type
 Mux type that mandates how meta_blob is casted.
 
- Public Attributes inherited from Frame
SlotNumber n_slot
 Slot number identifying the media source.
 
int subsession_index
 Media subsession index.
 
long int mstimestamp
 Presentation time stamp (PTS) in milliseconds.
 

Additional Inherited Members

- Protected Attributes inherited from Frame
FrameClass frameclass
 Declares frametype for correct typecast. Used by Frame::getFrameClass()
 

Detailed Description

A muxed packet (in some container format)

TODO: isSeekable / Meta / Init: peek into payload .. .. or these are set at the ctor? (discovered by the ffmpex muxer demangling)


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