Lines Matching refs:cinfo

90 rgb_ycc_start (j_compress_ptr cinfo)
92 my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
98 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
134 rgb_ycc_convert (j_compress_ptr cinfo,
138 my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
144 JDIMENSION num_cols = cinfo->image_width;
190 rgb_gray_convert (j_compress_ptr cinfo,
194 my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
200 JDIMENSION num_cols = cinfo->image_width;
228 cmyk_ycck_convert (j_compress_ptr cinfo,
232 my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
238 JDIMENSION num_cols = cinfo->image_width;
283 grayscale_convert (j_compress_ptr cinfo,
290 JDIMENSION num_cols = cinfo->image_width;
291 int instride = cinfo->input_components;
312 null_convert (j_compress_ptr cinfo,
320 int nc = cinfo->num_components;
321 JDIMENSION num_cols = cinfo->image_width;
344 null_method (j_compress_ptr cinfo)
355 jinit_color_converter (j_compress_ptr cinfo)
360 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
362 cinfo->cconvert = (struct jpeg_color_converter *) cconvert;
367 switch (cinfo->in_color_space) {
369 if (cinfo->input_components != 1)
370 ERREXIT(cinfo, JERR_BAD_IN_COLORSPACE);
375 if (cinfo->input_components != RGB_PIXELSIZE)
376 ERREXIT(cinfo, JERR_BAD_IN_COLORSPACE);
381 if (cinfo->input_components != 3)
382 ERREXIT(cinfo, JERR_BAD_IN_COLORSPACE);
387 if (cinfo->input_components != 4)
388 ERREXIT(cinfo, JERR_BAD_IN_COLORSPACE);
392 if (cinfo->input_components < 1)
393 ERREXIT(cinfo, JERR_BAD_IN_COLORSPACE);
398 switch (cinfo->jpeg_color_space) {
400 if (cinfo->num_components != 1)
401 ERREXIT(cinfo, JERR_BAD_J_COLORSPACE);
402 if (cinfo->in_color_space == JCS_GRAYSCALE)
404 else if (cinfo->in_color_space == JCS_RGB) {
407 } else if (cinfo->in_color_space == JCS_YCbCr)
410 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
414 if (cinfo->num_components != 3)
415 ERREXIT(cinfo, JERR_BAD_J_COLORSPACE);
416 if (cinfo->in_color_space == JCS_RGB && RGB_PIXELSIZE == 3)
419 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
423 if (cinfo->num_components != 3)
424 ERREXIT(cinfo, JERR_BAD_J_COLORSPACE);
425 if (cinfo->in_color_space == JCS_RGB) {
428 } else if (cinfo->in_color_space == JCS_YCbCr)
431 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
435 if (cinfo->num_components != 4)
436 ERREXIT(cinfo, JERR_BAD_J_COLORSPACE);
437 if (cinfo->in_color_space == JCS_CMYK)
440 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
444 if (cinfo->num_components != 4)
445 ERREXIT(cinfo, JERR_BAD_J_COLORSPACE);
446 if (cinfo->in_color_space == JCS_CMYK) {
449 } else if (cinfo->in_color_space == JCS_YCCK)
452 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);
456 if (cinfo->jpeg_color_space != cinfo->in_color_space ||
457 cinfo->num_components != cinfo->input_components)
458 ERREXIT(cinfo, JERR_CONVERSION_NOTIMPL);