Examples of PCE


Examples of net.sourceforge.jaad.aac.syntax.PCE

  }

  private void decode(SampleBuffer buffer) throws AACException {
    if(ADIFHeader.isPresent(in)) {
      adifHeader = ADIFHeader.readHeader(in);
      final PCE pce = adifHeader.getFirstPCE();
      config.setProfile(pce.getProfile());
      config.setSampleFrequency(pce.getSampleFrequency());
      config.setChannelConfiguration(ChannelConfiguration.forInt(pce.getChannelCount()));
    }

    if(!canDecode(config.getProfile())) throw new AACException("unsupported profile: "+config.getProfile().getDescription());

    syntacticElements.startNewFrame();
View Full Code Here

Examples of net.sourceforge.jaad.aac.syntax.PCE

          }

          if(config.channelConfiguration==ChannelConfiguration.CHANNEL_CONFIG_NONE) {
            //TODO: is this working correct? -> ISO 14496-3 part 1: 1.A.4.3
            in.skipBits(3); //PCE
            PCE pce = new PCE();
            pce.decode(in);
            config.profile = pce.getProfile();
            config.sampleFrequency = pce.getSampleFrequency();
            config.channelConfiguration = ChannelConfiguration.forInt(pce.getChannelCount());
          }

          if(in.getBitsLeft()>10) readSyncExtension(in, config);
          break;
        default:
View Full Code Here

Examples of net.sourceforge.jaad.aac.syntax.PCE

    pces = new PCE[pceCount];
    adifBufferFullness = new int[pceCount];
    for(i = 0; i<pceCount; i++) {
      if(bitstreamType) adifBufferFullness[i] = -1;
      else adifBufferFullness[i] = in.readBits(20);
      pces[i] = new PCE();
      pces[i].decode(in);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.