fi.helsinki.cs.ohtu.mpeg2.audio.mpa
Class MP2Data.Channel

java.lang.Object
  extended by fi.helsinki.cs.ohtu.mpeg2.audio.mpa.MP2Data.Channel
Enclosing class:
MP2Data

public static class MP2Data.Channel
extends java.lang.Object

Represents a single audio channel.


Field Summary
protected  int[] bitAllocation
          Bit allocation / quantization level for every sub-band
protected  int[][][] samples
          Quantized samples of the sub-bands, in three groups of 12 samples
protected  int[][] scaleFactors
          Scale factors for every sub-band for every 12 samples
protected  int[] scfsi
          Scale factor select information for every sub-band
 
Constructor Summary
MP2Data.Channel(int[] bitAllocation, int[] scfsi, int[][] scaleFactors, int[][][] samples)
          Creates a new Channel instance from the given parameters.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitAllocation

protected final int[] bitAllocation
Bit allocation / quantization level for every sub-band


scfsi

protected final int[] scfsi
Scale factor select information for every sub-band


scaleFactors

protected final int[][] scaleFactors
Scale factors for every sub-band for every 12 samples


samples

protected final int[][][] samples
Quantized samples of the sub-bands, in three groups of 12 samples

Constructor Detail

MP2Data.Channel

public MP2Data.Channel(int[] bitAllocation,
                       int[] scfsi,
                       int[][] scaleFactors,
                       int[][][] samples)
Creates a new Channel instance from the given parameters.

Parameters:
bitAllocation - Bit allocation / quantization level for every sub-band
scfsi - Scale factor select information for every sub-band
scaleFactors - Scale factors for every sub-band section
samples - Quantized samples for every sub-band