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

GOP Class Reference

#include <GOP.hpp>

Inheritance diagram for GOP:

MPGGOP YUVGOP List of all members.

Public Methods

uint getGOPNo ()
uint calcByteSize ()
bool isMaster ()
StreamgetStream ()
void addFrame (Frame *f)
uint getFrameCount ()
FramegetFrame (uint frNo)
FramegetFrameInStream (uint frNo)
virtual ~GOP ()
uint smallestByteSize ()

Protected Methods

 GOP (Stream *s, uint pat_i)
 Implementation of concrete methods of the abstract class GOP.

 GOP (Stream *s, uint mod_i, uint pat_i)

Protected Attributes

QPtrList< FrameframeList
QPtrList< GOP > modFlatList
QPtrList< GOP > bestModList
QPtrList< GOP > fathers
bool isSubopt
QPtrList< GOP > worstPSNRModList
QPtrList< GOP > bestPSNRModList
QPtrList< GOP > bestFittingModList
QPtrList< GOP > randomModList
int modTreeLevel
int slice
QPtrList< GOP > modList
uint patNo
uint patFrameOffset
uint modNo
uint modBits
QString description
bool master
uint byteSize
uint refCount
uint timestamp
Streamstream
FrameVector frameVector

Constructor & Destructor Documentation

GOP::~GOP   [virtual]
 

Definition at line 31 of file GOP.cpp.

GOP::GOP Stream   s,
uint    pat_i
[protected]
 

Implementation of concrete methods of the abstract class GOP.

Constructs a master GOP/pattern.

Parameters:
s  A pointer to the stream, this GOP belongs to.
pat_i  The number of the GOP int the stream

Definition at line 14 of file GOP.cpp.

References isSubopt, master, patNo, refCount, and stream.

GOP::GOP Stream   s,
uint    mod_i,
uint    pat_i
[protected]
 

Constructs a GOP/pattern.

Parameters:
s  A pointer to the stream, this GOP belongs to.
mod_i  The modification number of this GOP.
pat_i  The number of the GOP int the stream

Definition at line 22 of file GOP.cpp.

References isSubopt, master, modNo, patNo, refCount, and stream.


Member Function Documentation

void GOP::addFrame Frame   f
 

Adds a frame to this GOP.

Parameters:
f  A pointer to the frame to add.

Definition at line 35 of file GOP.cpp.

References frameList.

Referenced by YUVStream::addNextGOP(), and MPGStream::addNextGOP().

uint GOP::calcByteSize  
 

Returns the calculated size of this GOP in bytes.

Definition at line 48 of file GOP.cpp.

References byteSize, Frame::getByteSize(), getFrame(), and getFrameCount().

Referenced by YUVStream::addNextGOP(), and MPGStream::addNextGOP().

Frame * GOP::getFrame uint    frNo
 

Returns the frame with number frNo of this GOP.

Definition at line 43 of file GOP.cpp.

References frameList.

Referenced by MPGStream::addNextGOP(), calcByteSize(), YUVGOP::computePSNR(), Stream::fillBuffer(), Stream::freeBuffer(), Stream::getFrame(), and PatGen::init().

uint GOP::getFrameCount  
 

Returns the number of frames in this GOP.

Definition at line 39 of file GOP.cpp.

References frameList.

Referenced by YUVStream::addNextGOP(), MPGStream::addNextGOP(), calcByteSize(), YUVGOP::computePSNR(), Stream::fillBuffer(), Stream::freeBuffer(), Stream::getFrame(), getFrameInStream(), and PatGen::init().

Frame * GOP::getFrameInStream uint    frNo
 

Definition at line 62 of file GOP.cpp.

References frameList, getFrameCount(), getGOPNo(), Frame::getNoInStream(), and nl.

uint GOP::getGOPNo  
 

Returns the GOPs position in the stream, i.e., the GOP number.

Definition at line 77 of file GOP.cpp.

References patNo.

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

Stream * GOP::getStream  
 

Returns the stream, this GOP belongs to.

Definition at line 87 of file GOP.cpp.

References stream.

Referenced by YUVFrame::computePSNRy(), Frame::fillBuffer(), Frame::freeBuffer(), and PatGen::init().

bool GOP::isMaster  
 

Returns true, if this GOP is the master GOP otherwise false.

Definition at line 82 of file GOP.cpp.

References master.

Referenced by YUVGOP::setPSNRmp().

uint GOP::smallestByteSize  
 


Member Data Documentation

QPtrList<GOP> GOP::bestFittingModList [protected]
 

Definition at line 93 of file GOP.hpp.

QPtrList<GOP> GOP::bestModList [protected]
 

Definition at line 86 of file GOP.hpp.

QPtrList<GOP> GOP::bestPSNRModList [protected]
 

Definition at line 92 of file GOP.hpp.

uint GOP::byteSize [protected]
 

Definition at line 109 of file GOP.hpp.

Referenced by calcByteSize(), YUVGOP::getByteSize(), MPGGOP::getByteSize(), and MPGGOP::setByteSize().

QString GOP::description [protected]
 

Definition at line 107 of file GOP.hpp.

QPtrList<GOP> GOP::fathers [protected]
 

Definition at line 87 of file GOP.hpp.

QPtrList<Frame> GOP::frameList [protected]
 

Definition at line 84 of file GOP.hpp.

Referenced by addFrame(), getFrame(), getFrameCount(), getFrameInStream(), and YUVGOP::getFramesInGOP().

FrameVector GOP::frameVector [protected]
 

Definition at line 116 of file GOP.hpp.

bool GOP::isSubopt [protected]
 

Definition at line 89 of file GOP.hpp.

Referenced by GOP().

bool GOP::master [protected]
 

Definition at line 108 of file GOP.hpp.

Referenced by GOP(), and isMaster().

uint GOP::modBits [protected]
 

Definition at line 106 of file GOP.hpp.

QPtrList<GOP> GOP::modFlatList [protected]
 

Definition at line 85 of file GOP.hpp.

QPtrList<GOP> GOP::modList [protected]
 

Definition at line 99 of file GOP.hpp.

uint GOP::modNo [protected]
 

Definition at line 105 of file GOP.hpp.

Referenced by GOP().

int GOP::modTreeLevel [protected]
 

Definition at line 97 of file GOP.hpp.

uint GOP::patFrameOffset [protected]
 

Definition at line 104 of file GOP.hpp.

uint GOP::patNo [protected]
 

Definition at line 103 of file GOP.hpp.

Referenced by getGOPNo(), and GOP().

QPtrList<GOP> GOP::randomModList [protected]
 

Definition at line 94 of file GOP.hpp.

uint GOP::refCount [protected]
 

Definition at line 110 of file GOP.hpp.

Referenced by GOP().

int GOP::slice [protected]
 

Definition at line 98 of file GOP.hpp.

Stream* GOP::stream [protected]
 

Definition at line 114 of file GOP.hpp.

Referenced by getStream(), and GOP().

uint GOP::timestamp [protected]
 

Definition at line 111 of file GOP.hpp.

QPtrList<GOP> GOP::worstPSNRModList [protected]
 

Definition at line 91 of file GOP.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