search for: scalebits

Displaying 1 result from an estimated 1 matches for "scalebits".

Did you mean: scaled_bits
2007 Feb 13
0
libswfdec/jpeg libswfdec/swfdec_image.c
...d return 0; } - - -/* from the JFIF spec */ -#if 0 -#define CONVERT(r, g, b, y, u, v) G_STMT_START{ \ - (r) = CLAMP((y) + 1.402*((v)-128),0,255); \ - (g) = CLAMP((y) - 0.34414*((u)-128) - 0.71414*((v)-128),0,255); \ - (b) = CLAMP((y) + 1.772*((u)-128),0,255); \ -}G_STMT_END -#else -#define SCALEBITS 10 -#define ONE_HALF (1 << (SCALEBITS - 1)) -#define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) -#define CONVERT(r, g, b, y, u, v) G_STMT_START{ \ - int cb = (u) - 128;\ - int cr = (v) - 128;\ - int cy = (y) << SCALEBITS;\ - int r_add = cy + FIX(1.40200) * cr + ONE...