Package net.sourceforge.jaad.aac

Examples of net.sourceforge.jaad.aac.AACException


    //else LOGGER.warning("no SBR header found");

    final int len = in.getPosition()-pos;
    final int bitsLeft = count-len;
    if(bitsLeft>=8) LOGGER.log(Level.WARNING, "SBR: bits left: {0}", bitsLeft);
    else if(bitsLeft<0) throw new AACException("SBR data overread: "+bitsLeft);

    in.skipBits(bitsLeft);
  }
View Full Code Here


        N_master = table.length-1;
      }

      calculateDerivedFrequencyTable(k2);
    }
    else throw new AACException("SBR: master frequency table too long: "+len+", max. length: "+maxLen);
  }
View Full Code Here

  }

  //calculates the derived frequency border table from the master table
  private void calculateDerivedFrequencyTable(int k2) throws AACException {
    final int xOverBand = header.getXOverBand(false);
    if(N_master<=xOverBand) throw new AACException("SBR: derived frequency table: N_master="+N_master+", xOverBand="+xOverBand);
    int i;

    N_high = N_master-xOverBand;
    N_low = (N_high>>1)+(N_high-((N_high>>1)<<1));

    n[0] = N_low;
    n[1] = N_high;

    //fill high resolution table
    for(i = 0; i<=N_high; i++) {
      ftRes[HI_RES][i] = mft[i+xOverBand];
    }

    M = ftRes[HI_RES][N_high]-ftRes[HI_RES][0];
    kx = ftRes[HI_RES][0];
    if(kx>32) throw new AACException("SBR: kx>32: "+kx);
    if(kx+M>64) throw new AACException("SBR: kx+M>64: "+(kx+M));

    //fill low resolution table
    final int minus = N_high&1;
    int x = 0;
    for(i = 0; i<=N_low; i++) {
View Full Code Here

    }

    if(frameClass==VARVAR) L_E = Math.min(envCount, 5);
    else L_E = Math.min(envCount, 4);

    if(L_E<=0) throw new AACException("L_E out of range: "+L_E);

    if(L_E>1) L_Q = 2;
    else L_Q = 1;

    if(!envelopeTimeBorderVector()) {
View Full Code Here

TOP

Related Classes of net.sourceforge.jaad.aac.AACException

Copyright © 2018 www.massapicom. 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.