FilteredIO Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <FilteredIO.hpp>
Inheritance diagram for FilteredIO:
Public Member Functions | |
FilteredIO (IO *io, BitField *filter) | |
Note that the get-/writeFrame() functions of this class will only return the frames from the underlying io class where the corresponding entry in BitField is 1! | |
Frame * | getFrame () |
returns a frame if one complete frame is available, otherwise null is returned. | |
int | writeFrame (Frame *frm, ESInfo *out_es=NULL) |
returns the number of packets sent. | |
bool | open () |
opens the IO connection. | |
bool | close (bool immediate=false) |
closes the IO class. | |
bool | destroy () |
deletes the data source for this IO class. | |
State | getState () const |
State | setState (State s) |
returns the newly set state | |
int | getBufferFillLevel () const |
returns a value from 0..100 indicating buffer usage | |
int | flushBuffer (long from_ts=0, long to_ts=-1) |
flushes the buffer from starting TimeStamp to end TS | |
const char * | getURL () const |
returns a pointer to the local file name or an URL | |
bool | setToFrameNumber (u32 frameNumber) |
repositions the IO class to the given frame. | |
virtual u32 | getCurrentFrameNumber () const |
Returns the current frame number of the associated IO object. | |
virtual bool | setEndFrameNumber (u32 stopNumber) |
Sets the end frame number of the associated IO object. | |
virtual u32 | getEndFrameNumber () const |
Returns the end frame number of the associated IO object. | |
void | setResendFrameHeader (bool set) |
indicates if the next call to getFrame will send the frame header. | |
void | run () |
void | setESInfo (ESInfo *es) |
ESInfo * | getESInfo () |
long | setToClosestIFrame (u32 frameNumber, bool backwards) |
repositions the IO class to | |
bool | setBitField (BitField *b) |
deletes the old BitField and sets a new one, returns false if the old and new BitField differ in size | |
virtual u32 | getFramesSeen () const |
returns the number of frames received or sent. | |
void | setRtxInfo (const rtx_info *rtx) |
sets a shallow copy of | |
State | play (double prefetchTime=0.0) |
State | pause () |
State | mute () |
Protected Attributes | |
IO * | io |
BitField * | filter |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- FilteredIO.hpp,v 1.14 2006/01/26 11:42:00 mkropfbe Exp
Definition at line 62 of file FilteredIO.hpp.
Member Function Documentation
|
closes the IO class.
Implements IO. Definition at line 136 of file FilteredIO.cpp. References IO::close().
|
|
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. Implements IO. Definition at line 150 of file FilteredIO.cpp. References IO::destroy().
|
|
flushes the buffer from starting TimeStamp to end TS
Reimplemented from IO. Definition at line 177 of file FilteredIO.cpp. References IO::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()! Implements IO. Definition at line 72 of file FilteredIO.cpp. References Frame::getAU(), BitField::getBit(), IO::getESInfo(), IO::getFrame(), IO::getState(), and ESInfo::getVOPTimeIncrement().
|
|
returns the number of frames received or sent. counter will be resetted when open is called Reimplemented from IO. Definition at line 169 of file FilteredIO.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 Implements IO. Definition at line 126 of file FilteredIO.cpp. References IO::open().
|
|
Sets the end frame number of the associated IO object.
Reimplemented from IO. Definition at line 134 of file FilteredIO.hpp. References IO::setEndFrameNumber().
|
|
sets a shallow copy of
Reimplemented from IO. Definition at line 211 of file FilteredIO.cpp. References IO::setRtxInfo().
|
|
repositions the IO class to
Reimplemented from IO. Definition at line 141 of file FilteredIO.cpp. References IO::setToClosestIFrame().
|
|
repositions the IO class to the given frame. Will return false in the following cases:
Reimplemented from IO. Definition at line 188 of file FilteredIO.cpp. References IO::setToFrameNumber().
|
|
returns the number of packets sent. Returns 0 on error Implements IO. Definition at line 108 of file FilteredIO.cpp. References Frame::getAU(), BitField::getBit(), IO::getESInfo(), ESInfo::getVOPTimeIncrement(), and IO::writeFrame().
|
The documentation for this class was generated from the following files: