Searched defs:FIX (Results 1 - 20 of 20) sorted by relevance

/external/jpeg/
H A Djdct.h139 * Caution: some C compilers fail to reduce "FIX(constant)" at compile time,
143 #define FIX(x) ((INT32) ((x) * CONST_SCALE + 0.5)) macro
H A Djdcolor.c84 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
117 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
120 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
122 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x;
125 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
H A Djccolor.c63 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
100 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i;
101 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i;
102 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
103 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i;
104 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i;
109 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
111 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
113 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i;
114 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813
[all...]
H A Djdmerge.c92 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
126 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
129 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
131 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x;
134 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
/external/pdfium/core/src/fxcodec/libjpeg/
H A Djdct.h135 * 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 Dfpdfapi_jccolor.c62 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
99 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i;
100 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i;
101 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
102 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i;
103 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i;
108 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
110 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
112 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i;
113 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813
[all...]
H A Dfpdfapi_jdcolor.c63 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
96 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
99 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
101 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x;
104 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
H A Dfpdfapi_jdmerge.c78 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
112 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
115 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
117 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x;
120 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
/external/qemu/distrib/jpeg-6b/
H A Djdct.h135 * 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 Djdcolor.c82 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
115 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
118 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
120 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x;
123 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
H A Djccolor.c63 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
100 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i;
101 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i;
102 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
103 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i;
104 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i;
109 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
111 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
113 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i;
114 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813
[all...]
H A Djdmerge.c92 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
126 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
129 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
131 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x;
134 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
/external/chromium_org/third_party/libjpeg_turbo/
H A Djdct.h191 * Caution: some C compilers fail to reduce "FIX(constant)" at compile time,
195 #define FIX(x) ((INT32) ((x) * CONST_SCALE + 0.5)) macro
H A Djccolor.c66 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
208 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.29900) * i;
209 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.58700) * i;
210 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
211 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.16874)) * i;
212 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.33126)) * i;
217 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
219 rgb_ycc_tab[i+R_CR_OFF] = FIX(0.50000) * i + CBCR_OFFSET + ONE_HALF-1;
221 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.41869)) * i;
222 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.0813
[all...]
H A Djdmerge.c79 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
214 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
217 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
219 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x;
222 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
H A Djdcolor.c76 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro
234 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
237 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);
239 cconvert->Cr_g_tab[i] = (- FIX(0.71414)) * x;
242 cconvert->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;
313 rgb_y_tab[i+R_Y_OFF] = FIX(0.29900) * i;
314 rgb_y_tab[i+G_Y_OFF] = FIX(0.58700) * i;
315 rgb_y_tab[i+B_Y_OFF] = FIX(0.11400) * i + ONE_HALF;
/external/bluetooth/bluedroid/embdrv/sbc/decoder/srce/
H A Dsynthesis-dct8.c84 #define FIX(x,bits) (((int)floor(0.5f+((x)*((float)(1<<bits)))))/((float)(1<<bits))) macro
86 #define FLOAT_MULT_DCT(K, sample) (FIX(K,20) * sample)
/external/chromium_org/media/base/simd/
H A Dconvert_rgb_to_yuv_sse2.cc19 #define FIX(x) ((x) * (1 << FIX_SHIFT)) macro
22 #define INT16_FIX(x) static_cast<int16>(FIX(x))
/external/chromium_org/third_party/libwebp/utils/
H A Dquant_levels_dec.c25 #define FIX 16 // fix-point precision for averaging macro
52 int scale_; // normalization factor, in FIX bits precision
118 out[x] = (delta * scale) >> FIX;
122 out[x] = (delta * scale) >> FIX;
127 out[x] = (delta * scale) >> FIX;
239 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant
/external/webp/src/utils/
H A Dquant_levels_dec.c25 #define FIX 16 // fix-point precision for averaging macro
52 int scale_; // normalization factor, in FIX bits precision
118 out[x] = (delta * scale) >> FIX;
122 out[x] = (delta * scale) >> FIX;
127 out[x] = (delta * scale) >> FIX;
239 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant

Completed in 7958 milliseconds