Searched refs:FIX (Results 1 – 10 of 10) sorted by relevance
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | jfdctint.c | 124 #define FIX_0_298631336 FIX(0.298631336) 125 #define FIX_0_390180644 FIX(0.390180644) 126 #define FIX_0_541196100 FIX(0.541196100) 127 #define FIX_0_765366865 FIX(0.765366865) 128 #define FIX_0_899976223 FIX(0.899976223) 129 #define FIX_1_175875602 FIX(1.175875602) 130 #define FIX_1_501321110 FIX(1.501321110) 131 #define FIX_1_847759065 FIX(1.847759065) 132 #define FIX_1_961570560 FIX(1.961570560) 133 #define FIX_2_053119869 FIX(2.053119869) [all …]
|
A D | jidctint.c | 129 #define FIX_0_298631336 FIX(0.298631336) 130 #define FIX_0_390180644 FIX(0.390180644) 131 #define FIX_0_541196100 FIX(0.541196100) 132 #define FIX_0_765366865 FIX(0.765366865) 133 #define FIX_0_899976223 FIX(0.899976223) 134 #define FIX_1_175875602 FIX(1.175875602) 135 #define FIX_1_501321110 FIX(1.501321110) 136 #define FIX_1_847759065 FIX(1.847759065) 137 #define FIX_1_961570560 FIX(1.961570560) 138 #define FIX_2_053119869 FIX(2.053119869) [all …]
|
A D | jdcolor.c | 93 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 139 RIGHT_SHIFT(FIX(1.402) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table() 142 RIGHT_SHIFT(FIX(1.772) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table() 144 cconvert->Cr_g_tab[i] = (- FIX(0.714136286)) * x; in build_ycc_rgb_table() 147 cconvert->Cb_g_tab[i] = (- FIX(0.344136286)) * x + ONE_HALF; in build_ycc_rgb_table() 179 RIGHT_SHIFT(FIX(2.804) * x + ONE_HALF, SCALEBITS); in build_bg_ycc_rgb_table() 182 RIGHT_SHIFT(FIX(3.544) * x + ONE_HALF, SCALEBITS); in build_bg_ycc_rgb_table() 184 cconvert->Cr_g_tab[i] = (- FIX(1.428272572)) * x; in build_bg_ycc_rgb_table() 266 rgb_y_tab[i+R_Y_OFF] = FIX(0.299) * i; in build_rgb_y_table() 267 rgb_y_tab[i+G_Y_OFF] = FIX(0.587) * i; in build_rgb_y_table() [all …]
|
A D | jdmerge.c | 75 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 110 RIGHT_SHIFT(FIX(1.402) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table() 113 RIGHT_SHIFT(FIX(1.772) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table() 115 upsample->Cr_g_tab[i] = (- FIX(0.714136286)) * x; in build_ycc_rgb_table() 118 upsample->Cb_g_tab[i] = (- FIX(0.344136286)) * x + ONE_HALF; in build_ycc_rgb_table() 150 RIGHT_SHIFT(FIX(2.804) * x + ONE_HALF, SCALEBITS); in build_bg_ycc_rgb_table() 153 RIGHT_SHIFT(FIX(3.544) * x + ONE_HALF, SCALEBITS); in build_bg_ycc_rgb_table() 155 upsample->Cr_g_tab[i] = (- FIX(1.428272572)) * x; in build_bg_ycc_rgb_table() 158 upsample->Cb_g_tab[i] = (- FIX(0.688272572)) * x + ONE_HALF; in build_bg_ycc_rgb_table()
|
A D | jccolor.c | 74 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5)) macro 111 rgb_ycc_tab[i+R_Y_OFF] = FIX(0.299) * i; in rgb_ycc_start() 112 rgb_ycc_tab[i+G_Y_OFF] = FIX(0.587) * i; in rgb_ycc_start() 113 rgb_ycc_tab[i+B_Y_OFF] = FIX(0.114) * i + ONE_HALF; in rgb_ycc_start() 114 rgb_ycc_tab[i+R_CB_OFF] = (-FIX(0.168735892)) * i; in rgb_ycc_start() 115 rgb_ycc_tab[i+G_CB_OFF] = (-FIX(0.331264108)) * i; in rgb_ycc_start() 120 rgb_ycc_tab[i+B_CB_OFF] = FIX(0.5) * i + CBCR_OFFSET + ONE_HALF-1; in rgb_ycc_start() 124 rgb_ycc_tab[i+G_CR_OFF] = (-FIX(0.418687589)) * i; in rgb_ycc_start() 125 rgb_ycc_tab[i+B_CR_OFF] = (-FIX(0.081312411)) * i; in rgb_ycc_start()
|
A D | jfdctfst.c | 85 #define FIX_0_382683433 FIX(0.382683433) 86 #define FIX_0_541196100 FIX(0.541196100) 87 #define FIX_0_707106781 FIX(0.707106781) 88 #define FIX_1_306562965 FIX(1.306562965)
|
A D | jidctfst.c | 98 #define FIX_1_082392200 FIX(1.082392200) 99 #define FIX_1_414213562 FIX(1.414213562) 100 #define FIX_1_847759065 FIX(1.847759065) 101 #define FIX_2_613125930 FIX(2.613125930)
|
A D | jdct.h | 360 #define FIX(x) ((INT32) ((x) * CONST_SCALE + 0.5)) macro
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_color.c | 176 #define FIX(x) ((int32)((x) * (1L<<SHIFT) + 0.5)) macro 258 { float f1 = 2-2*LumaRed; int32 D1 = FIX(CLAMP(f1,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 259 float f2 = LumaRed*f1/LumaGreen; int32 D2 = -FIX(CLAMP(f2,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 260 float f3 = 2-2*LumaBlue; int32 D3 = FIX(CLAMP(f3,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 261 float f4 = LumaBlue*f3/LumaGreen; int32 D4 = -FIX(CLAMP(f4,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 300 #undef FIX
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/ |
A D | quant_levels_dec_utils.c | 25 #define FIX 16 // fix-point precision for averaging macro 120 out[x] = (delta * scale) >> FIX; in HFilter() 124 out[x] = (delta * scale) >> FIX; in HFilter() 129 out[x] = (delta * scale) >> FIX; in HFilter() 245 p->scale_ = (1 << (FIX + LFIX)) / (R * R); // normalization constant in InitParams()
|
Completed in 33 milliseconds