Lines Matching full:srcinfo
91 do_crop (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
111 dst_buffer = (*srcinfo->mem->access_virt_barray)
112 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
114 src_buffer = (*srcinfo->mem->access_virt_barray)
115 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
129 do_flip_h_no_crop (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
148 MCU_cols = srcinfo->output_width /
157 buffer = (*srcinfo->mem->access_virt_barray)
158 ((j_common_ptr) srcinfo, src_coef_arrays[ci], blk_y,
196 do_flip_h (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
214 MCU_cols = srcinfo->output_width /
224 dst_buffer = (*srcinfo->mem->access_virt_barray)
225 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
227 src_buffer = (*srcinfo->mem->access_virt_barray)
228 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
258 do_flip_v (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
279 MCU_rows = srcinfo->output_height /
289 dst_buffer = (*srcinfo->mem->access_virt_barray)
290 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
294 src_buffer = (*srcinfo->mem->access_virt_barray)
295 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
301 src_buffer = (*srcinfo->mem->access_virt_barray)
302 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
338 do_transpose (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
361 dst_buffer = (*srcinfo->mem->access_virt_barray)
362 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
367 src_buffer = (*srcinfo->mem->access_virt_barray)
368 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
386 do_rot_90 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
407 MCU_cols = srcinfo->output_height /
417 dst_buffer = (*srcinfo->mem->access_virt_barray)
418 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
425 src_buffer = (*srcinfo->mem->access_virt_barray)
426 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
432 src_buffer = (*srcinfo->mem->access_virt_barray)
433 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
467 do_rot_270 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
488 MCU_rows = srcinfo->output_width /
498 dst_buffer = (*srcinfo->mem->access_virt_barray)
499 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
504 src_buffer = (*srcinfo->mem->access_virt_barray)
505 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
538 do_rot_180 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
556 MCU_cols = srcinfo->output_width /
558 MCU_rows = srcinfo->output_height /
569 dst_buffer = (*srcinfo->mem->access_virt_barray)
570 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
574 src_buffer = (*srcinfo->mem->access_virt_barray)
575 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
581 src_buffer = (*srcinfo->mem->access_virt_barray)
582 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
646 do_transverse (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
667 MCU_cols = srcinfo->output_height /
669 MCU_rows = srcinfo->output_width /
680 dst_buffer = (*srcinfo->mem->access_virt_barray)
681 ((j_common_ptr) srcinfo, dst_coef_arrays[ci], dst_blk_y,
688 src_buffer = (*srcinfo->mem->access_virt_barray)
689 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
694 src_buffer = (*srcinfo->mem->access_virt_barray)
695 ((j_common_ptr) srcinfo, src_coef_arrays[ci],
890 jtransform_request_workspace (j_decompress_ptr srcinfo,
903 srcinfo->jpeg_color_space == JCS_YCbCr &&
904 srcinfo->num_components == 3)
909 info->num_components = srcinfo->num_components;
913 jpeg_core_output_dimensions(srcinfo);
915 srcinfo->output_width = srcinfo->image_width;
916 srcinfo->output_height = srcinfo->image_height;
923 if (!jtransform_perfect_transform(srcinfo->output_width,
924 srcinfo->output_height,
925 srcinfo->_min_DCT_h_scaled_size,
926 srcinfo->_min_DCT_v_scaled_size,
930 if (!jtransform_perfect_transform(srcinfo->output_width,
931 srcinfo->output_height,
932 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size,
933 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size,
949 info->output_width = srcinfo->output_height;
950 info->output_height = srcinfo->output_width;
952 info->iMCU_sample_width = srcinfo->_min_DCT_v_scaled_size;
953 info->iMCU_sample_height = srcinfo->_min_DCT_h_scaled_size;
956 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size;
958 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size;
962 info->output_width = srcinfo->output_width;
963 info->output_height = srcinfo->output_height;
965 info->iMCU_sample_width = srcinfo->_min_DCT_h_scaled_size;
966 info->iMCU_sample_height = srcinfo->_min_DCT_v_scaled_size;
969 srcinfo->max_h_samp_factor * srcinfo->_min_DCT_h_scaled_size;
971 srcinfo->max_v_samp_factor * srcinfo->_min_DCT_v_scaled_size;
987 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC);
997 ERREXIT(srcinfo, JERR_BAD_CROP_SPEC);
1039 trim_right_edge(info, srcinfo->output_width);
1046 trim_bottom_edge(info, srcinfo->output_height);
1058 trim_right_edge(info, srcinfo->output_height);
1059 trim_bottom_edge(info, srcinfo->output_width);
1067 trim_right_edge(info, srcinfo->output_height);
1074 trim_right_edge(info, srcinfo->output_width);
1075 trim_bottom_edge(info, srcinfo->output_height);
1082 trim_bottom_edge(info, srcinfo->output_width);
1095 (*srcinfo->mem->alloc_small) ((j_common_ptr) srcinfo, JPOOL_IMAGE,
1104 compptr = srcinfo->comp_info + ci;
1117 coef_arrays[ci] = (*srcinfo->mem->request_virt_barray)
1118 ((j_common_ptr) srcinfo, JPOOL_IMAGE, FALSE,
1344 jtransform_adjust_parameters (j_decompress_ptr srcinfo,
1360 srcinfo->comp_info[0].h_samp_factor == srcinfo->max_h_samp_factor &&
1361 srcinfo->comp_info[0].v_samp_factor == srcinfo->max_v_samp_factor) {
1412 if (srcinfo->marker_list != NULL &&
1413 srcinfo->marker_list->marker == JPEG_APP0+1 &&
1414 srcinfo->marker_list->data_length >= 6 &&
1415 GETJOCTET(srcinfo->marker_list->data[0]) == 0x45 &&
1416 GETJOCTET(srcinfo->marker_list->data[1]) == 0x78 &&
1417 GETJOCTET(srcinfo->marker_list->data[2]) == 0x69 &&
1418 GETJOCTET(srcinfo->marker_list->data[3]) == 0x66 &&
1419 GETJOCTET(srcinfo->marker_list->data[4]) == 0 &&
1420 GETJOCTET(srcinfo->marker_list->data[5]) == 0) {
1425 if (dstinfo->jpeg_width != srcinfo->image_width ||
1426 dstinfo->jpeg_height != srcinfo->image_height)
1428 adjust_exif_parameters(srcinfo->marker_list->data + 6,
1429 srcinfo->marker_list->data_length - 6,
1451 jtransform_execute_transform (j_decompress_ptr srcinfo,
1464 do_crop(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1469 do_flip_h(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1472 do_flip_h_no_crop(srcinfo, dstinfo, info->x_crop_offset,
1476 do_flip_v(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1480 do_transpose(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1484 do_transverse(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1488 do_rot_90(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1492 do_rot_180(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1496 do_rot_270(srcinfo, dstinfo, info->x_crop_offset, info->y_crop_offset,
1563 jcopy_markers_setup (j_decompress_ptr srcinfo, JCOPY_OPTION option)
1570 jpeg_save_markers(srcinfo, JPEG_COM, 0xFFFF);
1575 jpeg_save_markers(srcinfo, JPEG_APP0 + m, 0xFFFF);
1588 jcopy_markers_execute (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
1598 for (marker = srcinfo->marker_list; marker != NULL; marker = marker->next) {