/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], quantptr[DCTSIZE*0]), 152 wsptr[DCTSIZE*0] = dcval; 153 wsptr[DCTSIZE*1] = 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], quantptr[DCTSIZE*0]), 214 wsptr[DCTSIZE*0] = dcval; 215 wsptr[DCTSIZE*1] = dcval; 216 wsptr[DCTSIZE*2] = dcval; [all …]
|
D | transupp.c | 34 #define dstinfo_min_DCT_h_scaled_size DCTSIZE 35 #define dstinfo_min_DCT_v_scaled_size DCTSIZE 317 for (i = 0; i < DCTSIZE; i += 2) { in do_flip_v() 319 for (j = 0; j < DCTSIZE; j++) in do_flip_v() 322 for (j = 0; j < DCTSIZE; j++) in do_flip_v() 375 for (i = 0; i < DCTSIZE; i++) in do_transpose() 376 for (j = 0; j < DCTSIZE; j++) in do_transpose() 377 dst_ptr[j*DCTSIZE+i] = src_ptr[i*DCTSIZE+j]; in do_transpose() 444 for (i = 0; i < DCTSIZE; i++) { in do_rot_90() 445 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()
|
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() 510 for (bi = 0; bi < num_blocks; bi++, start_col += DCTSIZE) { in forward_DCT() 534 for (elemr = 0; elemr < DCTSIZE; elemr++) { in convsamp_float() 536 #if DCTSIZE == 8 /* unroll the inner loop */ in convsamp_float() 548 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() 143 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup() 145 compptr->DCT_scaled_size = DCTSIZE; in initial_setup() 150 (long) (cinfo->max_h_samp_factor * DCTSIZE)); in initial_setup() 153 (long) (cinfo->max_v_samp_factor * DCTSIZE)); in initial_setup() 170 (long) (cinfo->max_v_samp_factor*DCTSIZE)); in initial_setup() 375 compptr->MCU_sample_width = DCTSIZE; in per_scan_setup() 398 (long) (cinfo->max_h_samp_factor*DCTSIZE)); in per_scan_setup() 401 (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()
|
D | jcsample.c | 152 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample() 202 cinfo->image_width, compptr->width_in_blocks * DCTSIZE); in fullsize_downsample() 224 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in h2v1_downsample() 261 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in h2v2_downsample() 304 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in h2v2_smooth_downsample() 404 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in fullsize_smooth_downsample()
|
/external/syslinux/com32/lib/jpeg/ |
D | jidctflt.c | 78 #define DCTSIZE 8 macro 79 #define DCTSIZE2 (DCTSIZE*DCTSIZE) 140 for (ctr = DCTSIZE; ctr > 0; ctr--) { in tinyjpeg_idct_float() 150 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 && in tinyjpeg_idct_float() 151 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 && in tinyjpeg_idct_float() 152 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 && in tinyjpeg_idct_float() 153 inptr[DCTSIZE*7] == 0) { in tinyjpeg_idct_float() 155 FAST_FLOAT dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]); in tinyjpeg_idct_float() 157 wsptr[DCTSIZE*0] = dcval; in tinyjpeg_idct_float() 158 wsptr[DCTSIZE*1] = dcval; in tinyjpeg_idct_float() [all …]
|
/external/libjpeg-turbo/simd/ |
D | jsimd_x86_64.c | 531 if (DCTSIZE != 8) in jsimd_can_convsamp() 552 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 587 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 604 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 621 if (DCTSIZE != 8) in jsimd_can_fdct_float() 656 if (DCTSIZE != 8) in jsimd_can_quantize() 675 if (DCTSIZE != 8) in jsimd_can_quantize_float() 708 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 731 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 770 if (DCTSIZE != 8) in jsimd_can_idct_islow() [all …]
|
D | jsimd_arm64.c | 346 if (DCTSIZE != 8) in jsimd_can_h2v2_downsample() 365 if (DCTSIZE != 8) in jsimd_can_h2v1_downsample() 496 if (DCTSIZE != 8) in jsimd_can_convsamp() 538 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 555 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 597 if (DCTSIZE != 8) in jsimd_can_quantize() 637 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 660 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 701 if (DCTSIZE != 8) in jsimd_can_idct_islow() 724 if (DCTSIZE != 8) in jsimd_can_idct_ifast() [all …]
|
D | jsimd_mips.c | 364 if(DCTSIZE != 8) in jsimd_can_h2v2_smooth_downsample() 693 if (DCTSIZE != 8) in jsimd_can_convsamp() 714 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 753 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 770 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 814 if (DCTSIZE != 8) in jsimd_can_quantize() 833 if (DCTSIZE != 8) in jsimd_can_quantize_float() 872 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 895 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 918 if (DCTSIZE != 8) in jsimd_can_idct_6x6() [all …]
|
D | jdct.inc | 21 %define COL(n,b,s) ((b)+(n)*(s)*DCTSIZE) 23 %define DWBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_DWORD) 24 %define MMBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_MMWORD) 25 %define XMMBLOCK(m,n,b,s) ((b)+(m)*DCTSIZE*(s)+(n)*SIZEOF_XMMWORD)
|
D | jsimd_arm.c | 435 if (DCTSIZE != 8) in jsimd_can_convsamp() 485 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 526 if (DCTSIZE != 8) in jsimd_can_quantize() 566 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 589 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 630 if (DCTSIZE != 8) in jsimd_can_idct_islow() 653 if (DCTSIZE != 8) in jsimd_can_idct_ifast() 710 if (DCTSIZE != 8) in jsimd_can_huff_encode_one_block()
|
D | jsimd_i386.c | 657 if (DCTSIZE != 8) in jsimd_can_convsamp() 680 if (DCTSIZE != 8) in jsimd_can_convsamp_float() 727 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 746 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 765 if (DCTSIZE != 8) in jsimd_can_fdct_float() 811 if (DCTSIZE != 8) in jsimd_can_quantize() 832 if (DCTSIZE != 8) in jsimd_can_quantize_float() 877 if (DCTSIZE != 8) in jsimd_can_idct_2x2() 902 if (DCTSIZE != 8) in jsimd_can_idct_4x4() 951 if (DCTSIZE != 8) in jsimd_can_idct_islow() [all …]
|
D | jsimd_powerpc.c | 620 if (DCTSIZE != 8) in jsimd_can_convsamp() 660 if (DCTSIZE != 8) in jsimd_can_fdct_islow() 677 if (DCTSIZE != 8) in jsimd_can_fdct_ifast() 717 if (DCTSIZE != 8) in jsimd_can_quantize() 781 if (DCTSIZE != 8) in jsimd_can_idct_islow() 798 if (DCTSIZE != 8) in jsimd_can_idct_ifast()
|
/external/skqp/src/codec/ |
D | SkJpegCodec.cpp | 781 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported() 840 sizeInfo->fWidthBytes[i] = comp_info[i].width_in_blocks * DCTSIZE; in onQueryYUV8() 897 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE]; in onGetYUV8Planes() 899 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE) in onGetYUV8Planes() 900 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE) in onGetYUV8Planes() 903 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor; in onGetYUV8Planes() 908 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes() 909 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kU], in onGetYUV8Planes() 911 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kV], in onGetYUV8Planes() 917 size_t blockIncrementU = DCTSIZE * sizeInfo.fWidthBytes[SkYUVSizeInfo::kU]; in onGetYUV8Planes() [all …]
|
/external/skia/src/codec/ |
D | SkJpegCodec.cpp | 798 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported() 857 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() 925 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes() 926 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kU], in onGetYUV8Planes() 928 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kV], in onGetYUV8Planes() 934 size_t blockIncrementU = DCTSIZE * sizeInfo.fWidthBytes[SkYUVSizeInfo::kU]; in onGetYUV8Planes() [all …]
|