MPGStreamIO Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <MPGStreamIO.hpp>
Inheritance diagram for MPGStreamIO:
Public Member Functions | |
MPGStreamIO (ESInfo *es, const char *file, bool writeOnly, bool omitHeader=false) | |
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 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 | |
bool | setToFrameNumber (u32 frameNumber) |
repositions the IO class to the given frame. | |
long | setToClosestIFrame (u32 frameNumber, bool backwards) |
repositions to previous I-VOP, | |
void | setESInfo (ESInfo *esi) |
ESInfo * | getESInfo () |
Protected Attributes | |
FILE * | io |
char * | url |
bool | writeOnly |
ESInfo * | es |
bool | atFileStart |
FILE * | helpFile |
bool | writeHelpFile |
bool | omitHeader |
u32 | lastCTSSeen |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- MPGStreamIO.hpp,v 1.9 2006/01/26 11:42:00 mkropfbe Exp
Definition at line 64 of file MPGStreamIO.hpp.
Member Function Documentation
|
closes the IO class.
Implements IO.
Reimplemented in BufferedHttpMPGStreamReader. Definition at line 180 of file MPGStreamIO.cpp. Referenced by IncompleteIO::close(), destroy(), getFrame(), BufferedMPGStreamReader::getFrame(), setToClosestIFrame(), and setToFrameNumber().
|
|
returns a value from 0..100 indicating buffer usage. Fixme: returns a constant value of 50 Implements IO. Definition at line 93 of file MPGStreamIO.hpp.
|
|
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.
Reimplemented in BufferedHttpMPGStreamReader, and BufferedMPGStreamReader. Definition at line 262 of file MPGStreamIO.cpp. References close(), Frame::getAU(), ESInfo::getStreamId(), ESInfo::getVOPTimeIncrement(), ESInfo::isAudioStream(), ESInfo::isVisualStream(), Frame::setAU(), and Frame::setMediaTimeScale(). Referenced by IncompleteIO::getFrame().
|
|
opens the IO connection. State is set to OPENING. Depending on the underlying QIODevice, a network connection is stablished or a file connection. When the connection is ready for use, State is OPEN Implements IO.
Reimplemented in BufferedHttpMPGStreamReader. Definition at line 96 of file MPGStreamIO.cpp. References ESInfo::disableFrameStatistic(), ESInfo::enableFrameStatistic(), ESInfo::getDuration(), ESInfo::getInput(), ESInfo::getNumberOfMediaSamples(), and ESInfo::getVOPTimeIncrement(). Referenced by IncompleteIO::open(), and setToFrameNumber().
|
|
repositions to previous I-VOP,
Reimplemented from IO.
Reimplemented in BufferedHttpMPGStreamReader. Definition at line 811 of file MPGStreamIO.cpp. References close(), ESInfo::getNumberOfMediaSamples(), ESInfo::isAudioStream(), and setToFrameNumber(). Referenced by IncompleteIO::setToClosestIFrame().
|
|
repositions the IO class to the given frame. Will return false in the following cases:
Reimplemented from IO.
Reimplemented in BufferedHttpMPGStreamReader. Definition at line 673 of file MPGStreamIO.cpp. References close(), ESInfo::getHeaders(), and open(). Referenced by setToClosestIFrame(), and IncompleteIO::setToFrameNumber().
|
|
returns the number of packets sent. Returns 0 on error Implements IO. Definition at line 197 of file MPGStreamIO.cpp. References Frame::getAU(), ESInfo::getFrameStatistic(), ESInfo::getStreamId(), ESInfo::getVOPTimeIncrement(), and BitField::setBit().
|
The documentation for this class was generated from the following files: