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

YUVFrame Class Reference

#include <YUVFrame.hpp>

Inheritance diagram for YUVFrame:

Frame List of all members.

Public Methods

 YUVFrame (long noS, unsigned int noP, long offset, GOP *pat, FrameType t=NN_VOP)
 ~YUVFrame ()
void setCompressedByteSize (uint siz)
uint getCompressedByteSize ()
MPGFramegetMPGFrame ()
void setMPGFrame (MPGFrame *mpg)
double computePSNRy (YUVFrame *f)
double computePSNR (YUVFrame *f)
double getPSNR ()

Private Attributes

uint compBSize
MPGFramempgFrame
double psnr

Constructor & Destructor Documentation

YUVFrame::YUVFrame long    noS,
unsigned int    noP,
long    offset,
GOP   pat,
FrameType    t = NN_VOP
 

Parameters:
noS  Frame number in the stream
noP  Frame number in the GOP
offset  Offset in the file - starting point of the frame in the file

Definition at line 8 of file YUVFrame.cpp.

References FrameType, and psnr.

YUVFrame::~YUVFrame  
 

Definition at line 16 of file YUVFrame.cpp.


Member Function Documentation

double YUVFrame::computePSNR YUVFrame *    f
 

Computes the PSNR value of this frame and another. NOTE: The frame buffer has to filled when this method is invoked, otherwise ERR_PSNR is returned.

Returns :
PSNR value

Definition at line 86 of file YUVFrame.cpp.

References computePSNRy(), ERR_PSNR, Frame::inMem(), and psnr.

Referenced by YUVGOP::computePSNR().

double YUVFrame::computePSNRy YUVFrame *    f
 

Computes the PSNR value of the Y-Buffer of this frame and another frame which is the overall PSNR value. NOTE: The frame buffer has to filled when this method is invoked, otherwise ERR_PSNR is returned.

Returns :
PSNR value

Definition at line 40 of file YUVFrame.cpp.

References ERR_PSNR, Frame::getBuffer(), YUVStream::getBufOffsetY(), Stream::getHeight(), YUVStream::getMaxPSNR(), GOP::getStream(), Stream::getWidth(), Frame::inMem(), nl, and Frame::pattern.

Referenced by computePSNR().

uint YUVFrame::getCompressedByteSize  
 

Returns :
Compressed byte size of the frame (i.e. size of the MPGFrame)

Definition at line 25 of file YUVFrame.cpp.

References compBSize.

Referenced by PatGen::init().

MPGFrame * YUVFrame::getMPGFrame  
 

Returns :
Coresponding MPGFrame to this YUVFrame

Definition at line 30 of file YUVFrame.cpp.

References mpgFrame.

double YUVFrame::getPSNR   [inline]
 

Returns :
PSNR value.

Definition at line 64 of file YUVFrame.hpp.

References psnr.

void YUVFrame::setCompressedByteSize uint    siz
 

Sets the compressed size of this frame in bytes.

Definition at line 20 of file YUVFrame.cpp.

References compBSize.

Referenced by PatGen::init().

void YUVFrame::setMPGFrame MPGFrame   mpg
 

Sets the corsponding MPGFrame to this YUVFrame.

Definition at line 35 of file YUVFrame.cpp.

References mpgFrame.

Referenced by PatGen::init().


Member Data Documentation

uint YUVFrame::compBSize [private]
 

Definition at line 68 of file YUVFrame.hpp.

Referenced by getCompressedByteSize(), and setCompressedByteSize().

MPGFrame* YUVFrame::mpgFrame [private]
 

Definition at line 69 of file YUVFrame.hpp.

Referenced by getMPGFrame(), and setMPGFrame().

double YUVFrame::psnr [private]
 

Definition at line 70 of file YUVFrame.hpp.

Referenced by computePSNR(), getPSNR(), and YUVFrame().


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