private void fill_dc_scans(ref int scanIndex, int ncomps, int Ah, int Al)
{
if (ncomps <= JpegConstants.MAX_COMPS_IN_SCAN)
{
/* Single interleaved DC scan */
m_script_space[scanIndex].comps_in_scan = ncomps;
for (int ci = 0; ci < ncomps; ci++)
m_script_space[scanIndex].component_index[ci] = ci;
m_script_space[scanIndex].Ss = 0;
m_script_space[scanIndex].Se = 0;
m_script_space[scanIndex].Ah = Ah;
m_script_space[scanIndex].Al = Al;
scanIndex++;
}
else
{
/* Noninterleaved DC scan for each component */
fill_scans(ref scanIndex, ncomps, 0, 0, Ah, Al);
}
}