/external/opencv3/3rdparty/libjpeg/ |
D | jfdctint.c | 56 #if DCTSIZE != 8 173 for (ctr = 0; ctr < DCTSIZE; ctr++) { 241 dataptr += DCTSIZE; /* advance pointer to next row */ 250 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 255 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 256 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 257 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 258 tmp3 = dataptr[DCTSIZE*3] + dataptr[DCTSIZE*4]; 266 tmp0 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 267 tmp1 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; [all …]
|
D | jidctflt.c | 52 #if DCTSIZE != 8 89 for (ctr = DCTSIZE; ctr > 0; ctr--) { 99 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 100 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 101 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 102 inptr[DCTSIZE*7] == 0) { 104 FAST_FLOAT dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); 106 wsptr[DCTSIZE*0] = dcval; 107 wsptr[DCTSIZE*1] = dcval; 108 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | jidctfst.c | 47 #if DCTSIZE != 8 190 for (ctr = DCTSIZE; ctr > 0; ctr--) { 200 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 201 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 202 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 203 inptr[DCTSIZE*7] == 0) { 205 int dcval = (int) DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); 207 wsptr[DCTSIZE*0] = dcval; 208 wsptr[DCTSIZE*1] = dcval; 209 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | jfdctflt.c | 50 #if DCTSIZE != 8 72 for (ctr = 0; ctr < DCTSIZE; ctr++) { 120 dataptr += DCTSIZE; /* advance pointer to next row */ 126 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 127 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 128 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 129 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 130 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 131 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 132 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | jfdctfst.c | 46 #if DCTSIZE != 8 128 for (ctr = 0; ctr < DCTSIZE; ctr++) { 176 dataptr += DCTSIZE; /* advance pointer to next row */ 182 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 183 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 184 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 185 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 186 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 187 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 188 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | jidctint.c | 63 #if DCTSIZE != 8 194 for (ctr = DCTSIZE; ctr > 0; ctr--) { 204 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 205 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 206 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 207 inptr[DCTSIZE*7] == 0) { 209 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS; 211 wsptr[DCTSIZE*0] = dcval; 212 wsptr[DCTSIZE*1] = dcval; 213 wsptr[DCTSIZE*2] = dcval; [all …]
|
/external/libjpeg-turbo/ |
D | jidctred.c | 37 #if DCTSIZE != 8 132 int workspace[DCTSIZE*4]; /* buffers data between passes */ 140 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { 142 if (ctr == DCTSIZE-4) 144 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 145 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*5] == 0 && 146 inptr[DCTSIZE*6] == 0 && inptr[DCTSIZE*7] == 0) { 148 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]), 151 wsptr[DCTSIZE*0] = dcval; 152 wsptr[DCTSIZE*1] = dcval; [all …]
|
D | jidctflt.c | 54 #if DCTSIZE != 8 92 for (ctr = DCTSIZE; ctr > 0; ctr--) { 102 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 103 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 104 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 105 inptr[DCTSIZE*7] == 0) { 107 FAST_FLOAT dcval = DEQUANTIZE(inptr[DCTSIZE*0], 108 quantptr[DCTSIZE*0] * _0_125); 110 wsptr[DCTSIZE*0] = dcval; 111 wsptr[DCTSIZE*1] = dcval; [all …]
|
D | jidctfst.c | 47 #if DCTSIZE != 8 190 for (ctr = DCTSIZE; ctr > 0; ctr--) { 200 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 201 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 202 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 203 inptr[DCTSIZE*7] == 0) { 205 int dcval = (int) DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); 207 wsptr[DCTSIZE*0] = dcval; 208 wsptr[DCTSIZE*1] = dcval; 209 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | jfdctflt.c | 49 #if DCTSIZE != 8 70 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 114 dataptr += DCTSIZE; /* advance pointer to next row */ 120 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 121 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 122 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 123 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 124 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 125 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 126 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | jfdctfst.c | 45 #if DCTSIZE != 8 126 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 170 dataptr += DCTSIZE; /* advance pointer to next row */ 176 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 177 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 178 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 179 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 180 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 181 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 182 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | jfdctint.c | 40 #if DCTSIZE != 8 156 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 212 dataptr += DCTSIZE; /* advance pointer to next row */ 221 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 222 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 223 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 224 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 225 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 226 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 227 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | jdmaster.c | 101 if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom) { in jpeg_core_output_dimensions() 104 jdiv_round_up((long) cinfo->image_width, (long) DCTSIZE); in jpeg_core_output_dimensions() 106 jdiv_round_up((long) cinfo->image_height, (long) DCTSIZE); in jpeg_core_output_dimensions() 109 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 2) { in jpeg_core_output_dimensions() 112 jdiv_round_up((long) cinfo->image_width * 2L, (long) DCTSIZE); in jpeg_core_output_dimensions() 114 jdiv_round_up((long) cinfo->image_height * 2L, (long) DCTSIZE); in jpeg_core_output_dimensions() 117 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 3) { in jpeg_core_output_dimensions() 120 jdiv_round_up((long) cinfo->image_width * 3L, (long) DCTSIZE); in jpeg_core_output_dimensions() 122 jdiv_round_up((long) cinfo->image_height * 3L, (long) DCTSIZE); in jpeg_core_output_dimensions() 125 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 4) { in jpeg_core_output_dimensions() [all …]
|
D | jidctint.c | 64 #if DCTSIZE != 8 195 for (ctr = DCTSIZE; ctr > 0; ctr--) { 205 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 206 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 207 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 208 inptr[DCTSIZE*7] == 0) { 210 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]), 213 wsptr[DCTSIZE*0] = dcval; 214 wsptr[DCTSIZE*1] = dcval; 215 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | transupp.c | 33 #define dstinfo_min_DCT_h_scaled_size DCTSIZE 34 #define dstinfo_min_DCT_v_scaled_size DCTSIZE 316 for (i = 0; i < DCTSIZE; i += 2) { in do_flip_v() 318 for (j = 0; j < DCTSIZE; j++) in do_flip_v() 321 for (j = 0; j < DCTSIZE; j++) in do_flip_v() 374 for (i = 0; i < DCTSIZE; i++) in do_transpose() 375 for (j = 0; j < DCTSIZE; j++) in do_transpose() 376 dst_ptr[j*DCTSIZE+i] = src_ptr[i*DCTSIZE+j]; in do_transpose() 443 for (i = 0; i < DCTSIZE; i++) { in do_rot_90() 444 for (j = 0; j < DCTSIZE; j++) in do_rot_90() [all …]
|
D | jdinput.c | 79 cinfo->block_size = DCTSIZE; in initial_setup() 89 cinfo->min_DCT_h_scaled_size = cinfo->min_DCT_v_scaled_size = DCTSIZE; in initial_setup() 91 cinfo->min_DCT_scaled_size = DCTSIZE; in initial_setup() 98 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup() 100 compptr->DCT_scaled_size = DCTSIZE; in initial_setup() 105 (long) (cinfo->max_h_samp_factor * DCTSIZE)); in initial_setup() 108 (long) (cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 134 (long) (cinfo->max_v_samp_factor*DCTSIZE)); in initial_setup() 188 (long) (cinfo->max_h_samp_factor*DCTSIZE)); in per_scan_setup() 191 (long) (cinfo->max_v_samp_factor*DCTSIZE)); in per_scan_setup()
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jidctred.c | 35 #if DCTSIZE != 8 130 int workspace[DCTSIZE*4]; /* buffers data between passes */ 138 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { 140 if (ctr == DCTSIZE-4) 142 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 143 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*5] == 0 && 144 inptr[DCTSIZE*6] == 0 && inptr[DCTSIZE*7] == 0) { 146 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS; 148 wsptr[DCTSIZE*0] = dcval; 149 wsptr[DCTSIZE*1] = dcval; [all …]
|
D | fpdfapi_jidctfst.c | 47 #if DCTSIZE != 8 190 for (ctr = DCTSIZE; ctr > 0; ctr--) { 200 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 201 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 202 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 203 inptr[DCTSIZE*7] == 0) { 205 int dcval = (int) DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); 207 wsptr[DCTSIZE*0] = dcval; 208 wsptr[DCTSIZE*1] = dcval; 209 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | fpdfapi_jidctint.c | 40 #if DCTSIZE != 8 171 for (ctr = DCTSIZE; ctr > 0; ctr--) { 181 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && 182 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && 183 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && 184 inptr[DCTSIZE*7] == 0) { 186 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS; 188 wsptr[DCTSIZE*0] = dcval; 189 wsptr[DCTSIZE*1] = dcval; 190 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | fpdfapi_jfdctfst.c | 45 #if DCTSIZE != 8 126 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 170 dataptr += DCTSIZE; /* advance pointer to next row */ 176 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 177 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 178 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 179 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 180 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 181 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 182 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | fpdfapi_jfdctint.c | 38 #if DCTSIZE != 8 154 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 210 dataptr += DCTSIZE; /* advance pointer to next row */ 219 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 220 tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7]; 221 tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7]; 222 tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6]; 223 tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6]; 224 tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5]; 225 tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5]; [all …]
|
D | fpdfapi_jcmainct.c | 121 if (main->rowgroup_ctr < DCTSIZE) in process_data_simple_main() 125 (JDIMENSION) DCTSIZE); in process_data_simple_main() 131 if (main->rowgroup_ctr != DCTSIZE) in process_data_simple_main() 185 main->cur_iMCU_row * (compptr->v_samp_factor * DCTSIZE), in process_data_buffer_main() 186 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE), writing); in process_data_buffer_main() 190 *in_row_ctr += cinfo->max_v_samp_factor * DCTSIZE; in process_data_buffer_main() 191 main->rowgroup_ctr = DCTSIZE; in process_data_buffer_main() 201 (JDIMENSION) DCTSIZE); in process_data_buffer_main() 203 if (main->rowgroup_ctr < DCTSIZE) in process_data_buffer_main() 272 compptr->width_in_blocks * DCTSIZE, in jinit_c_main_controller() [all …]
|
D | fpdfapi_jcdctmgr.c | 140 static const double aanscalefactor[DCTSIZE] = { in start_pass_fdctmgr() 152 for (row = 0; row < DCTSIZE; row++) { in start_pass_fdctmgr() 153 for (col = 0; col < DCTSIZE; col++) { in start_pass_fdctmgr() 195 for (bi = 0; bi < num_blocks; bi++, start_col += DCTSIZE) { in forward_DCT() 202 for (elemr = 0; elemr < DCTSIZE; elemr++) { in forward_DCT() 204 #if DCTSIZE == 8 /* unroll the inner loop */ in forward_DCT() 215 for (elemc = DCTSIZE; elemc > 0; elemc--) { in forward_DCT() 285 for (bi = 0; bi < num_blocks; bi++, start_col += DCTSIZE) { in forward_DCT_float() 292 for (elemr = 0; elemr < DCTSIZE; elemr++) { in forward_DCT_float() 294 #if DCTSIZE == 8 /* unroll the inner loop */ in forward_DCT_float() [all …]
|
/external/skia/src/codec/ |
D | SkJpegCodec.cpp | 547 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported() 608 sizeInfo->fYWidthBytes = dinfo->comp_info[0].width_in_blocks * DCTSIZE; in onQueryYUV8() 609 sizeInfo->fUWidthBytes = dinfo->comp_info[1].width_in_blocks * DCTSIZE; in onQueryYUV8() 610 sizeInfo->fVWidthBytes = dinfo->comp_info[2].width_in_blocks * DCTSIZE; in onQueryYUV8() 664 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE]; in onGetYUV8Planes() 666 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE) in onGetYUV8Planes() 667 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE) in onGetYUV8Planes() 670 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor; in onGetYUV8Planes() 674 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes() 675 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[1], i * sizeInfo.fUWidthBytes); in onGetYUV8Planes() [all …]
|
/external/libjpeg-turbo/simd/ |
D | jsimd_x86_64.c | 460 if (DCTSIZE != 8) in jsimd_can_convsamp() 476 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 506 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 521 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 536 if (DCTSIZE != 8) in jsimd_can_fdct_float() 569 if (DCTSIZE != 8) in jsimd_can_quantize() 583 if (DCTSIZE != 8) in jsimd_can_quantize_float() 611 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 632 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 669 if (DCTSIZE != 8) in jsimd_can_idct_islow() [all …]
|