Lines Matching refs:srcinfo
191 adjust_quant(j_decompress_ptr srcinfo, jvirt_barray_ptr *src_coef_arrays, in adjust_quant() argument
201 compptr1 = srcinfo->comp_info + ci; in adjust_quant()
216 dequant_comp(srcinfo, compptr1, src_coef_arrays[ci], qtblptr3); in adjust_quant()
227 do_drop(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_drop() argument
252 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_drop()
253 ((j_common_ptr)srcinfo, src_coef_arrays[ci], blk_y + y_drop_blocks, in do_drop()
275 do_crop(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_crop() argument
295 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_crop()
296 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_crop()
298 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop()
299 ((j_common_ptr)srcinfo, src_coef_arrays[ci], dst_blk_y + y_crop_blocks, in do_crop()
311 do_crop_ext_zero(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_crop_ext_zero() argument
328 MCU_cols = srcinfo->output_width / in do_crop_ext_zero()
330 MCU_rows = srcinfo->output_height / in do_crop_ext_zero()
341 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_zero()
342 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_crop_ext_zero()
344 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_zero()
353 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_zero()
354 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_zero()
358 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_zero()
359 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_zero()
364 if (dstinfo->_jpeg_width > srcinfo->output_width) { in do_crop_ext_zero()
386 do_crop_ext_flat(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_crop_ext_flat() argument
404 MCU_cols = srcinfo->output_width / in do_crop_ext_flat()
406 MCU_rows = srcinfo->output_height / in do_crop_ext_flat()
417 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_flat()
418 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_crop_ext_flat()
420 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_flat()
429 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_flat()
430 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_flat()
434 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_flat()
435 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_flat()
466 do_crop_ext_reflect(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_crop_ext_reflect() argument
485 MCU_cols = srcinfo->output_width / in do_crop_ext_reflect()
487 MCU_rows = srcinfo->output_height / in do_crop_ext_reflect()
498 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_reflect()
499 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_crop_ext_reflect()
501 if (dstinfo->_jpeg_height > srcinfo->output_height) { in do_crop_ext_reflect()
510 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_reflect()
511 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_reflect()
515 src_buffer = (*srcinfo->mem->access_virt_barray) in do_crop_ext_reflect()
516 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_crop_ext_reflect()
568 do_wipe(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_wipe() argument
590 buffer = (*srcinfo->mem->access_virt_barray) in do_wipe()
591 ((j_common_ptr)srcinfo, src_coef_arrays[ci], y_wipe_blocks, in do_wipe()
602 do_flatten(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_flatten() argument
625 buffer = (*srcinfo->mem->access_virt_barray) in do_flatten()
626 ((j_common_ptr)srcinfo, src_coef_arrays[ci], y_wipe_blocks, in do_flatten()
651 do_reflect(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_reflect() argument
675 buffer = (*srcinfo->mem->access_virt_barray) in do_reflect()
676 ((j_common_ptr)srcinfo, src_coef_arrays[ci], y_wipe_blocks, in do_reflect()
722 do_flip_h_no_crop(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_flip_h_no_crop() argument
740 MCU_cols = srcinfo->output_width / in do_flip_h_no_crop()
749 buffer = (*srcinfo->mem->access_virt_barray) in do_flip_h_no_crop()
750 ((j_common_ptr)srcinfo, src_coef_arrays[ci], blk_y, in do_flip_h_no_crop()
787 do_flip_h(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_flip_h() argument
805 MCU_cols = srcinfo->output_width / in do_flip_h()
815 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_flip_h()
816 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_flip_h()
818 src_buffer = (*srcinfo->mem->access_virt_barray) in do_flip_h()
819 ((j_common_ptr)srcinfo, src_coef_arrays[ci], dst_blk_y + y_crop_blocks, in do_flip_h()
849 do_flip_v(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_flip_v() argument
870 MCU_rows = srcinfo->output_height / in do_flip_v()
880 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_flip_v()
881 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_flip_v()
885 src_buffer = (*srcinfo->mem->access_virt_barray) in do_flip_v()
886 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_flip_v()
892 src_buffer = (*srcinfo->mem->access_virt_barray) in do_flip_v()
893 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_flip_v()
928 do_transpose(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_transpose() argument
951 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_transpose()
952 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_transpose()
957 src_buffer = (*srcinfo->mem->access_virt_barray) in do_transpose()
958 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_transpose()
977 do_rot_90(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_rot_90() argument
998 MCU_cols = srcinfo->output_height / in do_rot_90()
1008 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_90()
1009 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_rot_90()
1016 src_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_90()
1017 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_rot_90()
1023 src_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_90()
1024 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_rot_90()
1058 do_rot_270(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_rot_270() argument
1079 MCU_rows = srcinfo->output_width / in do_rot_270()
1089 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_270()
1090 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_rot_270()
1095 src_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_270()
1096 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_rot_270()
1129 do_rot_180(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_rot_180() argument
1147 MCU_cols = srcinfo->output_width / in do_rot_180()
1149 MCU_rows = srcinfo->output_height / in do_rot_180()
1160 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_180()
1161 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_rot_180()
1165 src_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_180()
1166 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_rot_180()
1172 src_buffer = (*srcinfo->mem->access_virt_barray) in do_rot_180()
1173 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_rot_180()
1240 do_transverse(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in do_transverse() argument
1261 MCU_cols = srcinfo->output_height / in do_transverse()
1263 MCU_rows = srcinfo->output_width / in do_transverse()
1274 dst_buffer = (*srcinfo->mem->access_virt_barray) in do_transverse()
1275 ((j_common_ptr)srcinfo, dst_coef_arrays[ci], dst_blk_y, in do_transverse()
1282 src_buffer = (*srcinfo->mem->access_virt_barray) in do_transverse()
1283 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_transverse()
1288 src_buffer = (*srcinfo->mem->access_virt_barray) in do_transverse()
1289 ((j_common_ptr)srcinfo, src_coef_arrays[ci], in do_transverse()
1490 jtransform_request_workspace(j_decompress_ptr srcinfo, in jtransform_request_workspace() argument
1503 srcinfo->jpeg_color_space == JCS_YCbCr && in jtransform_request_workspace()
1504 srcinfo->num_components == 3) in jtransform_request_workspace()
1509 info->num_components = srcinfo->num_components; in jtransform_request_workspace()
1513 jpeg_core_output_dimensions(srcinfo); in jtransform_request_workspace()
1515 srcinfo->output_width = srcinfo->image_width; in jtransform_request_workspace()
1516 srcinfo->output_height = srcinfo->image_height; in jtransform_request_workspace()
1523 if (!jtransform_perfect_transform(srcinfo->output_width, in jtransform_request_workspace()
1524 srcinfo->output_height, in jtransform_request_workspace()
1525 srcinfo->_min_DCT_h_scaled_size, in jtransform_request_workspace()
1526 srcinfo->_min_DCT_v_scaled_size, in jtransform_request_workspace()
1530 if (!jtransform_perfect_transform(srcinfo->output_width, in jtransform_request_workspace()
1531 srcinfo->output_height, in jtransform_request_workspace()
1532 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size, in jtransform_request_workspace()
1533 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size, in jtransform_request_workspace()
1549 info->output_width = srcinfo->output_height; in jtransform_request_workspace()
1550 info->output_height = srcinfo->output_width; in jtransform_request_workspace()
1552 info->iMCU_sample_width = srcinfo->_min_DCT_v_scaled_size; in jtransform_request_workspace()
1553 info->iMCU_sample_height = srcinfo->_min_DCT_h_scaled_size; in jtransform_request_workspace()
1556 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size; in jtransform_request_workspace()
1558 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size; in jtransform_request_workspace()
1562 info->output_width = srcinfo->output_width; in jtransform_request_workspace()
1563 info->output_height = srcinfo->output_height; in jtransform_request_workspace()
1565 info->iMCU_sample_width = srcinfo->_min_DCT_h_scaled_size; in jtransform_request_workspace()
1566 info->iMCU_sample_height = srcinfo->_min_DCT_v_scaled_size; in jtransform_request_workspace()
1569 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size; in jtransform_request_workspace()
1571 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size; in jtransform_request_workspace()
1587 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1596 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1601 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1606 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1615 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1620 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC); in jtransform_request_workspace()
1665 srcinfo->max_h_samp_factor != in jtransform_request_workspace()
1666 srcinfo->comp_info[ci].h_samp_factor * in jtransform_request_workspace()
1668 ERREXIT6(srcinfo, JERR_BAD_DROP_SAMPLING, ci, in jtransform_request_workspace()
1671 srcinfo->comp_info[ci].h_samp_factor, in jtransform_request_workspace()
1672 srcinfo->max_h_samp_factor, 'h'); in jtransform_request_workspace()
1674 srcinfo->max_v_samp_factor != in jtransform_request_workspace()
1675 srcinfo->comp_info[ci].v_samp_factor * in jtransform_request_workspace()
1677 ERREXIT6(srcinfo, JERR_BAD_DROP_SAMPLING, ci, in jtransform_request_workspace()
1680 srcinfo->comp_info[ci].v_samp_factor, in jtransform_request_workspace()
1681 srcinfo->max_v_samp_factor, 'v'); in jtransform_request_workspace()
1724 info->output_width > srcinfo->output_width || in jtransform_request_workspace()
1725 info->output_height > srcinfo->output_height) in jtransform_request_workspace()
1731 trim_right_edge(info, srcinfo->output_width); in jtransform_request_workspace()
1738 trim_bottom_edge(info, srcinfo->output_height); in jtransform_request_workspace()
1750 trim_right_edge(info, srcinfo->output_height); in jtransform_request_workspace()
1751 trim_bottom_edge(info, srcinfo->output_width); in jtransform_request_workspace()
1759 trim_right_edge(info, srcinfo->output_height); in jtransform_request_workspace()
1766 trim_right_edge(info, srcinfo->output_width); in jtransform_request_workspace()
1767 trim_bottom_edge(info, srcinfo->output_height); in jtransform_request_workspace()
1774 trim_bottom_edge(info, srcinfo->output_width); in jtransform_request_workspace()
1791 (*srcinfo->mem->alloc_small) ((j_common_ptr)srcinfo, JPOOL_IMAGE, in jtransform_request_workspace()
1798 compptr = srcinfo->comp_info + ci; in jtransform_request_workspace()
1811 coef_arrays[ci] = (*srcinfo->mem->request_virt_barray) in jtransform_request_workspace()
1812 ((j_common_ptr)srcinfo, JPOOL_IMAGE, FALSE, in jtransform_request_workspace()
2037 jtransform_adjust_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in jtransform_adjust_parameters() argument
2052 srcinfo->comp_info[0].h_samp_factor == srcinfo->max_h_samp_factor && in jtransform_adjust_parameters()
2053 srcinfo->comp_info[0].v_samp_factor == srcinfo->max_v_samp_factor) { in jtransform_adjust_parameters()
2097 adjust_quant(srcinfo, src_coef_arrays, in jtransform_adjust_parameters()
2110 if (srcinfo->marker_list != NULL && in jtransform_adjust_parameters()
2111 srcinfo->marker_list->marker == JPEG_APP0 + 1 && in jtransform_adjust_parameters()
2112 srcinfo->marker_list->data_length >= 6 && in jtransform_adjust_parameters()
2113 srcinfo->marker_list->data[0] == 0x45 && in jtransform_adjust_parameters()
2114 srcinfo->marker_list->data[1] == 0x78 && in jtransform_adjust_parameters()
2115 srcinfo->marker_list->data[2] == 0x69 && in jtransform_adjust_parameters()
2116 srcinfo->marker_list->data[3] == 0x66 && in jtransform_adjust_parameters()
2117 srcinfo->marker_list->data[4] == 0 && in jtransform_adjust_parameters()
2118 srcinfo->marker_list->data[5] == 0) { in jtransform_adjust_parameters()
2123 if (dstinfo->jpeg_width != srcinfo->image_width || in jtransform_adjust_parameters()
2124 dstinfo->jpeg_height != srcinfo->image_height) in jtransform_adjust_parameters()
2126 adjust_exif_parameters(srcinfo->marker_list->data + 6, in jtransform_adjust_parameters()
2127 srcinfo->marker_list->data_length - 6, in jtransform_adjust_parameters()
2130 if (dstinfo->image_width != srcinfo->image_width || in jtransform_adjust_parameters()
2131 dstinfo->image_height != srcinfo->image_height) in jtransform_adjust_parameters()
2133 adjust_exif_parameters(srcinfo->marker_list->data + 6, in jtransform_adjust_parameters()
2134 srcinfo->marker_list->data_length - 6, in jtransform_adjust_parameters()
2156 jtransform_execute_transform(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in jtransform_execute_transform() argument
2167 if (info->output_width > srcinfo->output_width || in jtransform_execute_transform()
2168 info->output_height > srcinfo->output_height) { in jtransform_execute_transform()
2169 if (info->output_width > srcinfo->output_width && in jtransform_execute_transform()
2171 do_crop_ext_reflect(srcinfo, dstinfo, in jtransform_execute_transform()
2174 else if (info->output_width > srcinfo->output_width && in jtransform_execute_transform()
2176 do_crop_ext_flat(srcinfo, dstinfo, in jtransform_execute_transform()
2180 do_crop_ext_zero(srcinfo, dstinfo, in jtransform_execute_transform()
2184 do_crop(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2189 do_flip_h(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2192 do_flip_h_no_crop(srcinfo, dstinfo, info->x_crop_offset, in jtransform_execute_transform()
2196 do_flip_v(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2200 do_transpose(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2204 do_transverse(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2208 do_rot_90(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2212 do_rot_180(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2216 do_rot_270(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2228 do_reflect(srcinfo, dstinfo, info->x_crop_offset, in jtransform_execute_transform()
2231 do_flatten(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2234 do_wipe(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2239 do_drop(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset, in jtransform_execute_transform()
2307 jcopy_markers_setup(j_decompress_ptr srcinfo, JCOPY_OPTION option) in jcopy_markers_setup() argument
2314 jpeg_save_markers(srcinfo, JPEG_COM, 0xFFFF); in jcopy_markers_setup()
2321 jpeg_save_markers(srcinfo, JPEG_APP0 + m, 0xFFFF); in jcopy_markers_setup()
2335 jcopy_markers_execute(j_decompress_ptr srcinfo, j_compress_ptr dstinfo, in jcopy_markers_execute() argument
2345 for (marker = srcinfo->marker_list; marker != NULL; marker = marker->next) { in jcopy_markers_execute()