• Home
  • Raw
  • Download

Lines Matching refs:cinfo

56     struct jpeg_compress_struct cinfo = {  in write_JPEG_Buff()  local
61 jpeg_create_compress(&cinfo); in write_JPEG_Buff()
69 cinfo.dest = &dm; in write_JPEG_Buff()
73 cinfo.image_width = (JDIMENSION) image_width; in write_JPEG_Buff()
74 cinfo.image_height = (JDIMENSION) image_height; in write_JPEG_Buff()
76 cinfo.in_color_space = JCS_RGB; in write_JPEG_Buff()
77 cinfo.jpeg_color_space = JCS_RGB; in write_JPEG_Buff()
78 cinfo.input_components = 3; in write_JPEG_Buff()
80 cinfo.in_color_space = JCS_GRAYSCALE; in write_JPEG_Buff()
81 cinfo.jpeg_color_space = JCS_GRAYSCALE; in write_JPEG_Buff()
82 cinfo.input_components = 1; in write_JPEG_Buff()
85 jpeg_set_defaults(&cinfo); in write_JPEG_Buff()
90 jpeg_set_quality(&cinfo, quality, TRUE); // TRUE = limit to baseline-JPEG values in write_JPEG_Buff()
93 cinfo.density_unit = 1; // 1=dots-per-inch, 2=dots per cm in write_JPEG_Buff()
94 cinfo.X_density = (UINT16) resolution; in write_JPEG_Buff()
95 cinfo.Y_density = (UINT16) resolution; in write_JPEG_Buff()
99 cinfo.MCUs_per_row = (JDIMENSION) image_width; in write_JPEG_Buff()
100 cinfo.MCU_rows_in_scan = (JDIMENSION) image_height; in write_JPEG_Buff()
103 jpeg_start_compress(&cinfo, TRUE); in write_JPEG_Buff()
108 row_stride = image_width * cinfo.input_components; // JSAMPLEs per row in imageBuffer in write_JPEG_Buff()
111 while (cinfo.next_scanline < cinfo.image_height) { in write_JPEG_Buff()
112 row_pointer[0] = &imageBuffer[cinfo.next_scanline * row_stride]; in write_JPEG_Buff()
113 (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); in write_JPEG_Buff()
118 jpeg_finish_compress(&cinfo); in write_JPEG_Buff()
122 jpeg_destroy_compress(&cinfo); in write_JPEG_Buff()
124 *numCompBytes = (int) (cinfo.dest->next_output_byte - buffPtr); in write_JPEG_Buff()