RawStreamIO Class Reference
writes raw frames (eg. <short description=""> More...
#include <RawStreamIO.hpp>
Inheritance diagram for RawStreamIO:
Public Member Functions | |
RawStreamIO (ESInfo *es, const char *file, bool writeOnly) | |
void | setFrameSize (u32 size) |
virtual Frame * | getFrame () |
returns a frame if one complete frame is available, otherwise null is returned. | |
virtual 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. | |
void | setESInfo (ESInfo *esi) |
ESInfo * | getESInfo () |
Protected Attributes | |
FILE * | io |
char * | url |
bool | writeOnly |
ESInfo * | es |
bool | atFileStart |
long | lastCTSSeen |
u64 | frameSize |
Detailed Description
writes raw frames (eg. <short description="">YUV, audio-pcm or any other raw content)
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- RawStreamIO.hpp,v 1.4 2006/01/26 11:42:00 mkropfbe Exp
Definition at line 61 of file RawStreamIO.hpp.
Member Function Documentation
|
closes the IO class.
Implements IO. Definition at line 146 of file RawStreamIO.cpp. Referenced by YUVinYUVoverlay::adapt(), and destroy().
|
|
returns a value from 0..100 indicating buffer usage. Fixme: returns a constant value of 50 Implements IO. Definition at line 96 of file RawStreamIO.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 valuse to conclude STREAMEOF, always check with getState()! Implements IO.
Reimplemented in YUVStreamIO. Definition at line 203 of file RawStreamIO.cpp. References ESInfo::getDuration(), ESInfo::getMediaTimeScale(), ESInfo::getVOPTimeIncrement(), Frame::setAU(), and Frame::setMediaTimeScale(). Referenced by YUVStreamIO::getFrame().
|
|
opens the IO connection. State is set to OPENING. Depending on the underlying IODevice, a network connection is stablished or a file connection. When the connection is ready for use, State is OPEN Implements IO. Definition at line 93 of file RawStreamIO.cpp. References ESInfo::disableFrameStatistic(), ESInfo::enableFrameStatistic(), ESInfo::getDuration(), ESInfo::getNumberOfMediaSamples(), and ESInfo::getVOPTimeIncrement(). Referenced by YUVinYUVoverlay::adapt().
|
|
repositions the IO class to the given frame. Will return false in the following cases:
Reimplemented from IO. Definition at line 256 of file RawStreamIO.cpp.
|
|
returns the number of packets sent. Returns 0 on error Implements IO. Definition at line 159 of file RawStreamIO.cpp. References Frame::getAU(), ESInfo::getFrameStatistic(), ESInfo::getStreamId(), ESInfo::getVOPTimeIncrement(), and BitField::setBit().
|
The documentation for this class was generated from the following files: