IO Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <IO.hpp>
Inheritance diagram for IO:
Public Types | |
enum | State { CLOSED, CLOSING, FORCE_CLOSING, OPENING, OPEN, PAUSED, MUTED, PREFETCHING, STREAMEOF, STREAMERR } |
Public Member Functions | |
virtual Frame * | getFrame ()=0 |
returns a frame if one complete frame is available, otherwise null is returned. | |
virtual int | writeFrame (Frame *frm, ESInfo *es=NULL)=0 |
returns the number of packets sent. | |
virtual bool | open ()=0 |
opens the IO connection. | |
virtual bool | close (bool immediate=false)=0 |
closes the IO class. | |
virtual bool | destroy ()=0 |
deletes the data source for this IO class. | |
virtual State | getState () const |
virtual State | setState (State s) |
returns the newly set state | |
virtual int | getBufferFillLevel () const =0 |
returns a value from 0..100 indicating buffer usage | |
virtual int | flushBuffer (long from_ts=0, long to_ts=-1) |
flushes the buffer from starting TimeStamp to end TS | |
virtual const char * | getURL () const =0 |
returns a pointer to the local file name or an URL | |
virtual bool | setToFrameNumber (u32 frameNumber) |
repositions the IO class to the given frame. | |
virtual long | setToClosestIFrame (u32 frameNumber, bool backwards=true) |
repositions the IO class to | |
virtual bool | setEndFrameNumber (u32 stopNumber) |
sets the last frame that should be sent. | |
virtual u32 | getEndFrameNumber () const |
virtual u32 | getCurrentFrameNumber () const |
virtual void | setResendFrameHeader (bool set) |
indicates if the next call to getFrame will send the frame header. | |
virtual void | run () |
virtual void | setESInfo (ESInfo *es)=0 |
virtual ESInfo * | getESInfo ()=0 |
virtual u32 | getFramesSeen () const |
returns the number of frames received or sent. | |
virtual void | setRtxInfo (const rtx_info *rtx) |
sets a shallow copy of | |
virtual State | play (double prefetchTime=0.0) |
virtual State | pause () |
virtual State | mute () |
Protected Attributes | |
State | state |
bool | resendFrameHeader |
indicates if the next call to getFrame will send the frame header. | |
u32 | currentFrameNumber |
u32 | endFrameNumber |
specifies the last frame number that should be sent | |
VMutex | mutexStateChanged |
u32 | framesSeen |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- IO.hpp,v 1.25 2006/03/17 17:14:52 tkuglits Exp
Definition at line 215 of file IO.hpp.
Member Function Documentation
|
closes the IO class.
Implemented in BufferedHttpMPGStreamReader, BufferedIO, DevNull, DSPaudioIO, DVDIO, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, MuxDemuxIO, RawStreamIO, Rtp, SDLaudioIO, and VideoRenderer.
Referenced by FilteredIO::close(), DataSink::close(), DataChannel::run(), and DataChannel::teardown(). |
|
deletes the data source for this IO class. Will only work with local files, remote files can not be deleted and will always return true. Implemented in AudioIO, BufferedHttpMPGStreamReader, BufferedIO, DevNull, DVDIO, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, MuxDemuxIO, RawStreamIO, Rtp, and VideoRenderer.
Referenced by FilteredIO::destroy(). |
|
flushes the buffer from starting TimeStamp to end TS
Reimplemented in FilteredIO, IncompleteIO, and Rtp. Definition at line 275 of file IO.hpp. Referenced by IncompleteIO::flushBuffer(), and FilteredIO::flushBuffer().
|
|
returns a frame if one complete frame is available, otherwise null is returned. This function is typically blocking. Don't use a NULL return value to conclude STREAMEOF, always check with getState()! Implemented in BufferedHttpMPGStreamReader, BufferedIO, BufferedMPGStreamReader, DevNull, DSPaudioIO, DVDIO, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, MuxDemuxIO, RawStreamIO, Rtp, SDLaudioIO, VideoRenderer, VITMuxDemuxIO, and YUVStreamIO.
Referenced by FilteredIO::getFrame(), and DataChannel::run(). |
|
returns the number of frames received or sent. counter will be resetted when open is called Reimplemented in FilteredIO. Definition at line 338 of file IO.hpp.
|
|
opens the IO connection. State is set to OPENING. Depending on the underlying QIODevice, a network connection or a file connection is established. When the connection is ready for use, State is OPEN Implemented in BufferedHttpMPGStreamReader, BufferedIO, DevNull, DSPaudioIO, DVDIO, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, MuxDemuxIO, QLabelRenderer, RawStreamIO, Rtp, SDLaudioIO, SDLRenderer, VideoRenderer, and X11Renderer.
Referenced by DataDump::adapt(), FilteredIO::open(), DataChannel::run(), and DataSink::send(). |
|
sets the last frame that should be sent. Allows to specify in combination with setToFrameNumber a range of frames that should be sent. Set
Reimplemented in FilteredIO, and Rtp. Definition at line 317 of file IO.hpp. References endFrameNumber. Referenced by ContainerDemux::createDataChannel(), and FilteredIO::setEndFrameNumber().
|
|
sets a shallow copy of
Reimplemented in FilteredIO, IncompleteIO, and Rtp. Definition at line 341 of file IO.hpp. Referenced by FilteredIO::setRtxInfo().
|
|
repositions the IO class to
Reimplemented in BufferedHttpMPGStreamReader, FilteredIO, IncompleteIO, and MPGStreamIO. Definition at line 304 of file IO.hpp. References setToFrameNumber(). Referenced by ContainerDemux::createDataChannel(), and FilteredIO::setToClosestIFrame().
|
|
repositions the IO class to the given frame. Will return false in the following cases:
Reimplemented in AudioIO, BufferedHttpMPGStreamReader, DevNull, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, RawStreamIO, and Rtp. Definition at line 293 of file IO.hpp. Referenced by setToClosestIFrame(), and FilteredIO::setToFrameNumber().
|
|
returns the number of packets sent. Returns 0 on error Implemented in BufferedIO, DevNull, DSPaudioIO, DVDIO, FilteredIO, IncompleteIO, MP4IO, MPGStreamIO, MuxDemuxIO, QLabelRenderer, RawStreamIO, Rtp, SDLaudioIO, SDLRenderer, VideoRenderer, VITMuxDemuxIO, and X11Renderer.
Referenced by DataDump::adapt(), DataSink::close(), DataSink::send(), and FilteredIO::writeFrame(). |
Member Data Documentation
|
indicates if the next call to getFrame will send the frame header. This is a fix for Quicktime which gets confused if we sent a header a second time, even though npt=0.0Definition at line 358 of file IO.hpp. Referenced by setResendFrameHeader(). |
The documentation for this class was generated from the following files: