/external/libjpeg-turbo/ |
H A D | jdct.h | 167 * Caution: some C compilers fail to reduce "FIX(constant)" at compile time, 171 #define FIX(x) ((JLONG) ((x) * CONST_SCALE + 0.5)) macro
|
H A D | jccolor.c | 68 #define FIX(x) ((JLONG) ((x) * (1L<<SCALEBITS) + 0.5)) macro 210 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i; 211 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i; 212 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF; 213 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i; 214 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i; 219 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1; 221 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1; 223 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i; 224 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813 [all...] |
H A D | jdmerge.c | 80 #define FIX(x) ((JLONG) ((x) * (1L<<SCALEBITS) + 0.5)) macro 215 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); 218 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); 220 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x; 223 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
|
H A D | jdcolor.c | 78 #define FIX(x) ((JLONG) ((x) * (1L<<SCALEBITS) + 0.5)) macro 236 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); 239 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); 241 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x; 244 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF; 315 rgb_y_tab[i+R_Y_OFF] = FIX(0.29900) * i; 316 rgb_y_tab[i+G_Y_OFF] = FIX(0.58700) * i; 317 rgb_y_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
|
/external/pdfium/third_party/libjpeg/ |
H A D | jdct.h | 135 * Caution: some C compilers fail to reduce "FIX(constant)" at compile time, 139 #define FIX(x) ((INT32) ((x) * CONST_SCALE + 0.5)) macro
|
H A D | fpdfapi_jccolor.c | 61 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 98 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i; 99 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i; 100 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF; 101 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i; 102 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i; 107 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1; 109 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1; 111 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i; 112 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813 [all...] |
H A D | fpdfapi_jdcolor.c | 62 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 95 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); 98 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); 100 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x; 103 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
|
H A D | fpdfapi_jdmerge.c | 73 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 107 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); 110 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); 112 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x; 115 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
|
/external/syslinux/com32/lib/jpeg/ |
H A D | bgr24.c | 81 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 98 add_r = FIX(1.40200) * cr + ONE_HALF; 99 add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; 100 add_b = FIX(1.77200) * cb + ONE_HALF; 117 #undef FIX macro 137 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 153 add_r = FIX(1.40200) * cr + ONE_HALF; 154 add_g = - FIX(0.34414) * cb - FIX(0.7141 183 #undef FIX macro 204 #define FIX macro 252 #undef FIX macro 274 #define FIX macro 342 #undef FIX macro [all...] |
H A D | bgra32.c | 81 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 98 add_r = FIX(1.40200) * cr + ONE_HALF; 99 add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; 100 add_b = FIX(1.77200) * cb + ONE_HALF; 119 #undef FIX macro 139 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 154 add_r = FIX(1.40200) * cr + ONE_HALF; 155 add_g = - FIX(0.34414) * cb - FIX(0.7141 188 #undef FIX macro 209 #define FIX macro 261 #undef FIX macro 283 #define FIX macro 359 #undef FIX macro [all...] |
H A D | rgb24.c | 81 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 97 add_r = FIX(1.40200) * cr + ONE_HALF; 98 add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; 99 add_b = FIX(1.77200) * cb + ONE_HALF; 116 #undef FIX macro 135 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 153 add_r = FIX(1.40200) * cr + ONE_HALF; 154 add_g = - FIX(0.34414) * cb - FIX(0.7141 182 #undef FIX macro 204 #define FIX macro 252 #undef FIX macro 273 #define FIX macro 341 #undef FIX macro [all...] |
H A D | rgba32.c | 81 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 98 add_r = FIX(1.40200) * cr + ONE_HALF; 99 add_g = - FIX(0.34414) * cb - FIX(0.71414) * cr + ONE_HALF; 100 add_b = FIX(1.77200) * cb + ONE_HALF; 119 #undef FIX macro 138 #define FIX(x) ((int)((x) * (1UL<<SCALEBITS) + 0.5)) macro 155 add_r = FIX(1.40200) * cr + ONE_HALF; 156 add_g = - FIX(0.34414) * cb - FIX(0.7141 188 #undef FIX macro 210 #define FIX macro 262 #undef FIX macro 283 #define FIX macro 359 #undef FIX macro [all...] |
/external/pdfium/third_party/libtiff/ |
H A D | tif_color.c | 176 #define FIX(x) ((int32)((x) * (1L<<SHIFT) + 0.5)) macro 239 { float f1 = 2-2*LumaRed; int32 D1 = FIX(f1); 240 float f2 = LumaRed*f1/LumaGreen; int32 D2 = -FIX(f2); 241 float f3 = 2-2*LumaBlue; int32 D3 = FIX(f3); 242 float f4 = LumaBlue*f3/LumaGreen; int32 D4 = -FIX(f4); 278 #undef FIX macro
|
/external/webp/src/utils/ |
H A D | quant_levels_dec_utils.c | 25 #define FIX 16 // fix-point precision for averaging macro 53 int scale_; // normalization factor, in FIX bits precision 119 out[x] = (delta * scale) >> FIX; 123 out[x] = (delta * scale) >> FIX; 128 out[x] = (delta * scale) >> FIX; 244 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant
|