BitMiracle.LibJpeg.Classic.jpeg_compress_struct.fill_dc_scans C# (CSharp) Метод

fill_dc_scans() приватный Метод

Support routine: generate interleaved DC scan if possible, else N scans
private fill_dc_scans ( int &scanIndex, int ncomps, int Ah, int Al ) : void
scanIndex int
ncomps int
Ah int
Al int
Результат void
        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);
            }
        }