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

YUVGOP Class Reference

Implements the abstract class GOP. More...

#include <YUVGOP.hpp>

Inheritance diagram for YUVGOP:

GOP List of all members.

Public Methods

 YUVGOP (Stream *s, unsigned int pat_i)
 YUVGOP (Stream *s, unsigned int mod_i, unsigned int pat_i)
 ~YUVGOP ()
YUVGOP * getOrgGOP ()
void setOrgGOP (YUVGOP *org)
bool hasOriginal ()
QString getFramesInGOP ()
QPtrList< YUVGOP > * expand (YUVGOP *yg)
long getByteSize ()
double computePSNR (YUVGOP *p)
double getPSNR ()
void setCompressedByteSize (uint size)
uint getCompressedByteSize ()
void setCompressedBaselayerSize (uint size)
uint getCompressedBaselayerSize ()
void setPSNRmp (double value)

Private Attributes

double psnr
uint compressedByteSize
uint compressedBaselayerSize
YUVGOP * orgGOP
FrameVector fv
YUVGOPVector yuvGOPVector
bool modsAdded
bool hasOrg

Detailed Description

Implements the abstract class GOP.

Version:
0.1 alpha @author: K. Leopold

Definition at line 17 of file YUVGOP.hpp.


Constructor & Destructor Documentation

YUVGOP::YUVGOP Stream   s,
unsigned int    pat_i
 

Constructs a new master YUVGOP.

Parameters:
s  The stream, the new pattern belongs to.
pat_i  The unique number of the pattern in the stream.

Definition at line 6 of file YUVGOP.cpp.

References hasOrg, modsAdded, and psnr.

YUVGOP::YUVGOP Stream   s,
unsigned int    mod_i,
unsigned int    pat_i
 

Constructs a new modification YUVGOP.

Parameters:
s  The stream, the new pattern belongs to.
mod_i  The unique modification number of the modification in the pattern.
pat_i  The unique number of the pattern in the stream.

Definition at line 12 of file YUVGOP.cpp.

References hasOrg, modsAdded, and psnr.

YUVGOP::~YUVGOP  
 

Kills a YUVGOP.

Definition at line 19 of file YUVGOP.cpp.


Member Function Documentation

double YUVGOP::computePSNR YUVGOP *    p
 

Computes the PSNR value of this YUVGOP and another. NOTE: ALL FRAME BUFFERS OF THE GOP HAS TO BE FILLED!

Parameters:
p  The other YUVGOP
Returns :
PSNR value

Definition at line 94 of file YUVGOP.cpp.

References YUVFrame::computePSNR(), GOP::getFrame(), GOP::getFrameCount(), and psnr.

Referenced by PatGen::init().

QPtrList< YUVGOP > * YUVGOP::expand YUVGOP *    yg
 

Definition at line 121 of file YUVGOP.cpp.

long YUVGOP::getByteSize   [inline]
 

Returns the byte size of this pattern.

Returns :
Byte size

Definition at line 68 of file YUVGOP.hpp.

References GOP::byteSize.

uint YUVGOP::getCompressedBaselayerSize  
 

Returns the compressed size of the base layer of this YUVGOP.

Definition at line 47 of file YUVGOP.cpp.

References compressedBaselayerSize.

Referenced by PatGen::init().

uint YUVGOP::getCompressedByteSize  
 

Returns the compressed byte size of this YUVGOP.

Definition at line 37 of file YUVGOP.cpp.

References compressedByteSize.

Referenced by YUVGOPVector::compareItems(), and PatGen::init().

QString YUVGOP::getFramesInGOP  
 

Returns a QString which contains a textual represenatation of this YUVGOP.

Definition at line 52 of file YUVGOP.cpp.

References B_VOP, GOP::frameList, FrameType, Frame::getType(), I_VOP, and P_VOP.

Referenced by main().

YUVGOP * YUVGOP::getOrgGOP  
 

Returns the original YUVGOP.

Definition at line 22 of file YUVGOP.cpp.

References orgGOP.

double YUVGOP::getPSNR   [inline]
 

Returns :
PSRN value

Definition at line 81 of file YUVGOP.hpp.

References psnr.

Referenced by YUVGOPVector::compareItems(), and main().

bool YUVGOP::hasOriginal  
 

Returns true, if this YUVGOP also has an original GOP, otherwise false.

Definition at line 27 of file YUVGOP.cpp.

References hasOrg.

void YUVGOP::setCompressedBaselayerSize uint    size
 

Sets the compressed size of the base layer of this YUVGOP.

Definition at line 42 of file YUVGOP.cpp.

References compressedBaselayerSize.

Referenced by PatGen::init().

void YUVGOP::setCompressedByteSize uint    size
 

Sets the compressed byte size of this YUVGOP.

Definition at line 32 of file YUVGOP.cpp.

References compressedByteSize.

Referenced by PatGen::init().

void YUVGOP::setOrgGOP YUVGOP *    org
 

Sets the YUVGOP org as original GOP.

Definition at line 82 of file YUVGOP.cpp.

References hasOrg, and orgGOP.

Referenced by PatGen::init().

void YUVGOP::setPSNRmp double    value
 

Sets the PSNR of the master pattern.

Definition at line 88 of file YUVGOP.cpp.

References GOP::isMaster(), and psnr.

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


Member Data Documentation

uint YUVGOP::compressedBaselayerSize [private]
 

Definition at line 113 of file YUVGOP.hpp.

Referenced by getCompressedBaselayerSize(), and setCompressedBaselayerSize().

uint YUVGOP::compressedByteSize [private]
 

Definition at line 112 of file YUVGOP.hpp.

Referenced by getCompressedByteSize(), and setCompressedByteSize().

FrameVector YUVGOP::fv [private]
 

Definition at line 115 of file YUVGOP.hpp.

bool YUVGOP::hasOrg [private]
 

Definition at line 118 of file YUVGOP.hpp.

Referenced by hasOriginal(), setOrgGOP(), and YUVGOP().

bool YUVGOP::modsAdded [private]
 

Definition at line 117 of file YUVGOP.hpp.

Referenced by YUVGOP().

YUVGOP* YUVGOP::orgGOP [private]
 

Definition at line 114 of file YUVGOP.hpp.

Referenced by getOrgGOP(), and setOrgGOP().

double YUVGOP::psnr [private]
 

Definition at line 111 of file YUVGOP.hpp.

Referenced by computePSNR(), getPSNR(), setPSNRmp(), and YUVGOP().

YUVGOPVector YUVGOP::yuvGOPVector [private]
 

Definition at line 116 of file YUVGOP.hpp.


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