Go to the source code of this file.
|
#define | AVG(a, b) (((int)(a) + (int)(b)) >> 1) |
|
#define | AVG3(a, b, c) (((int)(a) + (int)(b) + (int)(c)) / 3) |
|
#define | AVG4(a, b, c, d) (((int)(a) + (int)(b) + (int)(c) + (int)(d)) >> 2) |
|
#define | WAVG4(a, b, c, d, x, y) ( ( ((int)(a) + (int)(b)) * (int)(x) + ((int)(c) + (int)(d)) * (int)(y) ) / ( 2 * ((int)(x) + (int(y))) ) ) |
|
#define AVG |
( |
|
a, |
|
|
|
b |
|
) |
| (((int)(a) + (int)(b)) >> 1) |
#define AVG3 |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| (((int)(a) + (int)(b) + (int)(c)) / 3) |
#define AVG4 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| (((int)(a) + (int)(b) + (int)(c) + (int)(d)) >> 2) |
#define WAVG4 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
x, |
|
|
|
y |
|
) |
| ( ( ((int)(a) + (int)(b)) * (int)(x) + ((int)(c) + (int)(d)) * (int)(y) ) / ( 2 * ((int)(x) + (int(y))) ) ) |