Package avrora.core

Examples of avrora.core.Instr$SBR


            for ( int cntr = 0; cntr < program.program_end; cntr++ ) {
                data[cntr] = program.readProgramByte(cntr);
            }

            for ( int cntr = 0; cntr < program.program_end; cntr = program.getNextPC(cntr) ) {
                Instr i = program.readInstr(cntr);
                if ( i == null ) continue;

                instrs[cntr] = disassembler.disassemble(0, data, cntr);
            }
        }
View Full Code Here


        }

        public TestResult match(Throwable t) {
           
            for ( int cntr = 0; cntr < program.program_end; cntr = program.getNextPC(cntr) ) {
                Instr i = program.readInstr(cntr);
                if ( i == null ) continue;

                Instr id = instrs[cntr];
                if ( !i.equals(id) ) {
                    return new TestResult.TestFailure("disassembler error at "+StringUtil.addrToString(cntr)
                            +", expected: "+i+" received: "+id);
                }
            }
View Full Code Here

        private List computeInstrProfile() {
            HashMap cmap = new HashMap();

            for ( int cntr = 0; cntr < icount.length; cntr++ ) {
                if ( icount[cntr] == 0 ) continue;
                Instr i = program.readInstr(cntr);
                if ( i == null ) continue;
                String variant = i.getVariant();
                InstrProfileEntry entry = (InstrProfileEntry)cmap.get(variant);
                if  ( entry == null ) {
                    entry = new InstrProfileEntry();
                    entry.name = variant;
                    cmap.put(variant, entry);
View Full Code Here

         * find all sleep opcodes in the program
         */
        private void findSleep() {
            int i = 0;
            while (i < program.program_length) {
                Instr instr = program.readInstr(i);
                if (instr != null) {
                    if ("sleep".equals(instr.properties.name)) {
                        simulator.insertProbe(sleepProbe, i);
                    }
                    i += instr.getSize();
                } else
                    i += 1;
            }
        }
View Full Code Here

  public int getElementInstanceTag() {
    return elementInstanceTag;
  }

  void decodeSBR(BitStream in, SampleFrequency sf, int count, boolean stereo, boolean crc, boolean downSampled) throws AACException {
    if(sbr==null) sbr = new SBR(sf, downSampled);
    sbr.decode(in, count, stereo, crc);
  }
View Full Code Here

    //SBR
    int chs = 1;
    if(sbrPresent) {
      if(data[channel].length==config.getFrameLength()) LOGGER.log(Level.WARNING, "SBR data present, but buffer has normal size!");
      final SBR sbr = scelfe.getSBR();
      if(sbr.isPSUsed()) {
        chs = 2;
        scelfe.getSBR().process(data[channel], data[channel+1], false);
      }
      else scelfe.getSBR().process(data[channel], null, false);
    }
View Full Code Here

TOP

Related Classes of avrora.core.Instr$SBR

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.