#include "jinclude.h"
#include "jpeglib.h"
#include "transupp.h"
#include <ctype.h>
Go to the source code of this file.
#define JPEG_INTERNALS |
Definition at line 18 of file transupp.c.
adjust_exif_parameters | ( | JOCTET FAR * | data, | |
unsigned int | length, | |||
JDIMENSION | new_width, | |||
JDIMENSION | new_height | |||
) |
Definition at line 1147 of file transupp.c.
References FALSE, GETJOCTET, tagnum, and TRUE.
Referenced by jtransform_adjust_parameters().
do_crop | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 79 of file transupp.c.
References compptr, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, jcopy_block_row(), offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_flip_h | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 184 of file transupp.c.
References compptr, DCTSIZE2, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, jcopy_block_row(), k, offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_flip_h_no_crop | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays | |||
) |
Definition at line 117 of file transupp.c.
References buffer, compptr, DCTSIZE2, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, jcopy_block_row(), k, offset_y, ptr1, ptr2, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_flip_v | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 246 of file transupp.c.
References compptr, DCTSIZE, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, if(), j, jcopy_block_row(), offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_rot_180 | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 526 of file transupp.c.
References compptr, DCTSIZE, DCTSIZE2, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, if(), j, jcopy_block_row(), offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_rot_270 | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 455 of file transupp.c.
References compptr, DCTSIZE, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, j, offset_x, offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_rot_90 | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 374 of file transupp.c.
References compptr, DCTSIZE, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, j, offset_x, offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_transpose | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 326 of file transupp.c.
References compptr, DCTSIZE, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, j, offset_x, offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
do_transverse | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JDIMENSION | x_crop_offset, | |||
JDIMENSION | y_crop_offset, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jvirt_barray_ptr * | dst_coef_arrays | |||
) |
Definition at line 634 of file transupp.c.
References compptr, DCTSIZE, FALSE, for(), jpeg_component_info::h_samp_factor, jpeg_component_info::height_in_blocks, i, j, offset_x, offset_y, TRUE, jpeg_component_info::v_samp_factor, and jpeg_component_info::width_in_blocks.
Referenced by jtransform_execute_transform().
jcopy_markers_execute | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
JCOPY_OPTION | option | |||
) |
Definition at line 1541 of file transupp.c.
References GETJOCTET, i, JPEG_APP0, jpeg_write_m_byte(), jpeg_write_m_header(), jpeg_write_marker(), marker, NULL, and x41.
jcopy_markers_setup | ( | j_decompress_ptr | srcinfo, | |
JCOPY_OPTION | option | |||
) |
Definition at line 1516 of file transupp.c.
References JCOPYOPT_ALL, JCOPYOPT_NONE, JPEG_APP0, JPEG_COM, jpeg_save_markers(), and m.
jt_read_integer | ( | const char ** | strptr, | |
JDIMENSION * | result | |||
) |
Definition at line 754 of file transupp.c.
References FALSE, ptr, TRUE, and val.
Referenced by jtransform_parse_crop_spec().
jtransform_adjust_parameters | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jpeg_transform_info * | info | |||
) |
Definition at line 1309 of file transupp.c.
References adjust_exif_parameters(), ERREXIT, FALSE, GETJOCTET, JCS_GRAYSCALE, JCS_YCbCr, JPEG_APP0, jpeg_set_colorspace(), JXFORM_ROT_270, JXFORM_ROT_90, JXFORM_TRANSPOSE, JXFORM_TRANSVERSE, NULL, and transpose_critical_parameters().
jtransform_execute_transform | ( | j_decompress_ptr | srcinfo, | |
j_compress_ptr | dstinfo, | |||
jvirt_barray_ptr * | src_coef_arrays, | |||
jpeg_transform_info * | info | |||
) |
Definition at line 1404 of file transupp.c.
References do_crop(), do_flip_h(), do_flip_h_no_crop(), do_flip_v(), do_rot_180(), do_rot_270(), do_rot_90(), do_transpose(), do_transverse(), JXFORM_FLIP_H, JXFORM_FLIP_V, JXFORM_NONE, JXFORM_ROT_180, JXFORM_ROT_270, JXFORM_ROT_90, JXFORM_TRANSPOSE, and JXFORM_TRANSVERSE.
jtransform_parse_crop_spec | ( | jpeg_transform_info * | info, | |
const char * | spec | |||
) |
Definition at line 784 of file transupp.c.
References FALSE, JCROP_NEG, JCROP_POS, JCROP_UNSET, jt_read_integer(), and TRUE.
jtransform_perfect_transform | ( | JDIMENSION | image_width, | |
JDIMENSION | image_height, | |||
int | MCU_width, | |||
int | MCU_height, | |||
JXFORM_CODE | transform | |||
) |
Definition at line 1477 of file transupp.c.
References FALSE, JXFORM_FLIP_H, JXFORM_FLIP_V, JXFORM_ROT_180, JXFORM_ROT_270, JXFORM_ROT_90, JXFORM_TRANSVERSE, result(), and TRUE.
Referenced by jtransform_request_workspace().
jtransform_request_workspace | ( | j_decompress_ptr | srcinfo, | |
jpeg_transform_info * | info | |||
) |
Definition at line 870 of file transupp.c.
References coef_arrays, compptr, ERREXIT, FALSE, jpeg_component_info::h_samp_factor, if(), JCROP_NEG, JCROP_UNSET, JCS_YCbCr, jdiv_round_up(), JPOOL_IMAGE, jtransform_perfect_transform(), JXFORM_FLIP_H, JXFORM_FLIP_V, JXFORM_NONE, JXFORM_ROT_180, JXFORM_ROT_270, JXFORM_ROT_90, JXFORM_TRANSPOSE, JXFORM_TRANSVERSE, SIZEOF, trim_bottom_edge(), trim_right_edge(), TRUE, and jpeg_component_info::v_samp_factor.
transpose_critical_parameters | ( | j_compress_ptr | dstinfo | ) |
Definition at line 1101 of file transupp.c.
References compptr, DCTSIZE, jpeg_component_info::h_samp_factor, i, if(), j, NULL, NUM_QUANT_TBLS, JQUANT_TBL::quantval, tblno, and jpeg_component_info::v_samp_factor.
Referenced by jtransform_adjust_parameters().
trim_bottom_edge | ( | jpeg_transform_info * | info, | |
JDIMENSION | full_height | |||
) |
trim_right_edge | ( | jpeg_transform_info * | info, | |
JDIMENSION | full_width | |||
) |