Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

YUVStream Class Reference

#include <YUVStream.hpp>

Inheritance diagram for YUVStream:

Stream List of all members.

Public Methods

 YUVStream (const QString &fname, int x, int y, bool preRead=true, uint fpp=30)
virtual ~YUVStream ()
long getFrameSize ()
long getYSize ()
long getUSize ()
long getVSize ()
uint getMinCompressedPatSize ()
void setMinCompressedPatSize (uint s)
uint getMaxCompressedPatSize ()
void setMaxCompressedPatSize (uint s)
uint getMinCompressedBaselayerSize ()
void setMinCompressedBaselayerSize (uint s)
uint getMaxCompressedBaselayerSize ()
void setMaxCompressedBaselayerSize (uint s)
long getBufOffsetY ()
long getBufOffsetU ()
long getBufOffsetV ()
double getMaxPSNR ()
GOPaddNextGOP (uint numFrames)
long getFileSize ()

Private Attributes

long ySize
long uvSize
long bufOffsetY
long bufOffsetU
long bufOffsetV
double maxPSNR
int delay
uint minCompPatSize
uint maxCompPatSize
uint minCompBLSize
uint maxCompBLSize

Constructor & Destructor Documentation

YUVStream::YUVStream const QString &    fname,
int    x,
int    y,
bool    preRead = true,
uint    fpp = 30
 

Parameters:
fname  File name of the YUVStream
x  X dimenstion of the video
y  Y dimenstion of the video
preRead  If true, the constructor tries to add all GOPs and frames. If false, just the object is created.
fpp  Number of frames per GOP (important for preRead)

Definition at line 14 of file YUVStream.cpp.

References addNextGOP(), bufOffsetU, bufOffsetV, bufOffsetY, Stream::file, Stream::fileSize, Stream::gopList, Stream::height, maxCompPatSize, maxPSNR, minCompPatSize, nl, Stream::noFrames, uvSize, Stream::width, and ySize.

YUVStream::~YUVStream   [virtual]
 

Definition at line 12 of file YUVStream.cpp.


Member Function Documentation

GOP * YUVStream::addNextGOP uint    numFrames [virtual]
 

Adds the next GOP to the stream

Implements Stream.

Definition at line 92 of file YUVStream.cpp.

References GOP::addFrame(), B_VOP, GOP::calcByteSize(), Stream::file, Stream::fileSize, GOP::getFrameCount(), getFrameSize(), Stream::gopList, I_VOP, maxPSNR, Stream::noFrames, Frame::setByteSize(), Frame::setNoInDisplay(), and YUVGOP::setPSNRmp().

Referenced by PatGen::init(), and YUVStream().

long YUVStream::getBufOffsetU  
 

Returns :
Offset of the U buffer in the file

Definition at line 82 of file YUVStream.cpp.

References bufOffsetU.

long YUVStream::getBufOffsetV  
 

Returns :
Offset of the V buffer in the file

Definition at line 84 of file YUVStream.cpp.

References bufOffsetV.

long YUVStream::getBufOffsetY  
 

Returns :
Offset of the Y buffer in the file

Definition at line 80 of file YUVStream.cpp.

References bufOffsetY.

Referenced by YUVFrame::computePSNRy().

long YUVStream::getFileSize   [virtual]
 

Returns :
File size of the YUVStream

Implements Stream.

Definition at line 88 of file YUVStream.cpp.

References Stream::fileSize.

long YUVStream::getFrameSize  
 

Returns :
Size of this frame

Definition at line 56 of file YUVStream.cpp.

References uvSize, and ySize.

Referenced by addNextGOP().

uint YUVStream::getMaxCompressedBaselayerSize  
 

Definition at line 76 of file YUVStream.cpp.

References maxCompBLSize.

Referenced by PatGen::init().

uint YUVStream::getMaxCompressedPatSize  
 

Definition at line 68 of file YUVStream.cpp.

References maxCompPatSize.

Referenced by PatGen::init().

double YUVStream::getMaxPSNR  
 

Definition at line 86 of file YUVStream.cpp.

References maxPSNR.

Referenced by YUVFrame::computePSNRy().

uint YUVStream::getMinCompressedBaselayerSize  
 

Definition at line 72 of file YUVStream.cpp.

References minCompBLSize.

Referenced by PatGen::init().

uint YUVStream::getMinCompressedPatSize  
 

Definition at line 64 of file YUVStream.cpp.

References minCompPatSize.

Referenced by PatGen::init().

long YUVStream::getUSize  
 

Returns :
U buffer size

Definition at line 60 of file YUVStream.cpp.

References uvSize.

long YUVStream::getVSize  
 

Returns :
V buffer size

Definition at line 62 of file YUVStream.cpp.

References uvSize.

long YUVStream::getYSize  
 

Returns :
Y buffer size

Definition at line 58 of file YUVStream.cpp.

References ySize.

void YUVStream::setMaxCompressedBaselayerSize uint    s
 

Definition at line 78 of file YUVStream.cpp.

References maxCompBLSize.

Referenced by PatGen::init().

void YUVStream::setMaxCompressedPatSize uint    s
 

Definition at line 70 of file YUVStream.cpp.

References maxCompPatSize.

Referenced by PatGen::init().

void YUVStream::setMinCompressedBaselayerSize uint    s
 

Definition at line 74 of file YUVStream.cpp.

References minCompBLSize.

Referenced by PatGen::init().

void YUVStream::setMinCompressedPatSize uint    s
 

Definition at line 66 of file YUVStream.cpp.

References minCompPatSize.

Referenced by PatGen::init().


Member Data Documentation

long YUVStream::bufOffsetU [private]
 

Definition at line 99 of file YUVStream.hpp.

Referenced by getBufOffsetU(), and YUVStream().

long YUVStream::bufOffsetV [private]
 

Definition at line 100 of file YUVStream.hpp.

Referenced by getBufOffsetV(), and YUVStream().

long YUVStream::bufOffsetY [private]
 

Definition at line 98 of file YUVStream.hpp.

Referenced by getBufOffsetY(), and YUVStream().

int YUVStream::delay [private]
 

Definition at line 104 of file YUVStream.hpp.

uint YUVStream::maxCompBLSize [private]
 

Definition at line 109 of file YUVStream.hpp.

Referenced by getMaxCompressedBaselayerSize(), and setMaxCompressedBaselayerSize().

uint YUVStream::maxCompPatSize [private]
 

Definition at line 106 of file YUVStream.hpp.

Referenced by getMaxCompressedPatSize(), setMaxCompressedPatSize(), and YUVStream().

double YUVStream::maxPSNR [private]
 

Definition at line 102 of file YUVStream.hpp.

Referenced by addNextGOP(), getMaxPSNR(), and YUVStream().

uint YUVStream::minCompBLSize [private]
 

Definition at line 108 of file YUVStream.hpp.

Referenced by getMinCompressedBaselayerSize(), and setMinCompressedBaselayerSize().

uint YUVStream::minCompPatSize [private]
 

Definition at line 105 of file YUVStream.hpp.

Referenced by getMinCompressedPatSize(), setMinCompressedPatSize(), and YUVStream().

long YUVStream::uvSize [private]
 

Definition at line 96 of file YUVStream.hpp.

Referenced by getFrameSize(), getUSize(), getVSize(), and YUVStream().

long YUVStream::ySize [private]
 

Definition at line 95 of file YUVStream.hpp.

Referenced by getFrameSize(), getYSize(), and YUVStream().


The documentation for this class was generated from the following files:
Generated on Wed Mar 19 11:57:45 2003 for qctva4lv by doxygen1.2.17