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) |
|
Definition at line 45 of file vid_macros.h. |
|
Value: { \ if (x > 255) x = 255; \ if (x < 0) x = 0; \ } Definition at line 50 of file vid_macros.h. |
|
Definition at line 47 of file vid_macros.h. |
|
Definition at line 48 of file vid_macros.h. Referenced by BiDirPredBlock(), Clip(), CodeOneOrTwo(), FindBiDirChromaLimits(), FindBiDirLimits(), FindPMV(), InitializeQuantizer(), MotionEstimation(), Quant(), and UpdateQuantizer(). |
|
Definition at line 49 of file vid_macros.h. Referenced by BiDirPredBlock(), Clip(), CodeOneOrTwo(), FindBiDirChromaLimits(), FindBiDirLimits(), FindPMV(), InitializeQuantizer(), MotionEstimatePicture(), MotionEstimation(), Quant(), and UpdateQuantizer(). |
|
Definition at line 46 of file vid_macros.h. |
|
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(). |