/external/libjpeg-turbo/ |
D | jidctred.c | 38 #if DCTSIZE != 8 133 int workspace[DCTSIZE * 4]; /* buffers data between passes */ 141 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) { 143 if (ctr == DCTSIZE - 4) 145 if (inptr[DCTSIZE * 1] == 0 && inptr[DCTSIZE * 2] == 0 && 146 inptr[DCTSIZE * 3] == 0 && inptr[DCTSIZE * 5] == 0 && 147 inptr[DCTSIZE * 6] == 0 && inptr[DCTSIZE * 7] == 0) { 149 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE * 0], 150 quantptr[DCTSIZE * 0]), PASS1_BITS); 152 wsptr[DCTSIZE * 0] = dcval; [all …]
|
D | jidctflt.c | 55 #if DCTSIZE != 8 93 for (ctr = DCTSIZE; ctr > 0; ctr--) { 103 if (inptr[DCTSIZE * 1] == 0 && inptr[DCTSIZE * 2] == 0 && 104 inptr[DCTSIZE * 3] == 0 && inptr[DCTSIZE * 4] == 0 && 105 inptr[DCTSIZE * 5] == 0 && inptr[DCTSIZE * 6] == 0 && 106 inptr[DCTSIZE * 7] == 0) { 108 FAST_FLOAT dcval = DEQUANTIZE(inptr[DCTSIZE * 0], 109 quantptr[DCTSIZE * 0] * _0_125); 111 wsptr[DCTSIZE * 0] = dcval; 112 wsptr[DCTSIZE * 1] = dcval; [all …]
|
D | jidctfst.c | 50 #if DCTSIZE != 8 193 for (ctr = DCTSIZE; ctr > 0; ctr--) { 203 if (inptr[DCTSIZE * 1] == 0 && inptr[DCTSIZE * 2] == 0 && 204 inptr[DCTSIZE * 3] == 0 && inptr[DCTSIZE * 4] == 0 && 205 inptr[DCTSIZE * 5] == 0 && inptr[DCTSIZE * 6] == 0 && 206 inptr[DCTSIZE * 7] == 0) { 208 int dcval = (int)DEQUANTIZE(inptr[DCTSIZE * 0], quantptr[DCTSIZE * 0]); 210 wsptr[DCTSIZE * 0] = dcval; 211 wsptr[DCTSIZE * 1] = dcval; 212 wsptr[DCTSIZE * 2] = dcval; [all …]
|
D | jfdctflt.c | 50 #if DCTSIZE != 8 71 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 115 dataptr += DCTSIZE; /* advance pointer to next row */ 121 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 122 tmp0 = dataptr[DCTSIZE * 0] + dataptr[DCTSIZE * 7]; 123 tmp7 = dataptr[DCTSIZE * 0] - dataptr[DCTSIZE * 7]; 124 tmp1 = dataptr[DCTSIZE * 1] + dataptr[DCTSIZE * 6]; 125 tmp6 = dataptr[DCTSIZE * 1] - dataptr[DCTSIZE * 6]; 126 tmp2 = dataptr[DCTSIZE * 2] + dataptr[DCTSIZE * 5]; 127 tmp5 = dataptr[DCTSIZE * 2] - dataptr[DCTSIZE * 5]; [all …]
|
D | jfdctfst.c | 48 #if DCTSIZE != 8 129 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 173 dataptr += DCTSIZE; /* advance pointer to next row */ 179 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 180 tmp0 = dataptr[DCTSIZE * 0] + dataptr[DCTSIZE * 7]; 181 tmp7 = dataptr[DCTSIZE * 0] - dataptr[DCTSIZE * 7]; 182 tmp1 = dataptr[DCTSIZE * 1] + dataptr[DCTSIZE * 6]; 183 tmp6 = dataptr[DCTSIZE * 1] - dataptr[DCTSIZE * 6]; 184 tmp2 = dataptr[DCTSIZE * 2] + dataptr[DCTSIZE * 5]; 185 tmp5 = dataptr[DCTSIZE * 2] - dataptr[DCTSIZE * 5]; [all …]
|
D | jfdctint.c | 41 #if DCTSIZE != 8 157 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 213 dataptr += DCTSIZE; /* advance pointer to next row */ 222 for (ctr = DCTSIZE - 1; ctr >= 0; ctr--) { 223 tmp0 = dataptr[DCTSIZE * 0] + dataptr[DCTSIZE * 7]; 224 tmp7 = dataptr[DCTSIZE * 0] - dataptr[DCTSIZE * 7]; 225 tmp1 = dataptr[DCTSIZE * 1] + dataptr[DCTSIZE * 6]; 226 tmp6 = dataptr[DCTSIZE * 1] - dataptr[DCTSIZE * 6]; 227 tmp2 = dataptr[DCTSIZE * 2] + dataptr[DCTSIZE * 5]; 228 tmp5 = dataptr[DCTSIZE * 2] - dataptr[DCTSIZE * 5]; [all …]
|
D | jdmaster.c | 113 if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom) { in jpeg_core_output_dimensions() 116 jdiv_round_up((long)cinfo->image_width, (long)DCTSIZE); in jpeg_core_output_dimensions() 118 jdiv_round_up((long)cinfo->image_height, (long)DCTSIZE); in jpeg_core_output_dimensions() 121 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 2) { in jpeg_core_output_dimensions() 124 jdiv_round_up((long)cinfo->image_width * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions() 126 jdiv_round_up((long)cinfo->image_height * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions() 129 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 3) { in jpeg_core_output_dimensions() 132 jdiv_round_up((long)cinfo->image_width * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions() 134 jdiv_round_up((long)cinfo->image_height * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions() 137 } else if (cinfo->scale_num * DCTSIZE <= cinfo->scale_denom * 4) { in jpeg_core_output_dimensions() [all …]
|
D | jidctint.c | 65 #if DCTSIZE != 8 196 for (ctr = DCTSIZE; ctr > 0; ctr--) { 206 if (inptr[DCTSIZE * 1] == 0 && inptr[DCTSIZE * 2] == 0 && 207 inptr[DCTSIZE * 3] == 0 && inptr[DCTSIZE * 4] == 0 && 208 inptr[DCTSIZE * 5] == 0 && inptr[DCTSIZE * 6] == 0 && 209 inptr[DCTSIZE * 7] == 0) { 211 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE * 0], 212 quantptr[DCTSIZE * 0]), PASS1_BITS); 214 wsptr[DCTSIZE * 0] = dcval; 215 wsptr[DCTSIZE * 1] = dcval; [all …]
|
D | transupp.c | 34 #define dstinfo_min_DCT_h_scaled_size DCTSIZE 35 #define dstinfo_min_DCT_v_scaled_size DCTSIZE 315 for (i = 0; i < DCTSIZE; i += 2) { in do_flip_v() 317 for (j = 0; j < DCTSIZE; j++) in do_flip_v() 320 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 | 81 cinfo->block_size = DCTSIZE; in initial_setup() 91 cinfo->min_DCT_h_scaled_size = cinfo->min_DCT_v_scaled_size = DCTSIZE; in initial_setup() 93 cinfo->min_DCT_scaled_size = DCTSIZE; in initial_setup() 100 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup() 102 compptr->DCT_scaled_size = DCTSIZE; in initial_setup() 107 (long)(cinfo->max_h_samp_factor * DCTSIZE)); in initial_setup() 110 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 136 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 190 (long)(cinfo->max_h_samp_factor * DCTSIZE)); in per_scan_setup() 193 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in per_scan_setup()
|
D | jcmainct.c | 86 if (main_ptr->rowgroup_ctr < DCTSIZE) in process_data_simple_main() 90 (JDIMENSION)DCTSIZE); in process_data_simple_main() 96 if (main_ptr->rowgroup_ctr != DCTSIZE) in process_data_simple_main() 158 compptr->width_in_blocks * DCTSIZE, in jinit_c_main_controller() 159 (JDIMENSION)(compptr->v_samp_factor * DCTSIZE)); in jinit_c_main_controller()
|
D | jcdctmgr.c | 337 static const double aanscalefactor[DCTSIZE] = { in start_pass_fdctmgr() 349 for (row = 0; row < DCTSIZE; row++) { in start_pass_fdctmgr() 350 for (col = 0; col < DCTSIZE; col++) { in start_pass_fdctmgr() 380 for (elemr = 0; elemr < DCTSIZE; elemr++) { in convsamp() 383 #if DCTSIZE == 8 /* unroll the inner loop */ in convsamp() 395 for (elemc = DCTSIZE; elemc > 0; elemc--) in convsamp() 509 for (bi = 0; bi < num_blocks; bi++, start_col += DCTSIZE) { in forward_DCT() 533 for (elemr = 0; elemr < DCTSIZE; elemr++) { in convsamp_float() 535 #if DCTSIZE == 8 /* unroll the inner loop */ in convsamp_float() 547 for (elemc = DCTSIZE; elemc > 0; elemc--) in convsamp_float() [all …]
|
D | jcmaster.c | 75 cinfo->min_DCT_h_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions() 76 cinfo->min_DCT_v_scaled_size = DCTSIZE; in jpeg_calc_jpeg_dimensions() 145 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup() 147 compptr->DCT_scaled_size = DCTSIZE; in initial_setup() 152 (long)(cinfo->max_h_samp_factor * DCTSIZE)); in initial_setup() 155 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 172 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 376 compptr->MCU_sample_width = DCTSIZE; in per_scan_setup() 399 (long)(cinfo->max_h_samp_factor * DCTSIZE)); in per_scan_setup() 402 (long)(cinfo->max_v_samp_factor * DCTSIZE)); in per_scan_setup() [all …]
|
D | jddctmgr.c | 151 case DCTSIZE: in start_pass() 300 static const double aanscalefactor[DCTSIZE] = { in start_pass() 306 for (row = 0; row < DCTSIZE; row++) { in start_pass() 307 for (col = 0; col < DCTSIZE; col++) { in start_pass()
|
/external/libjpeg-turbo/simd/loongson/ |
D | jidctint-mmi.c | 266 col0a = _mm_load_si32((__m32 *)&inptr[DCTSIZE * 1]); \ 267 col1a = _mm_load_si32((__m32 *)&inptr[DCTSIZE * 2]); \ 273 col0l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 0]); \ 274 col1l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 1]); \ 275 col2l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 2]); \ 276 col3l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 3]); \ 277 col4l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 4]); \ 278 col5l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 5]); \ 279 col6l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 6]); \ 280 col7l = _mm_load_si64((__m64 *)&inptr[DCTSIZE * 7]); \ [all …]
|
D | jfdctint-mmi.c | 240 row0l = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 0]); /* (00 01 02 03) */ \ 241 row0h = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 0 + 4]); /* (04 05 06 07) */ \ 242 row1l = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 1]); /* (10 11 12 13) */ \ 243 row1h = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 1 + 4]); /* (14 15 16 17) */ \ 244 row2l = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 2]); /* (20 21 22 23) */ \ 245 row2h = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 2 + 4]); /* (24 25 26 27) */ \ 246 row3l = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 3]); /* (30 31 32 33) */ \ 247 row3h = _mm_load_si64((__m64 *)&dataptr[DCTSIZE * 3 + 4]); /* (34 35 36 37) */ \ 295 _mm_store_si64((__m64 *)&dataptr[DCTSIZE * 0], out0); \ 296 _mm_store_si64((__m64 *)&dataptr[DCTSIZE * 0 + 4], out4); \ [all …]
|
D | jquanti-mmi.c | 109 workspace += DCTSIZE; \ 110 divisors += DCTSIZE; \ 111 output_ptr += DCTSIZE; \
|
/external/libjpeg-turbo/simd/x86_64/ |
D | jsimd.c | 647 if (DCTSIZE != 8) in jsimd_can_convsamp() 670 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 708 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 727 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 744 if (DCTSIZE != 8) in jsimd_can_fdct_float() 782 if (DCTSIZE != 8) in jsimd_can_quantize() 803 if (DCTSIZE != 8) in jsimd_can_quantize_float() 838 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 861 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 900 if (DCTSIZE != 8) in jsimd_can_idct_islow() [all …]
|
/external/libjpeg-turbo/simd/nasm/ |
D | jdct.inc | 22 %define COL(n, b, s) ((b) + (n) * (s) * DCTSIZE) 25 ((b) + (m) * DCTSIZE * (s) + (n) * SIZEOF_DWORD) 27 ((b) + (m) * DCTSIZE * (s) + (n) * SIZEOF_MMWORD) 29 ((b) + (m) * DCTSIZE * (s) + (n) * SIZEOF_XMMWORD) 31 ((b) + (m) * DCTSIZE * (s) + (n) * SIZEOF_YMMWORD)
|
/external/libjpeg-turbo/simd/arm64/ |
D | jsimd.c | 349 if (DCTSIZE != 8) in jsimd_can_h2v2_downsample() 368 if (DCTSIZE != 8) in jsimd_can_h2v1_downsample() 475 if (DCTSIZE != 8) in jsimd_can_convsamp() 515 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 532 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 572 if (DCTSIZE != 8) in jsimd_can_quantize() 609 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 632 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 671 if (DCTSIZE != 8) in jsimd_can_idct_islow() 694 if (DCTSIZE != 8) in jsimd_can_idct_ifast() [all …]
|
/external/skia/src/codec/ |
D | SkJpegCodec.cpp | 792 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported() 851 sizeInfo->fWidthBytes[i] = comp_info[i].width_in_blocks * DCTSIZE; in onQueryYUV8() 914 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE]; in onGetYUV8Planes() 916 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE) in onGetYUV8Planes() 917 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE) in onGetYUV8Planes() 920 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor; in onGetYUV8Planes() 924 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes() 925 rowptrs[i + 2 * DCTSIZE] = in onGetYUV8Planes() 927 rowptrs[i + 3 * DCTSIZE] = in onGetYUV8Planes() 933 size_t blockIncrementU = DCTSIZE * sizeInfo.fWidthBytes[1]; in onGetYUV8Planes() [all …]
|
/external/skqp/src/codec/ |
D | SkJpegCodec.cpp | 792 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported() 851 sizeInfo->fWidthBytes[i] = comp_info[i].width_in_blocks * DCTSIZE; in onQueryYUV8() 914 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE]; in onGetYUV8Planes() 916 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE) in onGetYUV8Planes() 917 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE) in onGetYUV8Planes() 920 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor; in onGetYUV8Planes() 924 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes() 925 rowptrs[i + 2 * DCTSIZE] = in onGetYUV8Planes() 927 rowptrs[i + 3 * DCTSIZE] = in onGetYUV8Planes() 933 size_t blockIncrementU = DCTSIZE * sizeInfo.fWidthBytes[1]; in onGetYUV8Planes() [all …]
|
/external/libjpeg-turbo/simd/mips/ |
D | jsimd.c | 359 if (DCTSIZE != 8) in jsimd_can_h2v2_smooth_downsample() 663 if (DCTSIZE != 8) in jsimd_can_convsamp() 684 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 725 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 742 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 782 if (DCTSIZE != 8) in jsimd_can_quantize() 801 if (DCTSIZE != 8) in jsimd_can_quantize_float() 841 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 864 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 887 if (DCTSIZE != 8) in jsimd_can_idct_6x6() [all …]
|
/external/libjpeg-turbo/simd/arm/ |
D | jsimd.c | 413 if (DCTSIZE != 8) in jsimd_can_convsamp() 459 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 498 if (DCTSIZE != 8) in jsimd_can_quantize() 535 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 558 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 597 if (DCTSIZE != 8) in jsimd_can_idct_islow() 620 if (DCTSIZE != 8) in jsimd_can_idct_ifast() 675 if (DCTSIZE != 8) in jsimd_can_huff_encode_one_block()
|
/external/libjpeg-turbo/simd/i386/ |
D | jsimd.c | 750 if (DCTSIZE != 8) in jsimd_can_convsamp() 775 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 824 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 845 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 864 if (DCTSIZE != 8) in jsimd_can_fdct_float() 912 if (DCTSIZE != 8) in jsimd_can_quantize() 935 if (DCTSIZE != 8) in jsimd_can_quantize_float() 981 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 1006 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 1055 if (DCTSIZE != 8) in jsimd_can_idct_islow() [all …]
|