Lines Matching refs:cinfo

70 static void libjpeg_init_destination (j_compress_ptr cinfo) {  in libjpeg_init_destination()  argument
71 libjpeg_destination_mgr* dest = (libjpeg_destination_mgr*)cinfo->dest; in libjpeg_init_destination()
78 static boolean libjpeg_empty_output_buffer(j_compress_ptr cinfo) { in libjpeg_empty_output_buffer() argument
79 libjpeg_destination_mgr* dest = (libjpeg_destination_mgr*)cinfo->dest; in libjpeg_empty_output_buffer()
86 static void libjpeg_term_destination (j_compress_ptr cinfo) { in libjpeg_term_destination() argument
87 libjpeg_destination_mgr* dest = (libjpeg_destination_mgr*)cinfo->dest; in libjpeg_term_destination()
423 jpeg_compress_struct cinfo; in encode() local
474 cinfo.err = jpeg_std_error(&jerr); in encode()
476 jpeg_create_compress(&cinfo); in encode()
488 cinfo.dest = &dest_mgr; in encode()
489 cinfo.image_width = out_width - right_crop; in encode()
490 cinfo.image_height = out_height; in encode()
491 cinfo.input_components = 3; in encode()
492 cinfo.in_color_space = JCS_YCbCr; in encode()
493 cinfo.input_gamma = 1; in encode()
495 jpeg_set_defaults(&cinfo); in encode()
496 jpeg_set_quality(&cinfo, input->quality, TRUE); in encode()
497 cinfo.dct_method = JDCT_IFAST; in encode()
499 jpeg_start_compress(&cinfo, TRUE); in encode()
505 while ((cinfo.next_scanline < cinfo.image_height) && !mCancelEncoding) { in encode()
518 jpeg_write_scanlines(&cinfo, row, 1); in encode()
523 if (!(cinfo.next_scanline % 2)) in encode()
531 jpeg_finish_compress(&cinfo); in encode()
532 jpeg_destroy_compress(&cinfo); in encode()