/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jidctint.c | 84 * CONST_BITS bits of precision in the constants). After doing a 87 * cheaply as a right shift of CONST_BITS bits. We postpone shifting 98 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 103 #define CONST_BITS 13 macro 106 #define CONST_BITS 13 113 * If you change CONST_BITS you may want to add appropriate values. 117 #if CONST_BITS == 13 242 tmp0 = LEFT_SHIFT(z2 + z3, CONST_BITS); in jpeg_idct_islow() 243 tmp1 = LEFT_SHIFT(z2 - z3, CONST_BITS); in jpeg_idct_islow() 284 wsptr[DCTSIZE * 0] = (int)DESCALE(tmp10 + tmp3, CONST_BITS in jpeg_idct_islow() [all...] |
H A D | jidctred.c | 46 #define CONST_BITS 13 macro 49 #define CONST_BITS 13 56 * If you change CONST_BITS you may want to add appropriate values. 60 #if CONST_BITS == 13 163 tmp0 = LEFT_SHIFT(tmp0, CONST_BITS + 1); in jpeg_idct_4x4() 193 (int)DESCALE(tmp10 + tmp2, CONST_BITS - PASS1_BITS + 1); in jpeg_idct_4x4() 195 (int)DESCALE(tmp10 - tmp2, CONST_BITS - PASS1_BITS + 1); in jpeg_idct_4x4() 197 (int)DESCALE(tmp12 + tmp0, CONST_BITS - PASS1_BITS + 1); in jpeg_idct_4x4() 199 (int)DESCALE(tmp12 - tmp0, CONST_BITS - PASS1_BITS + 1); in jpeg_idct_4x4() 228 tmp0 = LEFT_SHIFT((JLONG)wsptr[0], CONST_BITS in jpeg_idct_4x4() [all...] |
H A D | jfdctint.c | 62 * CONST_BITS bits of precision in the constants). After doing a 65 * cheaply as a right shift of CONST_BITS bits. We postpone shifting 76 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 81 #define CONST_BITS 13 macro 84 #define CONST_BITS 13 91 * If you change CONST_BITS you may want to add appropriate values. 95 #if CONST_BITS == 13 181 CONST_BITS - PASS1_BITS); in jpeg_fdct_islow() 183 CONST_BITS - PASS1_BITS); in jpeg_fdct_islow() 208 dataptr[7] = (DCTELEM)DESCALE(tmp4 + z1 + z3, CONST_BITS in jpeg_fdct_islow() [all...] |
H A D | jfdctfst.c | 71 #define CONST_BITS 8 macro 77 * If you change CONST_BITS you may want to add appropriate values. 81 #if CONST_BITS == 8 109 #define MULTIPLY(var, const) ((DCTELEM)DESCALE((var) * (const), CONST_BITS))
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
H A D | jidctred-neon.c | 37 #define CONST_BITS 13 macro 110 int32x4_t tmp10_l = vshll_n_s16(vget_low_s16(row0), CONST_BITS + 2); in jsimd_idct_2x2_neon() 111 int32x4_t tmp10_h = vshll_n_s16(vget_high_s16(row0), CONST_BITS + 2); in jsimd_idct_2x2_neon() 124 row0 = vcombine_s16(vrshrn_n_s32(vaddq_s32(tmp10_l, tmp0_l), CONST_BITS), in jsimd_idct_2x2_neon() 125 vrshrn_n_s32(vaddq_s32(tmp10_h, tmp0_h), CONST_BITS)); in jsimd_idct_2x2_neon() 126 row1 = vcombine_s16(vrshrn_n_s32(vsubq_s32(tmp10_l, tmp0_l), CONST_BITS), in jsimd_idct_2x2_neon() 127 vrshrn_n_s32(vsubq_s32(tmp10_h, tmp0_h), CONST_BITS)); in jsimd_idct_2x2_neon() 144 int32x4_t tmp10 = vshll_n_s16(vget_low_s16(cols_0246), CONST_BITS + 2); in jsimd_idct_2x2_neon() 156 CONST_BITS + PASS1_BITS + 3 + 2 - 16); in jsimd_idct_2x2_neon() 262 int32x4_t tmp0 = vshll_n_s16(vget_high_s16(row0), CONST_BITS in jsimd_idct_4x4_neon() [all...] |
H A D | jidctint-neon.c | 38 #define CONST_BITS 13 macro 41 #define DESCALE_P1 (CONST_BITS - PASS1_BITS) 42 #define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 379 int32x4_t tmp0 = vshll_n_s16(vadd_s16(z2_s16, z3_s16), CONST_BITS); in jsimd_idct_islow_pass1_regular() 380 int32x4_t tmp1 = vshll_n_s16(vsub_s16(z2_s16, z3_s16), CONST_BITS); in jsimd_idct_islow_pass1_regular() 501 int32x4_t tmp0 = vshll_n_s16(z2_s16, CONST_BITS); in jsimd_idct_islow_pass1_sparse() 502 int32x4_t tmp1 = vshll_n_s16(z2_s16, CONST_BITS); in jsimd_idct_islow_pass1_sparse() 590 int32x4_t tmp0 = vshll_n_s16(vadd_s16(z2_s16, z3_s16), CONST_BITS); in jsimd_idct_islow_pass2_regular() 591 int32x4_t tmp1 = vshll_n_s16(vsub_s16(z2_s16, z3_s16), CONST_BITS); in jsimd_idct_islow_pass2_regular() 732 int32x4_t tmp0 = vshll_n_s16(z2_s16, CONST_BITS); in jsimd_idct_islow_pass2_sparse() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | jfdctint_template.c | 100 * CONST_BITS bits of precision in the constants). After doing a 103 * cheaply as a right shift of CONST_BITS bits. We postpone shifting 114 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 118 #undef CONST_BITS macro 123 #define CONST_BITS 13 macro 127 #define CONST_BITS 13 macro 135 * If you change CONST_BITS you may want to add appropriate values. 139 #if CONST_BITS == 13 175 #if BITS_IN_JSAMPLE == 8 && CONST_BITS<=13 && PASS1_BITS<=2 219 CONST_BITS in row_fdct() [all...] |
H A D | jrevdct.c | 84 #define CONST_BITS 13 macro 113 * CONST_BITS bits of precision in the constants). After doing a 116 * cheaply as a right shift of CONST_BITS bits. We postpone shifting 127 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 139 #define CONST_SCALE (ONE << CONST_BITS) 582 dataptr[0] = (int16_t) DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS); in ff_j_rev_dct() 583 dataptr[7] = (int16_t) DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS); in ff_j_rev_dct() 584 dataptr[1] = (int16_t) DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS); in ff_j_rev_dct() 585 dataptr[6] = (int16_t) DESCALE(tmp11 - tmp2, CONST_BITS-PASS1_BITS); in ff_j_rev_dct() 586 dataptr[2] = (int16_t) DESCALE(tmp12 + tmp1, CONST_BITS in ff_j_rev_dct() 1160 #undef CONST_BITS global() macro [all...] |
/third_party/ffmpeg/libavcodec/arm/ |
H A D | jrevdct_arm.S | 137 @ Compute DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS) 143 @ Compute DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS) 149 @ Compute DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS) 155 @ Compute DESCALE(tmp11 - tmp2, CONST_BITS-PASS1_BITS) 161 @ Compute DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS) 167 @ Compute DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS) 173 @ Compute DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS) 179 @ Compute DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS) 276 @ Compute DESCALE(tmp10 + tmp3, CONST_BITS+PASS1_BITS+3) 282 @ Compute DESCALE(tmp10 - tmp3, CONST_BITS [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/simd/x86_64/ |
H A D | jidctint-avx2.asm | 28 %define CONST_BITS 13 31 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 32 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 34 %if CONST_BITS == 13 50 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 51 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 52 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 53 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 54 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 55 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jfdctint-avx2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctred-sse2.asm | 28 %define CONST_BITS 13 31 %define DESCALE_P1_4 (CONST_BITS - PASS1_BITS + 1) 32 %define DESCALE_P2_4 (CONST_BITS + PASS1_BITS + 3 + 1) 33 %define DESCALE_P1_2 (CONST_BITS - PASS1_BITS + 2) 34 %define DESCALE_P2_2 (CONST_BITS + PASS1_BITS + 3 + 2) 36 %if CONST_BITS == 13 54 F_0_211 equ DESCALE( 226735879, 30 - CONST_BITS) ; FIX(0.211164243) 55 F_0_509 equ DESCALE( 547388834, 30 - CONST_BITS) ; FIX(0.509795579) 56 F_0_601 equ DESCALE( 645689155, 30 - CONST_BITS) ; FIX(0.601344887) 57 F_0_720 equ DESCALE( 774124714, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctint-sse2.asm | 28 %define CONST_BITS 13 31 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 32 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 34 %if CONST_BITS == 13 50 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 51 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 52 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 53 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 54 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 55 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jfdctint-sse2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctfst-sse2.asm | 28 %define CONST_BITS 8 ; 14 is also OK. 35 %if CONST_BITS == 8 44 F_1_082 equ DESCALE(1162209775, 30 - CONST_BITS) ; FIX(1.082392200) 45 F_1_414 equ DESCALE(1518500249, 30 - CONST_BITS) ; FIX(1.414213562) 46 F_1_847 equ DESCALE(1984016188, 30 - CONST_BITS) ; FIX(1.847759065) 47 F_2_613 equ DESCALE(2805822602, 30 - CONST_BITS) ; FIX(2.613125930) 48 F_1_613 equ (F_2_613 - (1 << CONST_BITS)) ; FIX(2.613125930) - FIX(1) 55 ; CONST_BITS + CONST_SHIFT + PRE_MULTIPLY_SCALE_BITS == 16 (for pmulhw) 58 %define CONST_SHIFT (16 - PRE_MULTIPLY_SCALE_BITS - CONST_BITS)
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/i386/ |
H A D | jfdctint-avx2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctred-mmx.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1_4 (CONST_BITS - PASS1_BITS + 1) 31 %define DESCALE_P2_4 (CONST_BITS + PASS1_BITS + 3 + 1) 32 %define DESCALE_P1_2 (CONST_BITS - PASS1_BITS + 2) 33 %define DESCALE_P2_2 (CONST_BITS + PASS1_BITS + 3 + 2) 35 %if CONST_BITS == 13 53 F_0_211 equ DESCALE( 226735879, 30 - CONST_BITS) ; FIX(0.211164243) 54 F_0_509 equ DESCALE( 547388834, 30 - CONST_BITS) ; FIX(0.509795579) 55 F_0_601 equ DESCALE( 645689155, 30 - CONST_BITS) ; FIX(0.601344887) 56 F_0_720 equ DESCALE( 774124714, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctred-sse2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1_4 (CONST_BITS - PASS1_BITS + 1) 31 %define DESCALE_P2_4 (CONST_BITS + PASS1_BITS + 3 + 1) 32 %define DESCALE_P1_2 (CONST_BITS - PASS1_BITS + 2) 33 %define DESCALE_P2_2 (CONST_BITS + PASS1_BITS + 3 + 2) 35 %if CONST_BITS == 13 53 F_0_211 equ DESCALE( 226735879, 30 - CONST_BITS) ; FIX(0.211164243) 54 F_0_509 equ DESCALE( 547388834, 30 - CONST_BITS) ; FIX(0.509795579) 55 F_0_601 equ DESCALE( 645689155, 30 - CONST_BITS) ; FIX(0.601344887) 56 F_0_720 equ DESCALE( 774124714, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctint-avx2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctint-mmx.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctint-sse2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jfdctint-mmx.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jfdctint-sse2.asm | 27 %define CONST_BITS 13 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 33 %if CONST_BITS == 13 49 F_0_298 equ DESCALE( 320652955, 30 - CONST_BITS) ; FIX(0.298631336) 50 F_0_390 equ DESCALE( 418953276, 30 - CONST_BITS) ; FIX(0.390180644) 51 F_0_541 equ DESCALE( 581104887, 30 - CONST_BITS) ; FIX(0.541196100) 52 F_0_765 equ DESCALE( 821806413, 30 - CONST_BITS) ; FIX(0.765366865) 53 F_0_899 equ DESCALE( 966342111, 30 - CONST_BITS) ; FIX(0.899976223) 54 F_1_175 equ DESCALE(1262586813, 30 - CONST_BITS) ; FI [all...] |
H A D | jidctfst-mmx.asm | 27 %define CONST_BITS 8 ; 14 is also OK. 34 %if CONST_BITS == 8 43 F_1_082 equ DESCALE(1162209775, 30 - CONST_BITS) ; FIX(1.082392200) 44 F_1_414 equ DESCALE(1518500249, 30 - CONST_BITS) ; FIX(1.414213562) 45 F_1_847 equ DESCALE(1984016188, 30 - CONST_BITS) ; FIX(1.847759065) 46 F_2_613 equ DESCALE(2805822602, 30 - CONST_BITS) ; FIX(2.613125930) 47 F_1_613 equ (F_2_613 - (1 << CONST_BITS)) ; FIX(2.613125930) - FIX(1) 54 ; CONST_BITS + CONST_SHIFT + PRE_MULTIPLY_SCALE_BITS == 16 (for pmulhw) 57 %define CONST_SHIFT (16 - PRE_MULTIPLY_SCALE_BITS - CONST_BITS)
|
H A D | jidctfst-sse2.asm | 27 %define CONST_BITS 8 ; 14 is also OK. 34 %if CONST_BITS == 8 43 F_1_082 equ DESCALE(1162209775, 30 - CONST_BITS) ; FIX(1.082392200) 44 F_1_414 equ DESCALE(1518500249, 30 - CONST_BITS) ; FIX(1.414213562) 45 F_1_847 equ DESCALE(1984016188, 30 - CONST_BITS) ; FIX(1.847759065) 46 F_2_613 equ DESCALE(2805822602, 30 - CONST_BITS) ; FIX(2.613125930) 47 F_1_613 equ (F_2_613 - (1 << CONST_BITS)) ; FIX(2.613125930) - FIX(1) 54 ; CONST_BITS + CONST_SHIFT + PRE_MULTIPLY_SCALE_BITS == 16 (for pmulhw) 57 %define CONST_SHIFT (16 - PRE_MULTIPLY_SCALE_BITS - CONST_BITS)
|