IncompleteIO Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <IncompleteIO.hpp>
Inheritance diagram for IncompleteIO:
Public Member Functions | |
IncompleteIO (const char *localFile, const char *url, int remotePrt, const char *address, int localPrt, ESInfo *es, PacketizationLayer *packetization, bool writeOnly, GlobalTimer *globalTimer, Statistics *stats) | |
creates an RTP object | |
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. | |
long | setToClosestIFrame (u32 frameNumber, bool backwards) |
repositions the IO class to | |
void | setResendFrameHeader (bool set) |
indicates if the next call to getFrame will send the frame header. | |
void | run () |
void | setRtxInfo (const rtx_info *rtx) |
sets a shallow copy of | |
State | play (double prefetchTime=0.0) |
State | pause () |
State | mute () |
void | setESInfo (ESInfo *es) |
const ESInfo *const | getESInfo () const |
Protected Member Functions | |
void | flushLocalCache () |
Frame * | findAndUnlinkFrame (u32 cts) |
returns a pointer and removes the frame from the cache | |
void | setFrame (Frame *frm) |
Protected Attributes | |
MPGStreamIO * | localInput |
SimpleRtp * | remoteInput |
u32 | vopTimeIncrement |
a backup from the voptimeincrement in the es. | |
PointerRingBuffer< Frame * > | frameCache |
int | cacheUsage |
cacheUsage: how many frames are currently stored in the cache | |
u32 | lastCTS |
ESInfo * | es |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- IncompleteIO.hpp,v 1.12 2006/01/20 15:37:18 mkropfbe Exp
Definition at line 73 of file IncompleteIO.hpp.
Constructor & Destructor Documentation
|
creates an RTP object
References cacheUsage, and vopTimeIncrement.
|
Member Function Documentation
|
closes the IO class.
Implements IO. Definition at line 240 of file IncompleteIO.cpp. References MPGStreamIO::close(). Referenced by getFrame().
|
|
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 253 of file IncompleteIO.cpp. References MPGStreamIO::destroy().
|
|
flushes the buffer from starting TimeStamp to end TS
Reimplemented from IO. Definition at line 273 of file IncompleteIO.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 101 of file IncompleteIO.cpp. References cacheUsage, close(), findAndUnlinkFrame(), Frame::getAU(), ESInfo::getDuration(), MPGStreamIO::getFrame(), and vopTimeIncrement.
|
|
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 225 of file IncompleteIO.cpp. References MPGStreamIO::open().
|
|
sets a shallow copy of
Reimplemented from IO. Definition at line 324 of file IncompleteIO.cpp.
|
|
repositions the IO class to
Reimplemented from IO. Definition at line 96 of file IncompleteIO.cpp. References MPGStreamIO::setToClosestIFrame().
|
|
repositions the IO class to the given frame. Will return false in the following cases:
Reimplemented from IO. Definition at line 293 of file IncompleteIO.cpp. References MPGStreamIO::setToFrameNumber().
|
|
returns the number of packets sent. Returns 0 on error Implements IO. Definition at line 216 of file IncompleteIO.cpp.
|
Member Data Documentation
|
a backup from the voptimeincrement in the es. needed because rtp overwrites the value with a wrong detected increment Definition at line 162 of file IncompleteIO.hpp. Referenced by getFrame(), and IncompleteIO(). |
The documentation for this class was generated from the following files: