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

global.hpp

Go to the documentation of this file.
00001 #ifndef __global_hpp__
00002 #define __global_hpp__
00003 
00004 // some constants for convenience
00005 #define nl "\n"
00006 #define nl1 "\n"
00007 #define nl2 "\n\n"
00008 #define nl3 "\n\n"
00009 #define tab "\t"
00010 #define MSG_BUFFER_SIZE 65536
00011 #define MAX_IOD_SIZE 1024
00012 
00013 // error codes
00014 #define ERR_OK 1
00015 #define ERR 0
00016 #define ERR_FILE -500
00017 
00018 #define ERR_PSNR -600
00019 
00020 #define MYDEBUG 3
00021 
00022 
00026 #define DEBUG_FILE "PatGen.cpp"
00027 
00032 #define dmsg(L,X) ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cout << __FILE__ << ":" << __LINE__ << ": " << X << nl) : (cout << ""))
00033 #define wmsg(L,X) ( (((strcmp("*", DEBUG_FILE) == 0) || (strcmp(__FILE__, DEBUG_FILE) == 0)) && MYDEBUG >= L) ? (cerr << __FILE__ << ":" << __LINE__ << ": WARNING: " << X << nl) : (cerr << ""))
00034 #define emsg(X) ( cerr << __FILE__ << ":" << __LINE__ << ": ERROR: " << X << nl)
00035 #define fmsg(X) { cerr << __FILE__ << ":" << __LINE__ << ": FATAL ERROR: " << X << nl << "Program aborted!\n" ; exit(-1); }
00036 
00037 // the frame types
00038 typedef enum { I_VOP, P_VOP, B_VOP, NN_VOP } FrameType,VOP_TYPE;
00039 
00040 
00041 // c++ includes
00042 #include <iostream>
00043 #include <iostream>
00044 #include <stdlib.h>
00045 #include <math.h>
00046 
00047 using namespace std;
00048 
00049 // qt includes
00050 #include <qstring.h>
00051 #include <qcstring.h> 
00052 #include <qfile.h>
00053 #ifdef WIN32
00054 #define QPtrList QList
00055 #include <qlist.h>
00056 #define QPtrVector QVector
00057 #define QPtrCollection QCollection
00058 #else
00059 #include <qptrlist.h>
00060 #endif
00061 
00062 #endif // __global_hpp__

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