#include <YUVFrame.hpp>
Inheritance diagram for YUVFrame:
Public Methods | |
YUVFrame (long noS, unsigned int noP, long offset, GOP *pat, FrameType t=NN_VOP) | |
~YUVFrame () | |
void | setCompressedByteSize (uint siz) |
uint | getCompressedByteSize () |
MPGFrame * | getMPGFrame () |
void | setMPGFrame (MPGFrame *mpg) |
double | computePSNRy (YUVFrame *f) |
double | computePSNR (YUVFrame *f) |
double | getPSNR () |
Private Attributes | |
uint | compBSize |
MPGFrame * | mpgFrame |
double | psnr |
|
Definition at line 8 of file YUVFrame.cpp. |
|
Definition at line 16 of file YUVFrame.cpp. |
|
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.
Definition at line 86 of file YUVFrame.cpp. References computePSNRy(), ERR_PSNR, Frame::inMem(), and psnr. Referenced by YUVGOP::computePSNR(). |
|
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.
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(). |
|
Definition at line 25 of file YUVFrame.cpp. References compBSize. Referenced by PatGen::init(). |
|
Definition at line 30 of file YUVFrame.cpp. References mpgFrame. |
|
Definition at line 64 of file YUVFrame.hpp. References psnr. |
|
Sets the compressed size of this frame in bytes. Definition at line 20 of file YUVFrame.cpp. References compBSize. Referenced by PatGen::init(). |
|
Sets the corsponding MPGFrame to this YUVFrame. Definition at line 35 of file YUVFrame.cpp. References mpgFrame. Referenced by PatGen::init(). |
|
Definition at line 68 of file YUVFrame.hpp. Referenced by getCompressedByteSize(), and setCompressedByteSize(). |
|
Definition at line 69 of file YUVFrame.hpp. Referenced by getMPGFrame(), and setMPGFrame(). |
|
Definition at line 70 of file YUVFrame.hpp. Referenced by computePSNR(), getPSNR(), and YUVFrame(). |