Home
last modified time | relevance | path

Searched refs:DCTELEM (Results 1 – 25 of 33) sorted by relevance

12

/external/opencv3/3rdparty/libjpeg/
Djfdctint.c158 jpeg_fdct_islow (DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col)
163 DCTELEM *dataptr;
196 dataptr[0] = (DCTELEM) ((tmp10 + tmp11 - 8 * CENTERJSAMPLE) << PASS1_BITS);
197 dataptr[4] = (DCTELEM) ((tmp10 - tmp11) << PASS1_BITS);
202 dataptr[2] = (DCTELEM) RIGHT_SHIFT(z1 + MULTIPLY(tmp12, FIX_0_765366865),
204 dataptr[6] = (DCTELEM) RIGHT_SHIFT(z1 - MULTIPLY(tmp13, FIX_1_847759065),
232 dataptr[1] = (DCTELEM)
234 dataptr[3] = (DCTELEM)
236 dataptr[5] = (DCTELEM)
238 dataptr[7] = (DCTELEM)
[all …]
Djdct.h35 typedef int DCTELEM; /* 16 or 32 bits is fine */ typedef
37 typedef INT32 DCTELEM; /* must have 32 bits */ typedef
40 typedef JMETHOD(void, forward_DCT_method_ptr, (DCTELEM * data,
166 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
168 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
172 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
174 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
176 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
178 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
180 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
[all …]
Djidctfst.c119 #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 …]
Djcdctmgr.c32 DCTELEM * divisors[NUM_QUANT_TBLS];
74 DCTELEM * divisors = fdct->divisors[compptr->quant_tbl_no]; in forward_DCT()
75 DCTELEM workspace[DCTSIZE2]; /* work area for FDCT subroutine */ in forward_DCT()
85 { register DCTELEM temp, qval; in forward_DCT()
187 DCTELEM * dtbl; in start_pass_fdctmgr()
364 fdct->divisors[qtblno] = (DCTELEM *) in start_pass_fdctmgr()
366 DCTSIZE2 * SIZEOF(DCTELEM)); in start_pass_fdctmgr()
370 dtbl[i] = ((DCTELEM) qtbl->quantval[i]) << 3; in start_pass_fdctmgr()
399 fdct->divisors[qtblno] = (DCTELEM *) in start_pass_fdctmgr()
401 DCTSIZE2 * SIZEOF(DCTELEM)); in start_pass_fdctmgr()
[all …]
Djfdctfst.c107 #define MULTIPLY(var,const) ((DCTELEM) DESCALE((var) * (const), CONST_BITS))
115 jpeg_fdct_ifast (DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col)
117 DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
118 DCTELEM tmp10, tmp11, tmp12, tmp13;
119 DCTELEM z1, z2, z3, z4, z5, z11, z13;
120 DCTELEM *dataptr;
/external/libjpeg-turbo/
Djcdctmgr.c27 typedef void (*forward_DCT_method_ptr) (DCTELEM * data);
32 DCTELEM * workspace);
37 typedef void (*quantize_method_ptr) (JCOEFPTR coef_block, DCTELEM * divisors,
38 DCTELEM * workspace);
43 METHODDEF(void) quantize (JCOEFPTR, DCTELEM *, DCTELEM *);
57 DCTELEM * divisors[NUM_QUANT_TBLS];
60 DCTELEM * workspace;
172 compute_reciprocal (UINT16 divisor, DCTELEM * dtbl) in compute_reciprocal()
184 dtbl[DCTSIZE2 * 0] = (DCTELEM) 1; /* reciprocal */ in compute_reciprocal()
185 dtbl[DCTSIZE2 * 1] = (DCTELEM) 0; /* correction */ in compute_reciprocal()
[all …]
Djidctfst.c119 #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 …]
Djfdctint.c142 jpeg_fdct_islow (DCTELEM * data)
147 DCTELEM *dataptr;
175 dataptr[0] = (DCTELEM) LEFT_SHIFT(tmp10 + tmp11, PASS1_BITS);
176 dataptr[4] = (DCTELEM) LEFT_SHIFT(tmp10 - tmp11, PASS1_BITS);
179 dataptr[2] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp13, FIX_0_765366865),
181 dataptr[6] = (DCTELEM) DESCALE(z1 + MULTIPLY(tmp12, - FIX_1_847759065),
207 dataptr[7] = (DCTELEM) DESCALE(tmp4 + z1 + z3, CONST_BITS-PASS1_BITS);
208 dataptr[5] = (DCTELEM) DESCALE(tmp5 + z2 + z4, CONST_BITS-PASS1_BITS);
209 dataptr[3] = (DCTELEM) DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS);
210 dataptr[1] = (DCTELEM) DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS);
[all …]
Djsimddct.h16 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);
Djfdctfst.c106 #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;
Djdct.h34 typedef int DCTELEM; /* 16 or 32 bits is fine */ typedef
38 typedef short DCTELEM; /* prefer 16 bit with SIMD for parellelism */ typedef
43 typedef INT32 DCTELEM; /* must have 32 bits */ typedef
92 EXTERN(void) jpeg_fdct_islow (DCTELEM * data);
93 EXTERN(void) jpeg_fdct_ifast (DCTELEM * data);
Djsimd_none.c232 DCTELEM * workspace) in jsimd_convsamp()
261 jsimd_fdct_islow (DCTELEM * data) in jsimd_fdct_islow()
266 jsimd_fdct_ifast (DCTELEM * data) in jsimd_fdct_ifast()
288 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
289 DCTELEM * workspace) in jsimd_quantize()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jidctfst.c119 #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 …]
Dfpdfapi_jfdctint.c140 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 …]
Dfpdfapi_jcdctmgr.c32 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 …]
Djdct.h30 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));
Dfpdfapi_jfdctfst.c106 #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/
Djsimd.h515 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM * workspace);
518 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM * workspace);
521 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM * workspace);
524 (JSAMPARRAY sample_data, JDIMENSION start_col, DCTELEM * workspace);
540 EXTERN(void) jsimd_fdct_islow_mmx (DCTELEM * data);
543 EXTERN(void) jsimd_fdct_islow_sse2 (DCTELEM * data);
545 EXTERN(void) jsimd_fdct_islow_mips_dspr2 (DCTELEM * data);
548 EXTERN(void) jsimd_fdct_ifast_mmx (DCTELEM * data);
551 EXTERN(void) jsimd_fdct_ifast_sse2 (DCTELEM * data);
553 EXTERN(void) jsimd_fdct_ifast_neon (DCTELEM * data);
[all …]
Djsimd_x86_64.c466 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp()
490 DCTELEM * workspace) in jsimd_convsamp()
508 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow()
523 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast()
548 jsimd_fdct_islow (DCTELEM * data) in jsimd_fdct_islow()
554 jsimd_fdct_ifast (DCTELEM * data) in jsimd_fdct_ifast()
573 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize()
594 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
595 DCTELEM * workspace) in jsimd_quantize()
Djsimd_arm.c439 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp()
458 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()
530 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize()
548 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
549 DCTELEM * workspace) in jsimd_quantize()
Djsimd_mips.c688 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp()
722 DCTELEM * workspace) in jsimd_convsamp()
744 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow()
761 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast()
779 jsimd_fdct_islow (DCTELEM * data) in jsimd_fdct_islow()
786 jsimd_fdct_ifast (DCTELEM * data) in jsimd_fdct_ifast()
807 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize()
840 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
841 DCTELEM * workspace) in jsimd_quantize()
1091 DCTELEM workspace[DCTSIZE2]; /* buffers data between passes */ in jsimd_idct_ifast()
Djsimd_arm64.c320 DCTELEM * workspace) in jsimd_convsamp()
355 jsimd_fdct_islow (DCTELEM * data) in jsimd_fdct_islow()
360 jsimd_fdct_ifast (DCTELEM * data) in jsimd_fdct_ifast()
386 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
387 DCTELEM * workspace) in jsimd_quantize()
Djsimdcfg.inc68 ; 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)
Djsimd_i386.c658 if (sizeof(DCTELEM) != 2) in jsimd_can_convsamp()
696 DCTELEM * workspace) in jsimd_convsamp()
724 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_islow()
743 if (sizeof(DCTELEM) != 2) in jsimd_can_fdct_ifast()
774 jsimd_fdct_islow (DCTELEM * data) in jsimd_fdct_islow()
783 jsimd_fdct_ifast (DCTELEM * data) in jsimd_fdct_ifast()
810 if (sizeof(DCTELEM) != 2) in jsimd_can_quantize()
845 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, in jsimd_quantize()
846 DCTELEM * workspace) in jsimd_quantize()
/external/libjpeg-turbo/win/
Djsimdcfg.inc68 ; 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)

12