/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jidctint.c | 91 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 93 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 98 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 104 #define PASS1_BITS 2 macro 107 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 191 /* furthermore, we scale the results by 2**PASS1_BITS. */ in jpeg_idct_islow() 212 quantptr[DCTSIZE * 0]), PASS1_BITS); in jpeg_idct_islow() 284 wsptr[DCTSIZE * 0] = (int)DESCALE(tmp10 + tmp3, CONST_BITS - PASS1_BITS); in jpeg_idct_islow() 285 wsptr[DCTSIZE * 7] = (int)DESCALE(tmp10 - tmp3, CONST_BITS - PASS1_BITS); in jpeg_idct_islow() 286 wsptr[DCTSIZE * 1] = (int)DESCALE(tmp11 + tmp2, CONST_BITS - PASS1_BITS); in jpeg_idct_islow() [all...] |
H A D | jfdctint.c | 69 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 71 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 76 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 82 #define PASS1_BITS 2 macro 85 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 154 /* furthermore, we scale the results by 2**PASS1_BITS. */ in jpeg_fdct_islow() 176 dataptr[0] = (DCTELEM)LEFT_SHIFT(tmp10 + tmp11, PASS1_BITS); in jpeg_fdct_islow() 177 dataptr[4] = (DCTELEM)LEFT_SHIFT(tmp10 - tmp11, PASS1_BITS); in jpeg_fdct_islow() 181 CONST_BITS - PASS1_BITS); in jpeg_fdct_islow() 183 CONST_BITS - PASS1_BITS); in jpeg_fdct_islow() [all...] |
H A D | jidctred.c | 47 #define PASS1_BITS 2 macro 50 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 150 quantptr[DCTSIZE * 0]), PASS1_BITS); 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() 214 PASS1_BITS + 3) & RANGE_MASK]; in jpeg_idct_4x4() 256 CONST_BITS + PASS1_BITS + 3 + 1) & in jpeg_idct_4x4() 259 CONST_BITS + PASS1_BITS in jpeg_idct_4x4() [all...] |
H A D | jidctfst.c | 65 * factors have been incorporated. We represent them scaled up by PASS1_BITS, 67 * For 8-bit JSAMPLEs, we choose IFAST_SCALE_BITS = PASS1_BITS so as to 81 #define PASS1_BITS 2 macro 84 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 135 DESCALE((coef) * (quantval), IFAST_SCALE_BITS - PASS1_BITS) 282 /* and also undo the PASS1_BITS scaling. */ in jpeg_idct_ifast() 300 range_limit[IDESCALE(wsptr[0], PASS1_BITS + 3) & RANGE_MASK]; in jpeg_idct_ifast() 351 range_limit[IDESCALE(tmp0 + tmp7, PASS1_BITS + 3) & RANGE_MASK]; in jpeg_idct_ifast() 353 range_limit[IDESCALE(tmp0 - tmp7, PASS1_BITS + 3) & RANGE_MASK]; in jpeg_idct_ifast() 355 range_limit[IDESCALE(tmp1 + tmp6, PASS1_BITS in jpeg_idct_ifast() [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+PASS1_BITS [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
H A D | jidctred-neon.c | 38 #define PASS1_BITS 2 macro 156 CONST_BITS + PASS1_BITS + 3 + 2 - 16); in jsimd_idct_2x2_neon() 240 int16x8_t dcval = vshlq_n_s16(row0, PASS1_BITS); in jsimd_idct_4x4_neon() 249 int16x4_t dcval = vshl_n_s16(vget_low_s16(row0), PASS1_BITS); in jsimd_idct_4x4_neon() 291 CONST_BITS - PASS1_BITS + 1)); in jsimd_idct_4x4_neon() 293 CONST_BITS - PASS1_BITS + 1)); in jsimd_idct_4x4_neon() 295 CONST_BITS - PASS1_BITS + 1)); in jsimd_idct_4x4_neon() 297 CONST_BITS - PASS1_BITS + 1)); in jsimd_idct_4x4_neon() 302 int16x4_t dcval = vshl_n_s16(vget_high_s16(row0), PASS1_BITS); in jsimd_idct_4x4_neon() 344 CONST_BITS - PASS1_BITS in jsimd_idct_4x4_neon() [all...] |
H A D | jfdctint-neon.c | 62 #define PASS1_BITS 2 macro 64 #define DESCALE_P1 (CONST_BITS - PASS1_BITS) 65 #define DESCALE_P2 (CONST_BITS + PASS1_BITS) 138 col0 = vshlq_n_s16(vaddq_s16(tmp10, tmp11), PASS1_BITS); in jsimd_fdct_islow_neon() 139 col4 = vshlq_n_s16(vsubq_s16(tmp10, tmp11), PASS1_BITS); in jsimd_fdct_islow_neon() 277 row0 = vrshrq_n_s16(vaddq_s16(tmp10, tmp11), PASS1_BITS); in jsimd_fdct_islow_neon() 278 row4 = vrshrq_n_s16(vsubq_s16(tmp10, tmp11), PASS1_BITS); in jsimd_fdct_islow_neon()
|
H A D | jidctfst-neon.c | 51 #define PASS1_BITS 2 macro 412 int8x16_t cols_01_s8 = vcombine_s8(vqshrn_n_s16(col0, PASS1_BITS + 3), in jsimd_idct_ifast_neon() 413 vqshrn_n_s16(col1, PASS1_BITS + 3)); in jsimd_idct_ifast_neon() 414 int8x16_t cols_45_s8 = vcombine_s8(vqshrn_n_s16(col4, PASS1_BITS + 3), in jsimd_idct_ifast_neon() 415 vqshrn_n_s16(col5, PASS1_BITS + 3)); in jsimd_idct_ifast_neon() 416 int8x16_t cols_23_s8 = vcombine_s8(vqshrn_n_s16(col2, PASS1_BITS + 3), in jsimd_idct_ifast_neon() 417 vqshrn_n_s16(col3, PASS1_BITS + 3)); in jsimd_idct_ifast_neon() 418 int8x16_t cols_67_s8 = vcombine_s8(vqshrn_n_s16(col6, PASS1_BITS + 3), in jsimd_idct_ifast_neon() 419 vqshrn_n_s16(col7, PASS1_BITS + 3)); in jsimd_idct_ifast_neon()
|
H A D | jidctint-neon.c | 39 #define PASS1_BITS 2 macro 41 #define DESCALE_P1 (CONST_BITS - PASS1_BITS) 42 #define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 233 int16x4_t dcval = vshl_n_s16(vmul_s16(row0, quant_row0), PASS1_BITS); in jsimd_idct_islow_neon() 291 int16x4_t dcval = vshl_n_s16(vmul_s16(row0, quant_row0), PASS1_BITS); in jsimd_idct_islow_neon()
|
/third_party/ffmpeg/libavcodec/ |
H A D | jfdctint_template.c | 107 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 109 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 114 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 119 #undef PASS1_BITS macro 124 #define PASS1_BITS 4 /* set this to 2 if 16x16 multiplies are faster */ macro 125 #define OUT_SHIFT PASS1_BITS 128 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ macro 129 #define OUT_SHIFT (PASS1_BITS + 1) 175 #if BITS_IN_JSAMPLE == 8 && CONST_BITS<=13 && PASS1_BITS<=2 192 /* furthermore, we scale the results by 2**PASS1_BITS in row_fdct() [all...] |
H A D | jrevdct.c | 120 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 122 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 127 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 132 #define PASS1_BITS 2 macro 134 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 226 /* furthermore, we scale the results by 2**PASS1_BITS. */ in ff_j_rev_dct() 257 int16_t dcval = (int16_t) (d0 * (1 << PASS1_BITS)); in ff_j_rev_dct() 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() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/simd/i386/ |
H A D | jidctfst-mmx.asm | 28 %define PASS1_BITS 2 30 %if IFAST_SCALE_BITS != PASS1_BITS 31 %error "'IFAST_SCALE_BITS' must be equal to 'PASS1_BITS'." 410 psraw mm6, (PASS1_BITS+3) ; descale 411 psraw mm7, (PASS1_BITS+3) ; descale 414 psraw mm1, (PASS1_BITS+3) ; descale 415 psraw mm5, (PASS1_BITS+3) ; descale 429 psraw mm3, (PASS1_BITS+3) ; descale 430 psraw mm0, (PASS1_BITS+3) ; descale 433 psraw mm5, (PASS1_BITS [all...] |
H A D | jidctfst-sse2.asm | 28 %define PASS1_BITS 2 30 %if IFAST_SCALE_BITS != PASS1_BITS 31 %error "'IFAST_SCALE_BITS' must be equal to 'PASS1_BITS'." 409 psraw xmm1, (PASS1_BITS+3) ; descale 410 psraw xmm3, (PASS1_BITS+3) ; descale 413 psraw xmm7, (PASS1_BITS+3) ; descale 414 psraw xmm4, (PASS1_BITS+3) ; descale 428 psraw xmm5, (PASS1_BITS+3) ; descale 429 psraw xmm6, (PASS1_BITS+3) ; descale 432 psraw xmm4, (PASS1_BITS [all...] |
H A D | jfdctint-avx2.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 127 vpsllw %1, %7, PASS1_BITS ; %1=data0_4 130 vpsraw %1, %7, PASS1_BITS ; %1=data0_4 241 PW_DESCALE_P2X times 16 dw 1 << (PASS1_BITS - 1)
|
H A D | jfdctint-mmx.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 81 PW_DESCALE_P2X times 4 dw 1 << (PASS1_BITS - 1) 206 psllw mm5, PASS1_BITS ; mm5=data0 207 psllw mm7, PASS1_BITS ; mm7=data4 450 psraw mm5, PASS1_BITS ; mm5=data0 451 psraw mm7, PASS1_BITS ; mm7=data4
|
H A D | jfdctint-sse2.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 81 PW_DESCALE_P2X times 8 dw 1 << (PASS1_BITS - 1) 223 psllw xmm3, PASS1_BITS ; xmm3=data0 224 psllw xmm1, PASS1_BITS ; xmm1=data4 469 psraw xmm7, PASS1_BITS ; xmm7=data0 470 psraw xmm5, PASS1_BITS ; xmm5=data4
|
H A D | jidctred-mmx.asm | 28 %define PASS1_BITS 2 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) 166 psllw mm0, PASS1_BITS
|
H A D | jidctred-sse2.asm | 28 %define PASS1_BITS 2 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) 162 psllw xmm0, PASS1_BITS
|
H A D | jidctint-avx2.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 344 vpsllw xmm5, xmm5, PASS1_BITS
|
H A D | jidctint-mmx.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 159 psllw mm0, PASS1_BITS
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/x86_64/ |
H A D | jidctfst-sse2.asm | 29 %define PASS1_BITS 2 31 %if IFAST_SCALE_BITS != PASS1_BITS 32 %error "'IFAST_SCALE_BITS' must be equal to 'PASS1_BITS'." 402 psraw xmm1, (PASS1_BITS+3) ; descale 403 psraw xmm3, (PASS1_BITS+3) ; descale 406 psraw xmm7, (PASS1_BITS+3) ; descale 407 psraw xmm4, (PASS1_BITS+3) ; descale 421 psraw xmm5, (PASS1_BITS+3) ; descale 422 psraw xmm6, (PASS1_BITS+3) ; descale 425 psraw xmm4, (PASS1_BITS [all...] |
H A D | jfdctint-avx2.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 127 vpsllw %1, %7, PASS1_BITS ; %1=data0_4 130 vpsraw %1, %7, PASS1_BITS ; %1=data0_4 241 PW_DESCALE_P2X times 16 dw 1 << (PASS1_BITS - 1)
|
H A D | jfdctint-sse2.asm | 28 %define PASS1_BITS 2 30 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 31 %define DESCALE_P2 (CONST_BITS + PASS1_BITS) 81 PW_DESCALE_P2X times 8 dw 1 << (PASS1_BITS - 1) 215 psllw xmm3, PASS1_BITS ; xmm3=data0 216 psllw xmm1, PASS1_BITS ; xmm1=data4 459 psraw xmm7, PASS1_BITS ; xmm7=data0 460 psraw xmm5, PASS1_BITS ; xmm5=data4
|
H A D | jidctint-avx2.asm | 29 %define PASS1_BITS 2 31 %define DESCALE_P1 (CONST_BITS - PASS1_BITS) 32 %define DESCALE_P2 (CONST_BITS + PASS1_BITS + 3) 317 vpsllw xmm5, xmm5, PASS1_BITS
|
H A D | jidctred-sse2.asm | 29 %define PASS1_BITS 2 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) 156 psllw xmm0, PASS1_BITS
|