Lines Matching refs:jpeg_info
277 static int GetCharacter(j_decompress_ptr jpeg_info) in GetCharacter() argument
279 if (jpeg_info->src->bytes_in_buffer == 0) in GetCharacter()
280 (void) (*jpeg_info->src->fill_input_buffer)(jpeg_info); in GetCharacter()
281 jpeg_info->src->bytes_in_buffer--; in GetCharacter()
282 return((int) GETJOCTET(*jpeg_info->src->next_input_byte++)); in GetCharacter()
314 static void JPEGErrorHandler(j_common_ptr jpeg_info) in JPEGErrorHandler() argument
329 error_manager=(ErrorManager *) jpeg_info->client_data; in JPEGErrorHandler()
332 (jpeg_info->err->format_message)(jpeg_info,message); in JPEGErrorHandler()
345 static void JPEGProgressHandler(j_common_ptr jpeg_info) in JPEGProgressHandler() argument
356 error_manager=(ErrorManager *) jpeg_info->client_data; in JPEGProgressHandler()
359 if (jpeg_info->is_decompressor == 0) in JPEGProgressHandler()
361 if (((j_decompress_ptr) jpeg_info)->input_scan_number < MaxJPEGScans) in JPEGProgressHandler()
368 static MagickBooleanType JPEGWarningHandler(j_common_ptr jpeg_info,int level) in JPEGWarningHandler() argument
385 error_manager=(ErrorManager *) jpeg_info->client_data; in JPEGWarningHandler()
393 (jpeg_info->err->format_message)(jpeg_info,message); in JPEGWarningHandler()
394 if (jpeg_info->err->num_warnings++ < JPEGExcessiveWarnings) in JPEGWarningHandler()
400 (level >= jpeg_info->err->trace_level)) in JPEGWarningHandler()
405 (jpeg_info->err->format_message)(jpeg_info,message); in JPEGWarningHandler()
412 static boolean ReadComment(j_decompress_ptr jpeg_info) in ReadComment() argument
438 error_manager=(ErrorManager *) jpeg_info->client_data; in ReadComment()
441 length=(size_t) ((size_t) GetCharacter(jpeg_info) << 8); in ReadComment()
442 length+=GetCharacter(jpeg_info); in ReadComment()
463 c=GetCharacter(jpeg_info); in ReadComment()
476 static boolean ReadICCProfile(j_decompress_ptr jpeg_info) in ReadICCProfile() argument
509 length=(size_t) ((size_t) GetCharacter(jpeg_info) << 8); in ReadICCProfile()
510 length+=(size_t) GetCharacter(jpeg_info); in ReadICCProfile()
515 if (GetCharacter(jpeg_info) == EOF) in ReadICCProfile()
520 magick[i]=(char) GetCharacter(jpeg_info); in ReadICCProfile()
527 if (GetCharacter(jpeg_info) == EOF) in ReadICCProfile()
531 (void) GetCharacter(jpeg_info); /* id */ in ReadICCProfile()
532 (void) GetCharacter(jpeg_info); /* markers */ in ReadICCProfile()
534 error_manager=(ErrorManager *) jpeg_info->client_data; in ReadICCProfile()
551 c=GetCharacter(jpeg_info); in ReadICCProfile()
580 static boolean ReadIPTCProfile(j_decompress_ptr jpeg_info) in ReadIPTCProfile() argument
613 length=(size_t) ((size_t) GetCharacter(jpeg_info) << 8); in ReadIPTCProfile()
614 length+=(size_t) GetCharacter(jpeg_info); in ReadIPTCProfile()
619 if (GetCharacter(jpeg_info) == EOF) in ReadIPTCProfile()
627 magick[i]=(char) GetCharacter(jpeg_info); in ReadIPTCProfile()
638 if (GetCharacter(jpeg_info) == EOF) in ReadIPTCProfile()
646 if (GetCharacter(jpeg_info) == EOF) in ReadIPTCProfile()
651 error_manager=(ErrorManager *) jpeg_info->client_data; in ReadIPTCProfile()
668 c=GetCharacter(jpeg_info); in ReadIPTCProfile()
698 static boolean ReadProfile(j_decompress_ptr jpeg_info) in ReadProfile() argument
736 length=(size_t) ((size_t) GetCharacter(jpeg_info) << 8); in ReadProfile()
737 length+=(size_t) GetCharacter(jpeg_info); in ReadProfile()
741 marker=jpeg_info->unread_marker-JPEG_APP0; in ReadProfile()
743 error_manager=(ErrorManager *) jpeg_info->client_data; in ReadProfile()
760 c=GetCharacter(jpeg_info); in ReadProfile()
866 static void JPEGSetImageQuality(struct jpeg_decompress_struct *jpeg_info, in JPEGSetImageQuality() argument
894 if (jpeg_info->quant_tbl_ptrs[i] != NULL) in JPEGSetImageQuality()
896 sum+=jpeg_info->quant_tbl_ptrs[i]->quantval[j]; in JPEGSetImageQuality()
898 if ((jpeg_info->quant_tbl_ptrs[0] != NULL) && in JPEGSetImageQuality()
899 (jpeg_info->quant_tbl_ptrs[1] != NULL)) in JPEGSetImageQuality()
932 qvalue=(ssize_t) (jpeg_info->quant_tbl_ptrs[0]->quantval[2]+ in JPEGSetImageQuality()
933 jpeg_info->quant_tbl_ptrs[0]->quantval[53]+ in JPEGSetImageQuality()
934 jpeg_info->quant_tbl_ptrs[1]->quantval[0]+ in JPEGSetImageQuality()
935 jpeg_info->quant_tbl_ptrs[1]->quantval[DCTSIZE2-1]); in JPEGSetImageQuality()
950 if (jpeg_info->quant_tbl_ptrs[0] != NULL) in JPEGSetImageQuality()
983 qvalue=(ssize_t) (jpeg_info->quant_tbl_ptrs[0]->quantval[2]+ in JPEGSetImageQuality()
984 jpeg_info->quant_tbl_ptrs[0]->quantval[53]); in JPEGSetImageQuality()
1001 static void JPEGSetImageSamplingFactor(struct jpeg_decompress_struct *jpeg_info, Image *image,Exce… in JPEGSetImageSamplingFactor() argument
1006 switch (jpeg_info->out_color_space) in JPEGSetImageSamplingFactor()
1012 "%dx%d,%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1013 jpeg_info->comp_info[0].v_samp_factor, in JPEGSetImageSamplingFactor()
1014 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
1015 jpeg_info->comp_info[1].v_samp_factor, in JPEGSetImageSamplingFactor()
1016 jpeg_info->comp_info[2].h_samp_factor, in JPEGSetImageSamplingFactor()
1017 jpeg_info->comp_info[2].v_samp_factor, in JPEGSetImageSamplingFactor()
1018 jpeg_info->comp_info[3].h_samp_factor, in JPEGSetImageSamplingFactor()
1019 jpeg_info->comp_info[3].v_samp_factor); in JPEGSetImageSamplingFactor()
1027 jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1028 jpeg_info->comp_info[0].v_samp_factor); in JPEGSetImageSamplingFactor()
1035 "%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1036 jpeg_info->comp_info[0].v_samp_factor, in JPEGSetImageSamplingFactor()
1037 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
1038 jpeg_info->comp_info[1].v_samp_factor, in JPEGSetImageSamplingFactor()
1039 jpeg_info->comp_info[2].h_samp_factor, in JPEGSetImageSamplingFactor()
1040 jpeg_info->comp_info[2].v_samp_factor); in JPEGSetImageSamplingFactor()
1046 jpeg_info->out_color_space); in JPEGSetImageSamplingFactor()
1048 "%dx%d,%dx%d,%dx%d,%dx%d",jpeg_info->comp_info[0].h_samp_factor, in JPEGSetImageSamplingFactor()
1049 jpeg_info->comp_info[0].v_samp_factor, in JPEGSetImageSamplingFactor()
1050 jpeg_info->comp_info[1].h_samp_factor, in JPEGSetImageSamplingFactor()
1051 jpeg_info->comp_info[1].v_samp_factor, in JPEGSetImageSamplingFactor()
1052 jpeg_info->comp_info[2].h_samp_factor, in JPEGSetImageSamplingFactor()
1053 jpeg_info->comp_info[2].v_samp_factor, in JPEGSetImageSamplingFactor()
1054 jpeg_info->comp_info[3].h_samp_factor, in JPEGSetImageSamplingFactor()
1055 jpeg_info->comp_info[3].v_samp_factor); in JPEGSetImageSamplingFactor()
1104 jpeg_info; in ReadJPEGImage() local
1149 (void) memset(&jpeg_info,0,sizeof(jpeg_info)); in ReadJPEGImage()
1152 jpeg_info.err=jpeg_std_error(&jpeg_error); in ReadJPEGImage()
1153 jpeg_info.err->emit_message=(void (*)(j_common_ptr,int)) JPEGWarningHandler; in ReadJPEGImage()
1154 jpeg_info.err->error_exit=(void (*)(j_common_ptr)) JPEGErrorHandler; in ReadJPEGImage()
1160 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1169 jpeg_info.client_data=(void *) &error_manager; in ReadJPEGImage()
1170 jpeg_create_decompress(&jpeg_info); in ReadJPEGImage()
1172 jpeg_info.mem->max_memory_to_use=(long) GetMaxMemoryRequest(); in ReadJPEGImage()
1174 jpeg_info.progress=(&jpeg_progress); in ReadJPEGImage()
1175 JPEGSourceManager(&jpeg_info,image); in ReadJPEGImage()
1176 jpeg_set_marker_processor(&jpeg_info,JPEG_COM,ReadComment); in ReadJPEGImage()
1179 jpeg_set_marker_processor(&jpeg_info,ICC_MARKER,ReadICCProfile); in ReadJPEGImage()
1181 jpeg_set_marker_processor(&jpeg_info,IPTC_MARKER,ReadIPTCProfile); in ReadJPEGImage()
1185 jpeg_set_marker_processor(&jpeg_info,(int) (JPEG_APP0+i),ReadProfile); in ReadJPEGImage()
1186 i=(ssize_t) jpeg_read_header(&jpeg_info,TRUE); in ReadJPEGImage()
1190 jpeg_info.out_color_space=JCS_YCbCr; in ReadJPEGImage()
1195 if ((jpeg_info.saw_JFIF_marker != 0) && (jpeg_info.X_density != 1) && in ReadJPEGImage()
1196 (jpeg_info.Y_density != 1)) in ReadJPEGImage()
1198 image->resolution.x=(double) jpeg_info.X_density; in ReadJPEGImage()
1199 image->resolution.y=(double) jpeg_info.Y_density; in ReadJPEGImage()
1200 units=(size_t) jpeg_info.density_unit; in ReadJPEGImage()
1209 (jpeg_info.out_color_space != JCS_YCbCr)) in ReadJPEGImage()
1226 jpeg_calc_output_dimensions(&jpeg_info); in ReadJPEGImage()
1227 image->magick_columns=jpeg_info.output_width; in ReadJPEGImage()
1228 image->magick_rows=jpeg_info.output_height; in ReadJPEGImage()
1231 scale_factor=jpeg_info.output_width/geometry_info.rho; in ReadJPEGImage()
1233 (scale_factor > (jpeg_info.output_height/geometry_info.sigma))) in ReadJPEGImage()
1234 scale_factor=jpeg_info.output_height/geometry_info.sigma; in ReadJPEGImage()
1235 jpeg_info.scale_num=1U; in ReadJPEGImage()
1236 jpeg_info.scale_denom=(unsigned int) scale_factor; in ReadJPEGImage()
1237 jpeg_calc_output_dimensions(&jpeg_info); in ReadJPEGImage()
1244 image->interlace=jpeg_info.process == JPROC_PROGRESSIVE ? in ReadJPEGImage()
1246 image->compression=jpeg_info.process == JPROC_LOSSLESS ? in ReadJPEGImage()
1248 if (jpeg_info.data_precision > 8) in ReadJPEGImage()
1252 if (jpeg_info.data_precision == 16) in ReadJPEGImage()
1253 jpeg_info.data_precision=12; in ReadJPEGImage()
1255 image->interlace=jpeg_info.progressive_mode != 0 ? JPEGInterlace : in ReadJPEGImage()
1269 jpeg_info.quantize_colors=TRUE; in ReadJPEGImage()
1270 jpeg_info.desired_number_of_colors=(int) StringToUnsignedLong(option); in ReadJPEGImage()
1274 jpeg_info.do_block_smoothing=IsStringTrue(option) != MagickFalse ? TRUE : in ReadJPEGImage()
1284 jpeg_info.dct_method=JDCT_DEFAULT; in ReadJPEGImage()
1291 jpeg_info.dct_method=JDCT_FASTEST; in ReadJPEGImage()
1293 jpeg_info.dct_method=JDCT_FLOAT; in ReadJPEGImage()
1300 jpeg_info.dct_method=JDCT_IFAST; in ReadJPEGImage()
1302 jpeg_info.dct_method=JDCT_ISLOW; in ReadJPEGImage()
1308 jpeg_info.do_fancy_upsampling=IsStringTrue(option) != MagickFalse ? TRUE : in ReadJPEGImage()
1310 jpeg_calc_output_dimensions(&jpeg_info); in ReadJPEGImage()
1311 image->columns=jpeg_info.output_width; in ReadJPEGImage()
1312 image->rows=jpeg_info.output_height; in ReadJPEGImage()
1313 image->depth=(size_t) jpeg_info.data_precision; in ReadJPEGImage()
1314 switch (jpeg_info.out_color_space) in ReadJPEGImage()
1341 jpeg_info.out_color_space=JCS_YCbCr; in ReadJPEGImage()
1347 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1350 if ((jpeg_info.output_components == 1) && (jpeg_info.quantize_colors == 0)) in ReadJPEGImage()
1358 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1371 (int) jpeg_info.data_precision); in ReadJPEGImage()
1373 (int) jpeg_info.output_width,(int) jpeg_info.output_height); in ReadJPEGImage()
1375 JPEGSetImageQuality(&jpeg_info,image); in ReadJPEGImage()
1376 JPEGSetImageSamplingFactor(&jpeg_info,image,exception); in ReadJPEGImage()
1378 jpeg_info.out_color_space); in ReadJPEGImage()
1381 if (jpeg_info.arith_code == TRUE) in ReadJPEGImage()
1386 jpeg_info.dct_method=JDCT_IFAST; in ReadJPEGImage()
1389 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1396 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1399 (void) jpeg_start_decompress(&jpeg_info); in ReadJPEGImage()
1400 if ((jpeg_info.output_components != 1) && in ReadJPEGImage()
1401 (jpeg_info.output_components != 3) && (jpeg_info.output_components != 4)) in ReadJPEGImage()
1403 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1407 jpeg_info.output_components*sizeof(*jpeg_pixels)); in ReadJPEGImage()
1410 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1415 jpeg_info.output_components*sizeof(*jpeg_pixels)); in ReadJPEGImage()
1423 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
1430 if (jpeg_info.quantize_colors != 0) in ReadJPEGImage()
1432 image->colors=(size_t) jpeg_info.actual_number_of_colors; in ReadJPEGImage()
1433 if (jpeg_info.out_color_space == JCS_GRAYSCALE) in ReadJPEGImage()
1437 jpeg_info.colormap[0][i]); in ReadJPEGImage()
1446 jpeg_info.colormap[0][i]); in ReadJPEGImage()
1448 jpeg_info.colormap[1][i]); in ReadJPEGImage()
1450 jpeg_info.colormap[2][i]); in ReadJPEGImage()
1463 if (jpeg_read_scanlines(&jpeg_info,scanline,1) != 1) in ReadJPEGImage()
1473 if (jpeg_info.data_precision > 8) in ReadJPEGImage()
1479 jpeg_info.data_precision); in ReadJPEGImage()
1480 if (jpeg_info.output_components == 1) in ReadJPEGImage()
1522 if (jpeg_info.output_components == 1) in ReadJPEGImage()
1568 jpeg_abort_decompress(&jpeg_info); in ReadJPEGImage()
1576 (void) jpeg_finish_decompress(&jpeg_info); in ReadJPEGImage()
1581 jpeg_destroy_decompress(&jpeg_info); in ReadJPEGImage()
2021 static void WriteProfile(j_compress_ptr jpeg_info,Image *image, in WriteProfile() argument
2060 jpeg_write_marker(jpeg_info,id,GetStringInfoDatum(profile)+i, in WriteProfile()
2073 jpeg_write_marker(jpeg_info,XML_MARKER,GetStringInfoDatum(profile), in WriteProfile()
2092 jpeg_write_marker(jpeg_info,ICC_MARKER,GetStringInfoDatum( in WriteProfile()
2127 jpeg_write_marker(jpeg_info,IPTC_MARKER,GetStringInfoDatum( in WriteProfile()
2148 jpeg_write_marker(jpeg_info,XML_MARKER, in WriteProfile()
2262 jpeg_info; in WriteJPEGImage() local
2291 (void) memset(&jpeg_info,0,sizeof(jpeg_info)); in WriteJPEGImage()
2294 jpeg_info.client_data=(void *) volatile_image; in WriteJPEGImage()
2295 jpeg_info.err=jpeg_std_error(&jpeg_error); in WriteJPEGImage()
2296 jpeg_info.err->emit_message=(void (*)(j_common_ptr,int)) JPEGWarningHandler; in WriteJPEGImage()
2297 jpeg_info.err->error_exit=(void (*)(j_common_ptr)) JPEGErrorHandler; in WriteJPEGImage()
2303 jpeg_destroy_compress(&jpeg_info); in WriteJPEGImage()
2307 jpeg_info.client_data=(void *) &error_manager; in WriteJPEGImage()
2308 jpeg_create_compress(&jpeg_info); in WriteJPEGImage()
2309 JPEGDestinationManager(&jpeg_info,image); in WriteJPEGImage()
2313 jpeg_info.image_width=(unsigned int) image->columns; in WriteJPEGImage()
2314 jpeg_info.image_height=(unsigned int) image->rows; in WriteJPEGImage()
2315 jpeg_info.input_components=3; in WriteJPEGImage()
2316 jpeg_info.data_precision=8; in WriteJPEGImage()
2317 jpeg_info.in_color_space=JCS_RGB; in WriteJPEGImage()
2322 jpeg_info.input_components=4; in WriteJPEGImage()
2323 jpeg_info.in_color_space=JCS_CMYK; in WriteJPEGImage()
2330 jpeg_info.in_color_space=JCS_YCbCr; in WriteJPEGImage()
2338 jpeg_info.input_components=1; in WriteJPEGImage()
2339 jpeg_info.in_color_space=JCS_GRAYSCALE; in WriteJPEGImage()
2349 jpeg_info.input_components=1; in WriteJPEGImage()
2350 jpeg_info.in_color_space=JCS_GRAYSCALE; in WriteJPEGImage()
2355 jpeg_set_defaults(&jpeg_info); in WriteJPEGImage()
2356 if (jpeg_info.in_color_space == JCS_CMYK) in WriteJPEGImage()
2357 jpeg_set_colorspace(&jpeg_info,JCS_YCCK); in WriteJPEGImage()
2358 if ((jpeg_info.data_precision != 12) && (image->depth <= 8)) in WriteJPEGImage()
2359 jpeg_info.data_precision=8; in WriteJPEGImage()
2361 jpeg_info.data_precision=BITS_IN_JSAMPLE; in WriteJPEGImage()
2370 jpeg_info.write_JFIF_header=TRUE; in WriteJPEGImage()
2371 jpeg_info.X_density=(UINT16) image->resolution.x; in WriteJPEGImage()
2372 jpeg_info.Y_density=(UINT16) image->resolution.y; in WriteJPEGImage()
2377 jpeg_info.density_unit=(UINT8) 1; in WriteJPEGImage()
2379 jpeg_info.density_unit=(UINT8) 2; in WriteJPEGImage()
2389 jpeg_info.dct_method=JDCT_DEFAULT; in WriteJPEGImage()
2396 jpeg_info.dct_method=JDCT_FASTEST; in WriteJPEGImage()
2398 jpeg_info.dct_method=JDCT_FLOAT; in WriteJPEGImage()
2405 jpeg_info.dct_method=JDCT_IFAST; in WriteJPEGImage()
2407 jpeg_info.dct_method=JDCT_ISLOW; in WriteJPEGImage()
2413 jpeg_info.optimize_coding=IsStringTrue(option) != MagickFalse ? TRUE : in WriteJPEGImage()
2420 length=(MagickSizeType) jpeg_info.input_components*image->columns* in WriteJPEGImage()
2430 jpeg_info.optimize_coding=status == MagickFalse ? FALSE : TRUE; in WriteJPEGImage()
2437 jpeg_info.arith_code=TRUE; in WriteJPEGImage()
2438 jpeg_info.optimize_coding=FALSE; // Not supported. in WriteJPEGImage()
2448 jpeg_simple_progression(&jpeg_info); in WriteJPEGImage()
2487 jpeg_simple_lossless(&jpeg_info,predictor,point_transform); in WriteJPEGImage()
2547 jpeg_set_quality(&jpeg_info,quality,TRUE); in WriteJPEGImage()
2549 jpeg_info.dct_method=JDCT_IFAST; in WriteJPEGImage()
2566 jpeg_info.q_scale_factor[0]=jpeg_quality_scaling((int) in WriteJPEGImage()
2568 jpeg_info.q_scale_factor[1]=jpeg_quality_scaling((int) in WriteJPEGImage()
2570 jpeg_default_qtables(&jpeg_info,TRUE); in WriteJPEGImage()
2574 colorspace=jpeg_info.in_color_space; in WriteJPEGImage()
2581 if ((J_COLOR_SPACE) colorspace == jpeg_info.in_color_space) in WriteJPEGImage()
2602 jpeg_info.comp_info[i].h_samp_factor=1; in WriteJPEGImage()
2603 jpeg_info.comp_info[i].v_samp_factor=1; in WriteJPEGImage()
2631 jpeg_info.comp_info[i].h_samp_factor=(int) geometry_info.rho; in WriteJPEGImage()
2632 jpeg_info.comp_info[i].v_samp_factor=(int) geometry_info.sigma; in WriteJPEGImage()
2639 jpeg_info.comp_info[i].h_samp_factor=1; in WriteJPEGImage()
2640 jpeg_info.comp_info[i].v_samp_factor=1; in WriteJPEGImage()
2656 jpeg_info.comp_info[i].quant_tbl_no=0; in WriteJPEGImage()
2657 jpeg_add_quant_table(&jpeg_info,0,table->levels, in WriteJPEGImage()
2665 jpeg_info.comp_info[i].quant_tbl_no=1; in WriteJPEGImage()
2666 jpeg_add_quant_table(&jpeg_info,1,table->levels, in WriteJPEGImage()
2674 jpeg_info.comp_info[i].quant_tbl_no=2; in WriteJPEGImage()
2675 jpeg_add_quant_table(&jpeg_info,2,table->levels, in WriteJPEGImage()
2683 jpeg_info.comp_info[i].quant_tbl_no=3; in WriteJPEGImage()
2684 jpeg_add_quant_table(&jpeg_info,3,table->levels, in WriteJPEGImage()
2689 jpeg_start_compress(&jpeg_info,TRUE); in WriteJPEGImage()
2707 "JPEG data precision: %d",(int) jpeg_info.data_precision); in WriteJPEGImage()
2737 jpeg_info.comp_info[0].h_samp_factor, in WriteJPEGImage()
2738 jpeg_info.comp_info[0].v_samp_factor, in WriteJPEGImage()
2739 jpeg_info.comp_info[1].h_samp_factor, in WriteJPEGImage()
2740 jpeg_info.comp_info[1].v_samp_factor, in WriteJPEGImage()
2741 jpeg_info.comp_info[2].h_samp_factor, in WriteJPEGImage()
2742 jpeg_info.comp_info[2].v_samp_factor, in WriteJPEGImage()
2743 jpeg_info.comp_info[3].h_samp_factor, in WriteJPEGImage()
2744 jpeg_info.comp_info[3].v_samp_factor); in WriteJPEGImage()
2752 "Sampling factors: %dx%d",jpeg_info.comp_info[0].h_samp_factor, in WriteJPEGImage()
2753 jpeg_info.comp_info[0].v_samp_factor); in WriteJPEGImage()
2763 jpeg_info.comp_info[0].h_samp_factor, in WriteJPEGImage()
2764 jpeg_info.comp_info[0].v_samp_factor, in WriteJPEGImage()
2765 jpeg_info.comp_info[1].h_samp_factor, in WriteJPEGImage()
2766 jpeg_info.comp_info[1].v_samp_factor, in WriteJPEGImage()
2767 jpeg_info.comp_info[2].h_samp_factor, in WriteJPEGImage()
2768 jpeg_info.comp_info[2].v_samp_factor); in WriteJPEGImage()
2779 jpeg_info.comp_info[0].h_samp_factor, in WriteJPEGImage()
2780 jpeg_info.comp_info[0].v_samp_factor, in WriteJPEGImage()
2781 jpeg_info.comp_info[1].h_samp_factor, in WriteJPEGImage()
2782 jpeg_info.comp_info[1].v_samp_factor, in WriteJPEGImage()
2783 jpeg_info.comp_info[2].h_samp_factor, in WriteJPEGImage()
2784 jpeg_info.comp_info[2].v_samp_factor); in WriteJPEGImage()
2793 jpeg_info.comp_info[0].h_samp_factor, in WriteJPEGImage()
2794 jpeg_info.comp_info[0].v_samp_factor, in WriteJPEGImage()
2795 jpeg_info.comp_info[1].h_samp_factor, in WriteJPEGImage()
2796 jpeg_info.comp_info[1].v_samp_factor, in WriteJPEGImage()
2797 jpeg_info.comp_info[2].h_samp_factor, in WriteJPEGImage()
2798 jpeg_info.comp_info[2].v_samp_factor, in WriteJPEGImage()
2799 jpeg_info.comp_info[3].h_samp_factor, in WriteJPEGImage()
2800 jpeg_info.comp_info[3].v_samp_factor); in WriteJPEGImage()
2811 jpeg_write_marker(&jpeg_info,JPEG_COM,(unsigned char *) value+i, in WriteJPEGImage()
2814 WriteProfile(&jpeg_info,image,exception); in WriteJPEGImage()
2819 jpeg_info.input_components*sizeof(*jpeg_pixels)); in WriteJPEGImage()
2825 jpeg_destroy_compress(&jpeg_info); in WriteJPEGImage()
2833 jpeg_info.data_precision); in WriteJPEGImage()
2836 if (jpeg_info.data_precision <= 8) in WriteJPEGImage()
2838 if ((jpeg_info.in_color_space == JCS_RGB) || in WriteJPEGImage()
2839 (jpeg_info.in_color_space == JCS_YCbCr)) in WriteJPEGImage()
2859 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
2866 if (jpeg_info.in_color_space == JCS_GRAYSCALE) in WriteJPEGImage()
2885 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
2919 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
2927 if (jpeg_info.in_color_space == JCS_GRAYSCALE) in WriteJPEGImage()
2946 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
2953 if ((jpeg_info.in_color_space == JCS_RGB) || in WriteJPEGImage()
2954 (jpeg_info.in_color_space == JCS_YCbCr)) in WriteJPEGImage()
2974 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
3008 (void) jpeg_write_scanlines(&jpeg_info,scanline,1); in WriteJPEGImage()
3015 jpeg_finish_compress(&jpeg_info); in WriteJPEGImage()
3019 jpeg_destroy_compress(&jpeg_info); in WriteJPEGImage()