/external/libjpeg-turbo/ |
D | jdinput.c | 48 jpeg_component_info *compptr; in initial_setup() local 67 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 68 ci++, compptr++) { in initial_setup() 69 if (compptr->h_samp_factor <= 0 || in initial_setup() 70 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup() 71 compptr->v_samp_factor <= 0 || in initial_setup() 72 compptr->v_samp_factor > MAX_SAMP_FACTOR) in initial_setup() 75 compptr->h_samp_factor); in initial_setup() 77 compptr->v_samp_factor); in initial_setup() 97 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() [all …]
|
D | jccoefct.c | 149 jpeg_component_info *compptr; in compress_data() local 167 compptr = cinfo->cur_comp_info[ci]; in compress_data() 168 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width : in compress_data() 169 compptr->last_col_width; in compress_data() 170 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data() 172 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data() 174 yoffset + yindex < compptr->last_row_height) { in compress_data() 175 (*cinfo->fdct->forward_DCT) (cinfo, compptr, in compress_data() 176 input_buf[compptr->component_index], in compress_data() 179 if (blockcnt < compptr->MCU_width) { in compress_data() [all …]
|
D | jdcoefct.c | 94 jpeg_component_info *compptr; in decompress_onepass() local 124 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass() 126 if (!compptr->component_needed) { in decompress_onepass() 127 blkn += compptr->MCU_blocks; in decompress_onepass() 130 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass() 132 compptr->MCU_width : compptr->last_col_width; in decompress_onepass() 133 output_ptr = output_buf[compptr->component_index] + in decompress_onepass() 134 yoffset * compptr->_DCT_scaled_size; in decompress_onepass() 136 compptr->MCU_sample_width; in decompress_onepass() 137 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in decompress_onepass() [all …]
|
D | jcmaster.c | 86 jpeg_component_info *compptr; in initial_setup() local 125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 126 ci++, compptr++) { in initial_setup() 127 if (compptr->h_samp_factor <= 0 || in initial_setup() 128 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup() 129 compptr->v_samp_factor <= 0 || in initial_setup() 130 compptr->v_samp_factor > MAX_SAMP_FACTOR) in initial_setup() 133 compptr->h_samp_factor); in initial_setup() 135 compptr->v_samp_factor); in initial_setup() 139 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() [all …]
|
D | transupp.c | 101 jpeg_component_info *compptr; in do_crop() local 107 compptr = dstinfo->comp_info + ci; in do_crop() 108 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop() 109 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop() 110 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop() 111 dst_blk_y += compptr->v_samp_factor) { in do_crop() 114 (JDIMENSION)compptr->v_samp_factor, TRUE); in do_crop() 118 (JDIMENSION)compptr->v_samp_factor, FALSE); in do_crop() 119 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop() 122 compptr->width_in_blocks); in do_crop() [all …]
|
D | jcsample.c | 61 jpeg_component_info *compptr, 127 jpeg_component_info *compptr; in sep_downsample() local 130 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample() 131 ci++, compptr++) { in sep_downsample() 133 out_ptr = output_buf[ci] + (out_row_group_index * compptr->v_samp_factor); in sep_downsample() 134 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample() 147 int_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in int_downsample() argument 152 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample() 156 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample() 157 v_expand = cinfo->max_v_samp_factor / compptr->v_samp_factor; in int_downsample() [all …]
|
D | jdct.h | 98 jpeg_component_info *compptr, JCOEFPTR coef_block, 101 jpeg_component_info *compptr, JCOEFPTR coef_block, 104 jpeg_component_info *compptr, JCOEFPTR coef_block, 107 jpeg_component_info *compptr, JCOEFPTR coef_block, 110 jpeg_component_info *compptr, JCOEFPTR coef_block, 113 jpeg_component_info *compptr, JCOEFPTR coef_block, 116 jpeg_component_info *compptr, JCOEFPTR coef_block, 119 jpeg_component_info *compptr, JCOEFPTR coef_block, 122 jpeg_component_info *compptr, JCOEFPTR coef_block, 125 jpeg_component_info *compptr, JCOEFPTR coef_block, [all …]
|
D | jdmainct.c | 140 jpeg_component_info *compptr; in alloc_funny_pointers() local 151 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers() 152 ci++, compptr++) { in alloc_funny_pointers() 153 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in alloc_funny_pointers() 181 jpeg_component_info *compptr; in make_funny_pointers() local 184 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers() 185 ci++, compptr++) { in make_funny_pointers() 186 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in make_funny_pointers() 221 jpeg_component_info *compptr; in set_bottom_pointers() local 224 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers() [all …]
|
D | jdsample.c | 66 jpeg_component_info *compptr; in sep_upsample() local 71 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_upsample() 72 ci++, compptr++) { in sep_upsample() 76 (*upsample->methods[ci]) (cinfo, compptr, in sep_upsample() 125 fullsize_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in fullsize_upsample() argument 138 noop_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in noop_upsample() argument 157 int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in int_upsample() argument 169 h_expand = upsample->h_expand[compptr->component_index]; in int_upsample() 170 v_expand = upsample->v_expand[compptr->component_index]; in int_upsample() 201 h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in h2v1_upsample() argument [all …]
|
D | jcmarker.c | 236 jpeg_component_info *compptr; in emit_dac() local 242 compptr = cinfo->cur_comp_info[i]; in emit_dac() 245 dc_in_use[compptr->dc_tbl_no] = 1; in emit_dac() 248 ac_in_use[compptr->ac_tbl_no] = 1; in emit_dac() 292 jpeg_component_info *compptr; in emit_sof() local 308 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in emit_sof() 309 ci++, compptr++) { in emit_sof() 310 emit_byte(cinfo, compptr->component_id); in emit_sof() 311 emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor); in emit_sof() 312 emit_byte(cinfo, compptr->quant_tbl_no); in emit_sof() [all …]
|
D | jddctmgr.c | 101 jpeg_component_info *compptr; in start_pass() local 106 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in start_pass() 107 ci++, compptr++) { in start_pass() 109 switch (compptr->_DCT_scaled_size) { in start_pass() 225 ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->_DCT_scaled_size); in start_pass() 236 if (!compptr->component_needed || idct->cur_method[ci] == method) in start_pass() 238 qtbl = compptr->quant_table; in start_pass() 249 ISLOW_MULT_TYPE *ismtbl = (ISLOW_MULT_TYPE *)compptr->dct_table; in start_pass() 266 IFAST_MULT_TYPE *ifmtbl = (IFAST_MULT_TYPE *)compptr->dct_table; in start_pass() 298 FLOAT_MULT_TYPE *fmtbl = (FLOAT_MULT_TYPE *)compptr->dct_table; in start_pass() [all …]
|
D | jsimd_none.c | 106 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 113 jpeg_component_info *compptr, in jsimd_h2v2_smooth_downsample() argument 119 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 143 jsimd_int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_int_upsample() argument 149 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 155 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument 173 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument 179 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument 313 jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_2x2() argument 320 jsimd_idct_4x4(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_4x4() argument [all …]
|
D | jcprepct.c | 139 jpeg_component_info *compptr; in pre_process_data() local 175 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data() 176 ci++, compptr++) { in pre_process_data() 177 expand_bottom_edge(output_buf[ci], compptr->width_in_blocks * DCTSIZE, in pre_process_data() 178 (int)(*out_row_group_ctr * compptr->v_samp_factor), in pre_process_data() 179 (int)(out_row_groups_avail * compptr->v_samp_factor)); in pre_process_data() 269 jpeg_component_info *compptr; in create_context_buffer() local 280 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer() 281 ci++, compptr++) { in create_context_buffer() 288 (JDIMENSION)(((long)compptr->width_in_blocks * DCTSIZE * in create_context_buffer() [all …]
|
D | jsimddct.h | 42 jpeg_component_info *compptr, JCOEFPTR coef_block, 45 jpeg_component_info *compptr, JCOEFPTR coef_block, 48 jpeg_component_info *compptr, JCOEFPTR coef_block, 51 jpeg_component_info *compptr, 60 jpeg_component_info *compptr, 64 jpeg_component_info *compptr, 68 jpeg_component_info *compptr,
|
D | jsimd.h | 43 jpeg_component_info *compptr, 50 jpeg_component_info *compptr, 55 jpeg_component_info *compptr, 64 jpeg_component_info *compptr, 68 jpeg_component_info *compptr, 72 jpeg_component_info *compptr, 80 jpeg_component_info *compptr, 84 jpeg_component_info *compptr,
|
D | jdmaster.c | 110 jpeg_component_info *compptr; in jpeg_core_output_dimensions() local 244 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_core_output_dimensions() 245 ci++, compptr++) { in jpeg_core_output_dimensions() 246 compptr->_DCT_h_scaled_size = cinfo->_min_DCT_h_scaled_size; in jpeg_core_output_dimensions() 247 compptr->_DCT_v_scaled_size = cinfo->_min_DCT_v_scaled_size; in jpeg_core_output_dimensions() 276 jpeg_component_info *compptr; in jpeg_calc_output_dimensions() local 293 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions() 294 ci++, compptr++) { in jpeg_calc_output_dimensions() 298 (compptr->h_samp_factor * ssize * 2) == 0) && in jpeg_calc_output_dimensions() 300 (compptr->v_samp_factor * ssize * 2) == 0)) { in jpeg_calc_output_dimensions() [all …]
|
D | jctrans.c | 301 jpeg_component_info *compptr; in compress_output() local 305 compptr = cinfo->cur_comp_info[ci]; in compress_output() 307 ((j_common_ptr)cinfo, coef->whole_image[compptr->component_index], in compress_output() 308 coef->iMCU_row_num * compptr->v_samp_factor, in compress_output() 309 (JDIMENSION)compptr->v_samp_factor, FALSE); in compress_output() 320 compptr = cinfo->cur_comp_info[ci]; in compress_output() 321 start_col = MCU_col_num * compptr->MCU_width; in compress_output() 322 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width : in compress_output() 323 compptr->last_col_width; in compress_output() 324 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_output() [all …]
|
D | turbojpeg.c | 724 jpeg_component_info *compptr; in tjEncodeYUVPlanes() local 792 compptr = &cinfo->comp_info[i]; in tjEncodeYUVPlanes() 794 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes() 795 compptr->h_samp_factor, 32) * in tjEncodeYUVPlanes() 808 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes() 809 compptr->h_samp_factor, 32) * row]; in tjEncodeYUVPlanes() 812 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes() 813 compptr->v_samp_factor + 32); in tjEncodeYUVPlanes() 816 tmpbuf2[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjEncodeYUVPlanes() 819 for (row = 0; row < compptr->v_samp_factor; row++) { in tjEncodeYUVPlanes() [all …]
|
/external/libjpeg-turbo/simd/mips/ |
D | jsimd.c | 106 jpeg_component_info *compptr, 386 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 390 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample() 396 jpeg_component_info *compptr, in jsimd_h2v2_smooth_downsample() argument 400 compptr->v_samp_factor, in jsimd_h2v2_smooth_downsample() 403 compptr->width_in_blocks, in jsimd_h2v2_smooth_downsample() 408 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 412 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v1_downsample() 468 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 476 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument [all …]
|
/external/libjpeg-turbo/simd/i386/ |
D | jsimd.c | 389 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 394 compptr->v_samp_factor, in jsimd_h2v2_downsample() 395 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample() 399 compptr->v_samp_factor, in jsimd_h2v2_downsample() 400 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample() 404 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample() 409 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 414 compptr->v_samp_factor, in jsimd_h2v1_downsample() 415 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample() 419 compptr->v_samp_factor, in jsimd_h2v1_downsample() [all …]
|
/external/libjpeg-turbo/simd/loongson/ |
D | jsimd.c | 237 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 241 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample() 247 jpeg_component_info *compptr, in jsimd_h2v2_smooth_downsample() argument 253 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 277 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 283 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument 289 jsimd_int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_int_upsample() argument 318 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument 322 compptr->downsampled_width, input_data, in jsimd_h2v2_fancy_upsample() 327 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument [all …]
|
/external/libjpeg-turbo/simd/x86_64/ |
D | jsimd.c | 340 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 345 compptr->v_samp_factor, in jsimd_h2v2_downsample() 346 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample() 350 compptr->v_samp_factor, in jsimd_h2v2_downsample() 351 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample() 356 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 361 compptr->v_samp_factor, in jsimd_h2v1_downsample() 362 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample() 366 compptr->v_samp_factor, in jsimd_h2v1_downsample() 367 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample() [all …]
|
/external/libjpeg-turbo/simd/arm64/ |
D | jsimd.c | 380 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 384 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample() 389 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 393 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v1_downsample() 410 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 416 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument 434 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument 440 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument 650 jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_2x2() argument 654 jsimd_idct_2x2_neon(compptr->dct_table, coef_block, output_buf, output_col); in jsimd_idct_2x2() [all …]
|
/external/libjpeg-turbo/simd/arm/ |
D | jsimd.c | 310 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 316 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 334 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 340 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument 369 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument 375 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument 379 compptr->downsampled_width, input_data, in jsimd_h2v1_fancy_upsample() 576 jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_2x2() argument 580 jsimd_idct_2x2_neon(compptr->dct_table, coef_block, output_buf, output_col); in jsimd_idct_2x2() 584 jsimd_idct_4x4(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_4x4() argument [all …]
|
/external/libjpeg-turbo/simd/powerpc/ |
D | jsimd.c | 379 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument 383 compptr->v_samp_factor, in jsimd_h2v2_downsample() 384 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample() 389 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument 393 compptr->v_samp_factor, in jsimd_h2v1_downsample() 394 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample() 433 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument 441 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument 483 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument 487 compptr->downsampled_width, input_data, in jsimd_h2v2_fancy_upsample() [all …]
|