Exemplo n.º 1
0
        protected internal override void CreateSubbands()
        {
            int i;

            if (mode == Header.SINGLE_CHANNEL)
            {
                for (i = 0; i < num_subbands; ++i)
                {
                    subbands[i] = new SubbandLayer2(i);
                }
            }
            else if (mode == Header.JOINT_STEREO)
            {
                for (i = 0; i < header.intensity_stereo_bound(); ++i)
                {
                    subbands[i] = new SubbandLayer2Stereo(i);
                }
                for (; i < num_subbands; ++i)
                {
                    subbands[i] = new SubbandLayer2IntensityStereo(i);
                }
            }
            else
            {
                for (i = 0; i < num_subbands; ++i)
                {
                    subbands[i] = new SubbandLayer2Stereo(i);
                }
            }
        }
Exemplo n.º 2
0
        protected override void CreateSubbands()
        {
            int i;

            switch (Mode)
            {
            case Header.SINGLE_CHANNEL: {
                for (i = 0; i < NuSubbands; ++i)
                {
                    Subbands[i] = new SubbandLayer2(i);
                }
                break;
            }

            case Header.JOINT_STEREO: {
                for (i = 0; i < Header.IntensityStereoBound(); ++i)
                {
                    Subbands[i] = new SubbandLayer2Stereo(i);
                }
                for (; i < NuSubbands; ++i)
                {
                    Subbands[i] = new SubbandLayer2IntensityStereo(i);
                }
                break;
            }

            default: {
                for (i = 0; i < NuSubbands; ++i)
                {
                    Subbands[i] = new SubbandLayer2Stereo(i);
                }
                break;
            }
            }
        }
Exemplo n.º 3
0
 protected internal override void createSubbands()
 {
     int i;
     if (mode == Header.SINGLE_CHANNEL)
         for (i = 0; i < num_subbands; ++i)
             subbands[i] = new SubbandLayer2(i);
     else if (mode == Header.JOINT_STEREO)
     {
         for (i = 0; i < header.intensity_stereo_bound(); ++i)
             subbands[i] = new SubbandLayer2Stereo(i);
         for (; i < num_subbands; ++i)
             subbands[i] = new SubbandLayer2IntensityStereo(i);
     }
     else
     {
         for (i = 0; i < num_subbands; ++i)
             subbands[i] = new SubbandLayer2Stereo(i);
     }
 }