#include <Frame.hpp>
Inheritance diagram for Frame:

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 |
| GOP * | pattern |
|
|
|
|
||||||||||||||||||||||||
|
Definition at line 12 of file Frame.cpp. References FrameType, setFileOffset(), setGOP(), setNoInGOP(), setNoInStream(), and setType(). |
|
|
Constructor
|
|
|
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. |
|
||||||||||||
|
Fills the frame's buffer with an char array of data of size size. Definition at line 96 of file Frame.cpp. References buffer. |
|
|
Frees the frame's buffer Definition at line 110 of file Frame.cpp. References Stream::freeBuffer(), GOP::getStream(), and pattern. |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 63 of file Frame.cpp. References fileOffset. Referenced by Stream::fillBuffer(). |
|
|
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(). |
|
|
Returns the frame number in the GOP. Definition at line 55 of file Frame.cpp. References noInGOP. |
|
|
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(). |
|
|
Definition at line 91 of file Frame.cpp. References priority. |
|
|
Definition at line 27 of file Frame.cpp. References FrameType, and type. Referenced by MPGStream::addNextGOP(), YUVGOP::getFramesInGOP(), and PatGen::init(). |
|
|
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(). |
|
|
Definition at line 75 of file Frame.cpp. References buffer. Referenced by Stream::fillBuffer(), and Stream::freeBuffer(). |
|
|
Definition at line 83 of file Frame.cpp. References byteSize. Referenced by YUVStream::addNextGOP(), and MPGStream::getNextFrame(). |
|
|
Definition at line 59 of file Frame.cpp. References fileOffset. Referenced by Frame(), and MPGStream::getNextFrame(). |
|
|
Sets the GOP where this frame belongs to. Definition at line 31 of file Frame.cpp. References pattern. Referenced by MPGStream::addNextGOP(), and Frame(). |
|
|
Sets the frame number in display order. Definition at line 43 of file Frame.cpp. References noInDisp. Referenced by YUVStream::addNextGOP(), and MPGStream::addNextGOP(). |
|
|
Sets the frame number in the GOP. Definition at line 51 of file Frame.cpp. References noInGOP. Referenced by MPGStream::addNextGOP(), and Frame(). |
|
|
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(). |
|
|
Definition at line 87 of file Frame.cpp. References priority. Referenced by PatGen::init(). |
|
|
Definition at line 24 of file Frame.cpp. References FrameType, and type. Referenced by Frame(), and PatGen::init(). |
|
|
Definition at line 122 of file Frame.hpp. Referenced by fillBuffer(), getBuffer(), inMem(), and resizeBuffer(). |
|
|
Definition at line 128 of file Frame.hpp. Referenced by getByteSize(), MPGFrame::MPGFrame(), and setByteSize(). |
|
|
Definition at line 127 of file Frame.hpp. Referenced by getFileOffset(), and setFileOffset(). |
|
|
Definition at line 125 of file Frame.hpp. Referenced by getNoInDisplay(), and setNoInDisplay(). |
|
|
Definition at line 126 of file Frame.hpp. Referenced by getNoInGOP(), and setNoInGOP(). |
|
|
Definition at line 124 of file Frame.hpp. Referenced by getNoInStream(), and setNoInStream(). |
|
|
Definition at line 134 of file Frame.hpp. Referenced by YUVFrame::computePSNRy(), fillBuffer(), freeBuffer(), and setGOP(). |
|
|
Definition at line 131 of file Frame.hpp. Referenced by getPriority(), and setPriority(). |
|
|
|
1.2.17