Main Page | Class List | File List | Class Members | File Members

vid_macros.h File Reference

Go to the source code of this file.

Defines

#define sign(a)   ((a) < 0 ? -1 : 1)
#define Int(a)   ((a) < 0 ? (int)(a-0.5) : (int)(a))
#define mnint(a)   ((a) < 0 ? (int)(a - 0.5) : (int)(a + 0.5))
#define mfloor(a)   ((a) < 0 ? (int)(a - 0.5) : (int)(a))
#define mmax(a, b)   ((a) > (b) ? (a) : (b))
#define mmin(a, b)   ((a) < (b) ? (a) : (b))
#define limit(x)


Define Documentation

#define Int a   )     ((a) < 0 ? (int)(a-0.5) : (int)(a))
 

Definition at line 45 of file vid_macros.h.

#define limit  ) 
 

Value:

{ \
    if (x > 255) x = 255; \
    if (x <   0)   x = 0; \
}

Definition at line 50 of file vid_macros.h.

#define mfloor a   )     ((a) < 0 ? (int)(a - 0.5) : (int)(a))
 

Definition at line 47 of file vid_macros.h.

#define mmax a,
 )     ((a) > (b) ? (a) : (b))
 

Definition at line 48 of file vid_macros.h.

Referenced by BiDirPredBlock(), Clip(), CodeOneOrTwo(), FindBiDirChromaLimits(), FindBiDirLimits(), FindPMV(), InitializeQuantizer(), MotionEstimation(), Quant(), and UpdateQuantizer().

#define mmin a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 49 of file vid_macros.h.

Referenced by BiDirPredBlock(), Clip(), CodeOneOrTwo(), FindBiDirChromaLimits(), FindBiDirLimits(), FindPMV(), InitializeQuantizer(), MotionEstimatePicture(), MotionEstimation(), Quant(), and UpdateQuantizer().

#define mnint a   )     ((a) < 0 ? (int)(a - 0.5) : (int)(a + 0.5))
 

Definition at line 46 of file vid_macros.h.

#define sign a   )     ((a) < 0 ? -1 : 1)
 

Definition at line 44 of file vid_macros.h.

Referenced by Dequant(), MB_Recon_B(), MB_Recon_P(), Predict_B(), Predict_P(), put_mv(), and Quant().


Generated on Sun Jul 16 16:27:47 2006 by  doxygen 1.3.9.1