Home | History | Annotate | Download | only in jpeg

Lines Matching refs:dstinfo

66 do_flip_h (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
82 MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);
84 for (ci = 0; ci < dstinfo->num_components; ci++) {
85 compptr = dstinfo->comp_info + ci;
115 do_flip_v (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
134 MCU_rows = dstinfo->image_height / (dstinfo->max_v_samp_factor * DCTSIZE);
136 for (ci = 0; ci < dstinfo->num_components; ci++) {
137 compptr = dstinfo->comp_info + ci;
186 do_transpose (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
202 for (ci = 0; ci < dstinfo->num_components; ci++) {
203 compptr = dstinfo->comp_info + ci;
230 do_rot_90 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
249 MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);
251 for (ci = 0; ci < dstinfo->num_components; ci++) {
252 compptr = dstinfo->comp_info + ci;
294 do_rot_270 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
313 MCU_rows = dstinfo->image_height / (dstinfo->max_v_samp_factor * DCTSIZE);
315 for (ci = 0; ci < dstinfo->num_components; ci++) {
316 compptr = dstinfo->comp_info + ci;
358 do_rot_180 (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
374 MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);
375 MCU_rows = dstinfo->image_height / (dstinfo->max_v_samp_factor * DCTSIZE);
377 for (ci = 0; ci < dstinfo->num_components; ci++) {
378 compptr = dstinfo->comp_info + ci;
459 do_transverse (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
478 MCU_cols = dstinfo->image_width / (dstinfo->max_h_samp_factor * DCTSIZE);
479 MCU_rows = dstinfo->image_height / (dstinfo->max_v_samp_factor * DCTSIZE);
481 for (ci = 0; ci < dstinfo->num_components; ci++) {
482 compptr = dstinfo->comp_info + ci;
640 transpose_critical_parameters (j_compress_ptr dstinfo)
649 dtemp = dstinfo->image_width;
650 dstinfo->image_width = dstinfo->image_height;
651 dstinfo->image_height = dtemp;
654 for (ci = 0; ci < dstinfo->num_components; ci++) {
655 compptr = dstinfo->comp_info + ci;
663 qtblptr = dstinfo->quant_tbl_ptrs[tblno];
680 trim_right_edge (j_compress_ptr dstinfo)
690 for (ci = 0; ci < dstinfo->num_components; ci++) {
691 int h_samp_factor = dstinfo->comp_info[ci].h_samp_factor;
694 MCU_cols = dstinfo->image_width / (max_h_samp_factor * DCTSIZE);
696 dstinfo->image_width = MCU_cols * (max_h_samp_factor * DCTSIZE);
700 trim_bottom_edge (j_compress_ptr dstinfo)
710 for (ci = 0; ci < dstinfo->num_components; ci++) {
711 int v_samp_factor = dstinfo->comp_info[ci].v_samp_factor;
714 MCU_rows = dstinfo->image_height / (max_v_samp_factor * DCTSIZE);
716 dstinfo->image_height = MCU_rows * (max_v_samp_factor * DCTSIZE);
733 j_compress_ptr dstinfo,
746 if ((dstinfo->jpeg_color_space == JCS_YCbCr &&
747 dstinfo->num_components == 3) ||
748 (dstinfo->jpeg_color_space == JCS_GRAYSCALE &&
749 dstinfo->num_components == 1)) {
751 int sv_quant_tbl_no = dstinfo->comp_info[0].quant_tbl_no;
752 jpeg_set_colorspace(dstinfo, JCS_GRAYSCALE);
753 dstinfo->comp_info[0].quant_tbl_no = sv_quant_tbl_no;
756 ERREXIT(dstinfo, JERR_CONVERSION_NOTIMPL);
767 trim_right_edge(dstinfo);
771 trim_bottom_edge(dstinfo);
774 transpose_critical_parameters(dstinfo);
778 transpose_critical_parameters(dstinfo);
780 trim_right_edge(dstinfo);
781 trim_bottom_edge(dstinfo);
785 transpose_critical_parameters(dstinfo);
787 trim_right_edge(dstinfo);
791 trim_right_edge(dstinfo);
792 trim_bottom_edge(dstinfo);
796 transpose_critical_parameters(dstinfo);
798 trim_bottom_edge(dstinfo);
820 j_compress_ptr dstinfo,
830 do_flip_h(srcinfo, dstinfo, src_coef_arrays);
833 do_flip_v(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
836 do_transpose(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
839 do_transverse(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
842 do_rot_90(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
845 do_rot_180(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
848 do_rot_270(srcinfo, dstinfo, src_coef_arrays, dst_coef_arrays);
886 jcopy_markers_execute (j_decompress_ptr srcinfo, j_compress_ptr dstinfo,
897 if (dstinfo->write_JFIF_header &&
906 if (dstinfo->write_Adobe_marker &&
919 jpeg_write_m_header(dstinfo, marker->marker, marker->data_length);
921 jpeg_write_m_byte(dstinfo, marker->data[i]);
924 jpeg_write_marker(dstinfo, marker->marker,