/external/libjpeg-turbo/ |
D | jcdctmgr.c | 28 typedef void (*forward_DCT_method_ptr) (DCTELEM *data); 33 DCTELEM *workspace); 38 typedef void (*quantize_method_ptr) (JCOEFPTR coef_block, DCTELEM *divisors, 39 DCTELEM *workspace); 44 METHODDEF(void) quantize (JCOEFPTR, DCTELEM *, DCTELEM *); 58 DCTELEM *divisors[NUM_QUANT_TBLS]; 61 DCTELEM *workspace; 173 compute_reciprocal (UINT16 divisor, DCTELEM *dtbl) in compute_reciprocal() 185 dtbl[DCTSIZE2 * 0] = (DCTELEM) 1; /* reciprocal */ in compute_reciprocal() 186 dtbl[DCTSIZE2 * 1] = (DCTELEM) 0; /* correction */ in compute_reciprocal() [all …]
|
D | jidctfst.c | 122 #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS)) 144 #define ISHIFT_TEMPS DCTELEM ishift_temp; 152 (ishift_temp >> (shft)) | ((~((DCTELEM) 0)) << (DCTELEMBITS-(shft))) : \ 175 DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 176 DCTELEM tmp10, tmp11, tmp12, tmp13; 177 DCTELEM z5, z10, z11, z12, z13; 318 tmp10 = ((DCTELEM) wsptr[0] + (DCTELEM) wsptr[4]); 319 tmp11 = ((DCTELEM) wsptr[0] - (DCTELEM) wsptr[4]); 321 tmp13 = ((DCTELEM) wsptr[2] + (DCTELEM) wsptr[6]); 322 tmp12 = MULTIPLY((DCTELEM) wsptr[2] - (DCTELEM) wsptr[6], FIX_1_414213562) [all …]
|
D | jfdctint.c | 143 jpeg_fdct_islow (DCTELEM *data) 148 DCTELEM *dataptr; 176 dataptr[0] = (DCTELEM) LEFT_SHIFT(tmp10 + tmp11, PASS1_BITS); 177 dataptr[4] = (DCTELEM) LEFT_SHIFT(tmp10 - tmp11, PASS1_BITS); 180 dataptr[2] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp13, FIX_0_765366865), 182 dataptr[6] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp12, - FIX_1_847759065), 208 dataptr[7] = (DCTELEM) DESCALE(tmp4 + z1 + z3, CONST_BITS-PASS1_BITS); 209 dataptr[5] = (DCTELEM) DESCALE(tmp5 + z2 + z4, CONST_BITS-PASS1_BITS); 210 dataptr[3] = (DCTELEM) DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS); 211 dataptr[1] = (DCTELEM) DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS); [all …]
|
D | jsimddct.h | 16 DCTELEM *workspace); 25 EXTERN(void) jsimd_fdct_islow (DCTELEM *data); 26 EXTERN(void) jsimd_fdct_ifast (DCTELEM *data); 32 EXTERN(void) jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, 33 DCTELEM *workspace);
|
D | jfdctfst.c | 109 #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS)) 117 jpeg_fdct_ifast (DCTELEM *data) 119 DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 120 DCTELEM tmp10, tmp11, tmp12, tmp13; 121 DCTELEM z1, z2, z3, z4, z5, z11, z13; 122 DCTELEM *dataptr;
|
D | jdct.h | 35 typedef int DCTELEM; /* 16 or 32 bits is fine */ typedef 39 typedef short DCTELEM; /* prefer 16 bit with SIMD for parellelism */ typedef 44 typedef JLONG DCTELEM; /* must have 32 bits */ typedef 93 EXTERN(void) jpeg_fdct_islow (DCTELEM *data); 94 EXTERN(void) jpeg_fdct_ifast (DCTELEM *data);
|
D | jsimd_none.c | 234 DCTELEM *workspace) in jsimd_convsamp() 263 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 268 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 290 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 291 DCTELEM *workspace) in jsimd_quantize()
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jidctfst.c | 119 #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS)) 141 #define ISHIFT_TEMPS DCTELEM ishift_temp; 149 (ishift_temp >> (shft)) | ((~((DCTELEM) 0)) << (DCTELEMBITS-(shft))) : \ 172 DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 173 DCTELEM tmp10, tmp11, tmp12, tmp13; 174 DCTELEM z5, z10, z11, z12, z13; 315 tmp10 = ((DCTELEM) wsptr[0] + (DCTELEM) wsptr[4]); 316 tmp11 = ((DCTELEM) wsptr[0] - (DCTELEM) wsptr[4]); 318 tmp13 = ((DCTELEM) wsptr[2] + (DCTELEM) wsptr[6]); 319 tmp12 = MULTIPLY((DCTELEM) wsptr[2] - (DCTELEM) wsptr[6], FIX_1_414213562) [all …]
|
D | fpdfapi_jfdctint.c | 140 jpeg_fdct_islow (DCTELEM * data) 145 DCTELEM *dataptr; 173 dataptr[0] = (DCTELEM) ((tmp10 + tmp11) << PASS1_BITS); 174 dataptr[4] = (DCTELEM) ((tmp10 - tmp11) << PASS1_BITS); 177 dataptr[2] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp13, FIX_0_765366865), 179 dataptr[6] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp12, - FIX_1_847759065), 205 dataptr[7] = (DCTELEM) DESCALE(tmp4 + z1 + z3, CONST_BITS-PASS1_BITS); 206 dataptr[5] = (DCTELEM) DESCALE(tmp5 + z2 + z4, CONST_BITS-PASS1_BITS); 207 dataptr[3] = (DCTELEM) DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS); 208 dataptr[1] = (DCTELEM) DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS); [all …]
|
D | fpdfapi_jcdctmgr.c | 32 DCTELEM * divisors[NUM_QUANT_TBLS]; 60 DCTELEM * dtbl; in start_pass_fdctmgr() 79 fdct->divisors[qtblno] = (DCTELEM *) in start_pass_fdctmgr() 81 DCTSIZE2 * SIZEOF(DCTELEM)); in start_pass_fdctmgr() 85 dtbl[i] = ((DCTELEM) qtbl->quantval[i]) << 3; in start_pass_fdctmgr() 113 fdct->divisors[qtblno] = (DCTELEM *) in start_pass_fdctmgr() 115 DCTSIZE2 * SIZEOF(DCTELEM)); in start_pass_fdctmgr() 119 dtbl[i] = (DCTELEM) in start_pass_fdctmgr() 189 DCTELEM * divisors = fdct->divisors[compptr->quant_tbl_no]; in forward_DCT() 190 DCTELEM workspace[DCTSIZE2]; /* work area for FDCT subroutine */ in forward_DCT() [all …]
|
D | jdct.h | 30 typedef int DCTELEM; /* 16 or 32 bits is fine */ typedef 32 typedef INT32 DCTELEM; /* must have 32 bits */ typedef 35 typedef JMETHOD(void, forward_DCT_method_ptr, (DCTELEM * data)); 97 EXTERN(void) jpeg_fdct_islow JPP((DCTELEM * data)); 98 EXTERN(void) jpeg_fdct_ifast JPP((DCTELEM * data));
|
D | fpdfapi_jfdctfst.c | 106 #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS)) 114 jpeg_fdct_ifast (DCTELEM * data) 116 DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 117 DCTELEM tmp10, tmp11, tmp12, tmp13; 118 DCTELEM z1, z2, z3, z4, z5, z11, z13; 119 DCTELEM *dataptr;
|
/external/libjpeg-turbo/simd/ |
D | jsimd.h | 674 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM *workspace); 677 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM *workspace); 680 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM *workspace); 683 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM *workspace); 686 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM *workspace); 702 EXTERN(void) jsimd_fdct_islow_mmx (DCTELEM *data); 705 EXTERN(void) jsimd_fdct_islow_sse2 (DCTELEM *data); 707 EXTERN(void) jsimd_fdct_islow_neon (DCTELEM *data); 709 EXTERN(void) jsimd_fdct_islow_mips_dspr2 (DCTELEM *data); 711 EXTERN(void) jsimd_fdct_islow_altivec (DCTELEM *data); [all …]
|
D | jsimd_arm.c | 440 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 459 DCTELEM *workspace) in jsimd_convsamp() 486 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 504 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 509 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 529 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 547 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 548 DCTELEM *workspace) in jsimd_quantize()
|
D | jsimd_powerpc.c | 602 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 619 DCTELEM *workspace) in jsimd_convsamp() 638 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow() 655 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 671 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 677 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 697 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 713 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 714 DCTELEM *workspace) in jsimd_quantize()
|
D | jsimd_arm64.c | 501 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 520 DCTELEM *workspace) in jsimd_convsamp() 539 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow() 556 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 574 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 580 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 600 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 618 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 619 DCTELEM *workspace) in jsimd_quantize()
|
D | jsimd_x86_64.c | 537 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 569 DCTELEM *workspace) in jsimd_convsamp() 589 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow() 606 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 633 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 639 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 660 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 689 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 690 DCTELEM *workspace) in jsimd_quantize()
|
D | jsimd_mips.c | 697 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 731 DCTELEM *workspace) in jsimd_convsamp() 753 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow() 770 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 788 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 795 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 816 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 849 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 850 DCTELEM *workspace) in jsimd_quantize() 1100 DCTELEM workspace[DCTSIZE2]; /* buffers data between passes */ in jsimd_idct_ifast()
|
D | jsimdcfg.inc | 68 ; A forward DCT routine is given a pointer to a work area of type DCTELEM[]; 70 ; To maximize parallelism, Type DCTELEM is changed to short (originally, int). 72 %define DCTELEM word ; short 73 %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
|
D | jsimd_i386.c | 663 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp() 701 DCTELEM *workspace) in jsimd_convsamp() 729 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow() 748 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast() 779 jsimd_fdct_islow (DCTELEM *data) in jsimd_fdct_islow() 788 jsimd_fdct_ifast (DCTELEM *data) in jsimd_fdct_ifast() 815 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize() 850 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize() 851 DCTELEM *workspace) in jsimd_quantize()
|
D | jquanti-sse2-64.asm | 30 ; DCTELEM *workspace); 35 ; r12 = DCTELEM *workspace
|
D | jquanti-sse2.asm | 29 ; DCTELEM *workspace); 34 %define workspace ebp+16 ; DCTELEM *workspace
|
D | jquant-mmx.asm | 29 ; DCTELEM *workspace); 34 %define workspace ebp+16 ; DCTELEM *workspace
|
D | jquanti-altivec.c | 53 DCTELEM *workspace) in jsimd_convsamp_altivec() 118 jsimd_quantize_altivec (JCOEFPTR coef_block, DCTELEM *divisors, in jsimd_quantize_altivec() 119 DCTELEM *workspace) in jsimd_quantize_altivec()
|
/external/libjpeg-turbo/win/ |
D | jsimdcfg.inc | 68 ; A forward DCT routine is given a pointer to a work area of type DCTELEM[]; 70 ; To maximize parallelism, Type DCTELEM is changed to short (originally, int). 72 %define DCTELEM word ; short 73 %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
|