nidct.h 681 Bytes
#define Round(val, shiftAmt, cast) (((val) > 0 )?\
        (((val) + (((cast)1<<(shiftAmt-1))-1))>>(shiftAmt)) :\
        (((val) + ((cast)1<<(shiftAmt-1)))>>(shiftAmt)))
        
#define DumbRound(val, shiftAmt, cast) (((val) > 0 )?\
        (((val) + ((cast)1<<(shiftAmt-1)))>>(shiftAmt)) :\
        (((val) + ((cast)1<<(shiftAmt-1)))>>(shiftAmt)))
        

typedef unsigned char  Uint8;
typedef char    Int8;
typedef unsigned short Uint16;
typedef short   Int16;
typedef unsigned long  Uint32;
typedef long    Int32;
typedef long long  Int64;

#ifndef M_PI
#define M_PI  3.14159265358979323846
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE  1
#endif