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

Frame Class Reference

#include <Frame.hpp>

Inheritance diagram for Frame:

MPGFrame YUVFrame List of all members.

Public Methods

void setType (FrameType t)
FrameType getType ()
void setGOP (GOP *pat)
void setNoInStream (uint noS)
uint getNoInStream ()
void setNoInDisplay (uint noD)
uint getNoInDisplay ()
void setNoInGOP (uint noP)
uint getNoInGOP ()
void setFileOffset (uint offset)
long getFileOffset ()
char * getBuffer ()
bool fillBuffer (char *data, unsigned int size)
bool fillBuffer ()
bool freeBuffer ()
bool inMem ()
bool resizeBuffer (unsigned int size)
uint getByteSize ()
void setByteSize (unsigned int size)
void setPriority (int prio)
int getPriority ()
virtual ~Frame ()

Protected Methods

 Frame (long noS, unsigned int noP, long offset, GOP *p, FrameType t=NN_VOP)
 Frame (FrameType t=NN_VOP)

Protected Attributes

QByteArray buffer
uint noInStream
uint noInDisp
uint noInGOP
uint fileOffset
uint byteSize
FrameType type
int priority
GOPpattern

Constructor & Destructor Documentation

Frame::~Frame   [virtual]
 

Definition at line 20 of file Frame.cpp.

Frame::Frame long    noS,
unsigned int    noP,
long    offset,
GOP   p,
FrameType    t = NN_VOP
[protected]
 

Parameters:
noS  Frame number in the stream.
noP  Frame number in the GOP.
File  offset of this frame in the stream, i.e., the frame's position in the file.
p  The GOP this frame belongs to.
t  The type of this frame.

Definition at line 12 of file Frame.cpp.

References FrameType, setFileOffset(), setGOP(), setNoInGOP(), setNoInStream(), and setType().

Frame::Frame FrameType    t = NN_VOP [protected]
 

Constructor

Parameters:
the  frame type

Definition at line 8 of file Frame.cpp.

References FrameType, and setType().


Member Function Documentation

bool Frame::fillBuffer  
 

Reads the frame data from disk and saves it in the frame buffer.

Definition at line 103 of file Frame.cpp.

References Stream::fillBuffer(), GOP::getStream(), and pattern.

bool Frame::fillBuffer char *    data,
unsigned int    size
 

Fills the frame's buffer with an char array of data of size size.

Definition at line 96 of file Frame.cpp.

References buffer.

bool Frame::freeBuffer  
 

Frees the frame's buffer

Definition at line 110 of file Frame.cpp.

References Stream::freeBuffer(), GOP::getStream(), and pattern.

char * Frame::getBuffer  
 

Returns the buffer of the frame as a pointer to an char array.

Definition at line 67 of file Frame.cpp.

References buffer.

Referenced by YUVFrame::computePSNRy(), and Stream::fillBuffer().

uint Frame::getByteSize  
 

Returns the size of this frame.

Definition at line 79 of file Frame.cpp.

References byteSize.

Referenced by GOP::calcByteSize(), Stream::fillBuffer(), and PatGen::init().

long Frame::getFileOffset  
 

Definition at line 63 of file Frame.cpp.

References fileOffset.

Referenced by Stream::fillBuffer().

uint Frame::getNoInDisplay  
 

Returns the frame number in display order.

Definition at line 47 of file Frame.cpp.

References noInDisp.

Referenced by MPGStream::addNextGOP(), FrameVector::compareItems(), and PatGen::init().

uint Frame::getNoInGOP  
 

Returns the frame number in the GOP.

Definition at line 55 of file Frame.cpp.

References noInGOP.

uint Frame::getNoInStream  
 

Returns the frame number in stream order.

Definition at line 39 of file Frame.cpp.

References noInStream.

Referenced by FrameVector::compareItems(), GOP::getFrameInStream(), and PatGen::init().

int Frame::getPriority  
 

Definition at line 91 of file Frame.cpp.

References priority.

FrameType Frame::getType  
 

Definition at line 27 of file Frame.cpp.

References FrameType, and type.

Referenced by MPGStream::addNextGOP(), YUVGOP::getFramesInGOP(), and PatGen::init().

bool Frame::inMem  
 

Returns true if this frame is in memory, i.e., the buffer is filled otherwise false.

Definition at line 71 of file Frame.cpp.

References buffer.

Referenced by YUVFrame::computePSNR(), YUVFrame::computePSNRy(), Stream::fillBuffer(), and Stream::freeBuffer().

bool Frame::resizeBuffer unsigned int    size
 

Definition at line 75 of file Frame.cpp.

References buffer.

Referenced by Stream::fillBuffer(), and Stream::freeBuffer().

void Frame::setByteSize unsigned int    size
 

Definition at line 83 of file Frame.cpp.

References byteSize.

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

void Frame::setFileOffset uint    offset
 

Definition at line 59 of file Frame.cpp.

References fileOffset.

Referenced by Frame(), and MPGStream::getNextFrame().

void Frame::setGOP GOP   pat
 

Sets the GOP where this frame belongs to.

Definition at line 31 of file Frame.cpp.

References pattern.

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

void Frame::setNoInDisplay uint    noD
 

Sets the frame number in display order.

Definition at line 43 of file Frame.cpp.

References noInDisp.

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

void Frame::setNoInGOP uint    noP
 

Sets the frame number in the GOP.

Definition at line 51 of file Frame.cpp.

References noInGOP.

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

void Frame::setNoInStream uint    noS
 

Sets the frame number in stream order.

Definition at line 35 of file Frame.cpp.

References noInStream.

Referenced by Frame(), MPGStream::getNextFrame(), and PatGen::init().

void Frame::setPriority int    prio
 

Definition at line 87 of file Frame.cpp.

References priority.

Referenced by PatGen::init().

void Frame::setType FrameType    t
 

Definition at line 24 of file Frame.cpp.

References FrameType, and type.

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


Member Data Documentation

QByteArray Frame::buffer [protected]
 

Definition at line 122 of file Frame.hpp.

Referenced by fillBuffer(), getBuffer(), inMem(), and resizeBuffer().

uint Frame::byteSize [protected]
 

Definition at line 128 of file Frame.hpp.

Referenced by getByteSize(), MPGFrame::MPGFrame(), and setByteSize().

uint Frame::fileOffset [protected]
 

Definition at line 127 of file Frame.hpp.

Referenced by getFileOffset(), and setFileOffset().

uint Frame::noInDisp [protected]
 

Definition at line 125 of file Frame.hpp.

Referenced by getNoInDisplay(), and setNoInDisplay().

uint Frame::noInGOP [protected]
 

Definition at line 126 of file Frame.hpp.

Referenced by getNoInGOP(), and setNoInGOP().

uint Frame::noInStream [protected]
 

Definition at line 124 of file Frame.hpp.

Referenced by getNoInStream(), and setNoInStream().

GOP* Frame::pattern [protected]
 

Definition at line 134 of file Frame.hpp.

Referenced by YUVFrame::computePSNRy(), fillBuffer(), freeBuffer(), and setGOP().

int Frame::priority [protected]
 

Definition at line 131 of file Frame.hpp.

Referenced by getPriority(), and setPriority().

FrameType Frame::type [protected]
 

Definition at line 129 of file Frame.hpp.

Referenced by getType(), and setType().


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