Lines Matching refs:dstinfo
68 jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo) in jpeg_copy_critical_parameters() argument
76 if (dstinfo->global_state != CSTATE_START) in jpeg_copy_critical_parameters()
77 ERREXIT1(dstinfo, JERR_BAD_STATE, dstinfo->global_state); in jpeg_copy_critical_parameters()
79 dstinfo->image_width = srcinfo->image_width; in jpeg_copy_critical_parameters()
80 dstinfo->image_height = srcinfo->image_height; in jpeg_copy_critical_parameters()
81 dstinfo->input_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
82 dstinfo->in_color_space = srcinfo->jpeg_color_space; in jpeg_copy_critical_parameters()
84 dstinfo->jpeg_width = srcinfo->output_width; in jpeg_copy_critical_parameters()
85 dstinfo->jpeg_height = srcinfo->output_height; in jpeg_copy_critical_parameters()
86 dstinfo->min_DCT_h_scaled_size = srcinfo->min_DCT_h_scaled_size; in jpeg_copy_critical_parameters()
87 dstinfo->min_DCT_v_scaled_size = srcinfo->min_DCT_v_scaled_size; in jpeg_copy_critical_parameters()
90 jpeg_set_defaults(dstinfo); in jpeg_copy_critical_parameters()
94 jpeg_set_colorspace(dstinfo, srcinfo->jpeg_color_space); in jpeg_copy_critical_parameters()
95 dstinfo->data_precision = srcinfo->data_precision; in jpeg_copy_critical_parameters()
96 dstinfo->CCIR601_sampling = srcinfo->CCIR601_sampling; in jpeg_copy_critical_parameters()
100 qtblptr = &dstinfo->quant_tbl_ptrs[tblno]; in jpeg_copy_critical_parameters()
102 *qtblptr = jpeg_alloc_quant_table((j_common_ptr)dstinfo); in jpeg_copy_critical_parameters()
111 dstinfo->num_components = srcinfo->num_components; in jpeg_copy_critical_parameters()
112 if (dstinfo->num_components < 1 || dstinfo->num_components > MAX_COMPONENTS) in jpeg_copy_critical_parameters()
113 ERREXIT2(dstinfo, JERR_COMPONENT_COUNT, dstinfo->num_components, in jpeg_copy_critical_parameters()
115 for (ci = 0, incomp = srcinfo->comp_info, outcomp = dstinfo->comp_info; in jpeg_copy_critical_parameters()
116 ci < dstinfo->num_components; ci++, incomp++, outcomp++) { in jpeg_copy_critical_parameters()
128 ERREXIT1(dstinfo, JERR_NO_QUANT_TABLE, tblno); in jpeg_copy_critical_parameters()
134 ERREXIT1(dstinfo, JERR_MISMATCHED_QUANT_TABLE, tblno); in jpeg_copy_critical_parameters()
151 dstinfo->JFIF_major_version = srcinfo->JFIF_major_version; in jpeg_copy_critical_parameters()
152 dstinfo->JFIF_minor_version = srcinfo->JFIF_minor_version; in jpeg_copy_critical_parameters()
154 dstinfo->density_unit = srcinfo->density_unit; in jpeg_copy_critical_parameters()
155 dstinfo->X_density = srcinfo->X_density; in jpeg_copy_critical_parameters()
156 dstinfo->Y_density = srcinfo->Y_density; in jpeg_copy_critical_parameters()