Lines Matching refs:ncomps

422 fill_scans (jpeg_scan_info *scanptr, int ncomps,  in fill_scans()  argument
428 for (ci = 0; ci < ncomps; ci++) { in fill_scans()
441 fill_dc_scans (jpeg_scan_info *scanptr, int ncomps, int Ah, int Al) in fill_dc_scans() argument
446 if (ncomps <= MAX_COMPS_IN_SCAN) { in fill_dc_scans()
448 scanptr->comps_in_scan = ncomps; in fill_dc_scans()
449 for (ci = 0; ci < ncomps; ci++) in fill_dc_scans()
457 scanptr = fill_scans(scanptr, ncomps, 0, 0, Ah, Al); in fill_dc_scans()
471 int ncomps = cinfo->num_components; in jpeg_simple_progression() local
480 if (ncomps == 3 && cinfo->jpeg_color_space == JCS_YCbCr) { in jpeg_simple_progression()
485 if (ncomps > MAX_COMPS_IN_SCAN) in jpeg_simple_progression()
486 nscans = 6 * ncomps; /* 2 DC + 4 AC scans per component */ in jpeg_simple_progression()
488 nscans = 2 + 4 * ncomps; /* 2 DC scans; 4 AC scans per component */ in jpeg_simple_progression()
508 if (ncomps == 3 && cinfo->jpeg_color_space == JCS_YCbCr) { in jpeg_simple_progression()
511 scanptr = fill_dc_scans(scanptr, ncomps, 0, 1); in jpeg_simple_progression()
522 scanptr = fill_dc_scans(scanptr, ncomps, 1, 0); in jpeg_simple_progression()
531 scanptr = fill_dc_scans(scanptr, ncomps, 0, 1); in jpeg_simple_progression()
532 scanptr = fill_scans(scanptr, ncomps, 1, 5, 0, 2); in jpeg_simple_progression()
533 scanptr = fill_scans(scanptr, ncomps, 6, 63, 0, 2); in jpeg_simple_progression()
535 scanptr = fill_scans(scanptr, ncomps, 1, 63, 2, 1); in jpeg_simple_progression()
537 scanptr = fill_dc_scans(scanptr, ncomps, 1, 0); in jpeg_simple_progression()
538 scanptr = fill_scans(scanptr, ncomps, 1, 63, 1, 0); in jpeg_simple_progression()