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

global.hpp File Reference

#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <qstring.h>
#include <qcstring.h>
#include <qfile.h>
#include <qptrlist.h>

Go to the source code of this file.

Namespaces

namespace  std

Defines

#define nl   "\n"
#define nl1   "\n"
#define nl2   "\n\n"
#define nl3   "\n\n"
#define tab   "\t"
#define MSG_BUFFER_SIZE   65536
#define MAX_IOD_SIZE   1024
#define ERR_OK   1
#define ERR   0
#define ERR_FILE   -500
#define ERR_PSNR   -600
#define MYDEBUG   3
#define DEBUG_FILE   "PatGen.cpp"
#define dmsg(L, X)   ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cout << __FILE__ << ":" << __LINE__ << ": " << X << nl) : (cout << ""))
#define wmsg(L, X)   ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cerr << __FILE__ << ":" << __LINE__ << ": WARNING: " << X << nl) : (cerr << ""))
#define emsg(X)   ( cerr << __FILE__ << ":" << __LINE__ << ": ERROR: " << X << nl)
#define fmsg(X)   { cerr << __FILE__ << ":" << __LINE__ << ": FATAL ERROR: " << X << nl << "Program aborted!\n" ; exit(-1); }

Enumerations

enum  FrameType { I_VOP, P_VOP, B_VOP, NN_VOP }

Variables

typedef VOP_TYPE


Define Documentation

#define DEBUG_FILE   "PatGen.cpp"
 

Defines a specific file for dmsg, wmsg, and emsg. Use * for all files.

Definition at line 26 of file global.hpp.

#define dmsg L,
     ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cout << __FILE__ << ":" << __LINE__ << ": " << X << nl) : (cout << ""))
 

Prints a debug message.

Parameters:
L  Debug level
X  File

Definition at line 32 of file global.hpp.

Referenced by PatGen::init().

#define emsg      ( cerr << __FILE__ << ":" << __LINE__ << ": ERROR: " << X << nl)
 

Definition at line 34 of file global.hpp.

Referenced by PatGen::init().

#define ERR   0
 

Definition at line 15 of file global.hpp.

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

#define ERR_FILE   -500
 

Definition at line 16 of file global.hpp.

Referenced by MPGStream::MPGStream().

#define ERR_OK   1
 

Definition at line 14 of file global.hpp.

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

#define ERR_PSNR   -600
 

Definition at line 18 of file global.hpp.

Referenced by YUVFrame::computePSNR(), and YUVFrame::computePSNRy().

#define fmsg      { cerr << __FILE__ << ":" << __LINE__ << ": FATAL ERROR: " << X << nl << "Program aborted!\n" ; exit(-1); }
 

Definition at line 35 of file global.hpp.

Referenced by PatGen::init().

#define MAX_IOD_SIZE   1024
 

Definition at line 11 of file global.hpp.

#define MSG_BUFFER_SIZE   65536
 

Definition at line 10 of file global.hpp.

#define MYDEBUG   3
 

Definition at line 20 of file global.hpp.

#define nl   "\n"
 

Definition at line 5 of file global.hpp.

Referenced by MPGStream::addNextGOP(), YUVFrame::computePSNRy(), GOP::getFrameInStream(), main(), RenderingEngine::RenderingEngine(), and YUVStream::YUVStream().

#define nl1   "\n"
 

Definition at line 6 of file global.hpp.

#define nl2   "\n\n"
 

Definition at line 7 of file global.hpp.

#define nl3   "\n\n"
 

Definition at line 8 of file global.hpp.

#define tab   "\t"
 

Definition at line 9 of file global.hpp.

Referenced by main().

#define wmsg L,
     ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cerr << __FILE__ << ":" << __LINE__ << ": WARNING: " << X << nl) : (cerr << ""))
 

Definition at line 33 of file global.hpp.

Referenced by MPGStream::getNextFrame().


Enumeration Type Documentation

enum FrameType
 

Enumeration values:
I_VOP 
P_VOP 
B_VOP 
NN_VOP 

Definition at line 38 of file global.hpp.

Referenced by Frame::Frame(), YUVGOP::getFramesInGOP(), MPGStream::getNextFrame(), Frame::getType(), PatGen::init(), MPGFrame::MPGFrame(), Frame::setType(), and YUVFrame::YUVFrame().


Variable Documentation

typedef VOP_TYPE
 


Generated on Wed Mar 19 11:57:43 2003 for qctva4lv by doxygen1.2.17