MuxDemuxIO Class Reference
muxes/demuxes from/to containers to elementary-stream BufferIOs <short description=""> More...
#include <MuxDemuxIO.hpp>
Inheritance diagram for MuxDemuxIO:

Public Member Functions | |
| MuxDemuxIO (ByteStream *stream) | |
| virtual bool | addBufferedIO (int streamID, BufferedIO *bufIO) |
| used by writeFrame to add the correct streamID for each frame | |
| virtual bool | removeBufferedIO (int streamID, BufferedIO *bufIO) |
| used by BufferedIO::close to remove the correct streamID when finishing | |
| virtual int | getNumberOfConnectedBufferedIO () |
| virtual Frame * | getFrame () |
| returns a frame and forwards it to the correct BufferIO This function is typically blocking. | |
| virtual int | writeFrame (Frame *frm, ESInfo *out_es=NULL) |
| muxes a frame to the container | |
| virtual void | processFrame () |
| give the MuxDemuxIO the chance to do mux/demux (called by fferedIOs) | |
| bool | open () |
| opens the IO connection. | |
| bool | close (bool immediate=false) |
| closes the IO class. | |
| bool | destroy () |
| deletes the elementary stream and its extra hint-file | |
| int | getBufferFillLevel () const |
| returns a value from 0..100 indicating buffer usage. | |
| IO * | clone () const |
| const char * | getURL () const |
| returns a local file name or an URL | |
| void | setESInfo (ESInfo *esi) |
| ESInfo * | getESInfo () |
Protected Member Functions | |
| virtual void | processWriteFrame () |
| give the MuxDemuxIO the chance to query the BufferIOs for new muxing data | |
| virtual void | processReadFrame () |
| let the MuxDemuxIO read frames and demux/pass them to the correct BufferIOs | |
Protected Attributes | |
| bool | readOnly |
| map< int, BufferedIO * > | ioList |
| VMutex * | mutex |
| bool | firstFrame |
| ByteStream * | stream |
Detailed Description
muxes/demuxes from/to containers to elementary-stream BufferIOs <short description="">
- Author:
- Michael Kropfberger
- Version:
- Id
- MuxDemuxIO.hpp,v 1.9 2006/02/24 13:47:42 mkropfbe Exp
Definition at line 67 of file MuxDemuxIO.hpp.
Member Function Documentation
|
|
closes the IO class.
Implements IO. Definition at line 102 of file MuxDemuxIO.cpp. References ByteStream::close(). Referenced by destroy().
|
|
|
returns a value from 0..100 indicating buffer usage. Fixme: returns a constant value of 50 Implements IO. Definition at line 106 of file MuxDemuxIO.hpp.
|
|
|
returns a frame and forwards it to the correct BufferIO This function is typically blocking. Don't use a NULL return valuse to conclude STREAMEOF, always check with getState()! Implements IO.
Reimplemented in VITMuxDemuxIO. Definition at line 154 of file MuxDemuxIO.cpp. Referenced by processReadFrame().
|
|
|
opens the IO connection. State is set to OPENING. When the connection is ready for use, State is OPEN Implements IO. Definition at line 79 of file MuxDemuxIO.cpp. References ByteStream::open(). Referenced by VITMuxDemuxIO::getFrame(), BufferedIO::open(), VITMuxDemuxIO::writeFrame(), and writeFrame().
|
|
||||||||||||
|
muxes a frame to the container Returns -1 on error Implements IO.
Reimplemented in VITMuxDemuxIO. Definition at line 117 of file MuxDemuxIO.cpp. References Frame::getAU(), ESInfo::getStreamId(), and open(). Referenced by processWriteFrame().
|
The documentation for this class was generated from the following files: