Top Description Inners Fields Constructors Methods
javazoom.jl.decoder

public Class LayerIIDecoder

extends LayerIDecoder
implements FrameDecoder
Class Inheritance
All Implemented Interfaces
javazoom.jl.decoder.FrameDecoder

Implements decoding of MPEG Audio Layer II frames.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
LayerIIDecoder.SubbandLayer2

Class for layer II subbands in single channel mode.

pack-priv static class
LayerIIDecoder.SubbandLayer2IntensityStereo

Class for layer II subbands in joint stereo mode.

pack-priv static class
LayerIIDecoder.SubbandLayer2Stereo

Class for layer II subbands in stereo mode.

Field Summary

Inherited from javazoom.jl.decoder.LayerIDecoder:
buffercrcfilter1filter2headermodenum_subbandsscalefactorsstreamsubbandswhich_channels

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
Inherited from javazoom.jl.decoder.LayerIDecoder:
createdecodeFramereadAllocationreadSampleDatareadScaleFactors

Constructor Detail

LayerIIDecoderback to summary
public LayerIIDecoder()

Method Detail

createSubbandsback to summary
protected void createSubbands()

Overrides javazoom.jl.decoder.LayerIDecoder.createSubbands.

readScaleFactorSelectionback to summary
protected void readScaleFactorSelection()

Overrides javazoom.jl.decoder.LayerIDecoder.readScaleFactorSelection.

javazoom.jl.decoder back to summary

pack-priv Class LayerIIDecoder.SubbandLayer2

extends Subband
Class Inheritance
Known Direct Subclasses
javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2IntensityStereo, javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2Stereo

Class for layer II subbands in single channel mode.

Field Summary

Modifier and TypeField and Description
protected int
protected float[]
c

protected int[]
protected float[]
d

protected float[]
public static final float[]
public static final float[]
public static final float[]
protected float[][]
protected int
protected int
protected float[]
protected float
protected float
protected float
protected int
protected int
public static final float[]
public static final int[]
public static final float[]
public static final float[]
public static final float[][]
public static final float[][]
public static final float[]
public static final int[]
public static final float[]
public static final float[]
public static final float[]
public static final int[]
public static final float[]
public static final float[]
public static final float[]
public static final int[]
public static final float[]
public static final float[]
public static final float[]
public static final int[]
public static final float[]
public static final float[]
public static final float[][]

Constructor Summary

AccessConstructor and Description
public
SubbandLayer2(int subbandnumber)

Constructor

Method Summary

Modifier and TypeMethod and Description
protected int
protected void
prepare_sample_reading(Header header, int allocation, int channel, float[] factor, int[] codelength, float[] c, float[] d)

public boolean
public void
public boolean
public void
public void

Field Detail

allocationback to summary
protected int allocation
cback to summary
protected float[] c
codelengthback to summary
protected int[] codelength
dback to summary
protected float[] d
factorback to summary
protected float[] factor
grouping_10bitsback to summary
public static final float[] grouping_10bits
grouping_5bitsback to summary
public static final float[] grouping_5bits
grouping_7bitsback to summary
public static final float[] grouping_7bits
groupingtableback to summary
protected float[][] groupingtable
groupnumberback to summary
protected int groupnumber
samplenumberback to summary
protected int samplenumber
samplesback to summary
protected float[] samples
scalefactor1back to summary
protected float scalefactor1
scalefactor2back to summary
protected float scalefactor2
scalefactor3back to summary
protected float scalefactor3
scfsiback to summary
protected int scfsi
subbandnumberback to summary
protected int subbandnumber
table_ab1_cback to summary
public static final float[] table_ab1_c
table_ab1_codelengthback to summary
public static final int[] table_ab1_codelength
table_ab1_dback to summary
public static final float[] table_ab1_d
table_ab1_factorback to summary
public static final float[] table_ab1_factor
table_ab1_groupingtablesback to summary
public static final float[][] table_ab1_groupingtables
table_ab234_groupingtablesback to summary
public static final float[][] table_ab234_groupingtables
table_ab2_cback to summary
public static final float[] table_ab2_c
table_ab2_codelengthback to summary
public static final int[] table_ab2_codelength
table_ab2_dback to summary
public static final float[] table_ab2_d
table_ab2_factorback to summary
public static final float[] table_ab2_factor
table_ab3_cback to summary
public static final float[] table_ab3_c
table_ab3_codelengthback to summary
public static final int[] table_ab3_codelength
table_ab3_dback to summary
public static final float[] table_ab3_d
table_ab3_factorback to summary
public static final float[] table_ab3_factor
table_ab4_cback to summary
public static final float[] table_ab4_c
table_ab4_codelengthback to summary
public static final int[] table_ab4_codelength
table_ab4_dback to summary
public static final float[] table_ab4_d
table_ab4_factorback to summary
public static final float[] table_ab4_factor
table_cd_cback to summary
public static final float[] table_cd_c
table_cd_codelengthback to summary
public static final int[] table_cd_codelength
table_cd_dback to summary
public static final float[] table_cd_d
table_cd_factorback to summary
public static final float[] table_cd_factor
table_cd_groupingtablesback to summary
public static final float[][] table_cd_groupingtables

Constructor Detail

SubbandLayer2back to summary
public SubbandLayer2(int subbandnumber)

Constructor

Method Detail

get_allocationlengthback to summary
protected int get_allocationlength(Header header)
prepare_sample_readingback to summary
protected void prepare_sample_reading(Header header, int allocation, int channel, float[] factor, int[] codelength, float[] c, float[] d)
put_next_sampleback to summary
public boolean put_next_sample(int channels, SynthesisFilter filter1, SynthesisFilter filter2)

Implements abstract javazoom.jl.decoder.LayerIDecoder.Subband.put_next_sample.

read_allocationback to summary
public void read_allocation(Bitstream stream, Header header, Crc16 crc)

Implements abstract javazoom.jl.decoder.LayerIDecoder.Subband.read_allocation.

read_sampledataback to summary
public boolean read_sampledata(Bitstream stream)

Implements abstract javazoom.jl.decoder.LayerIDecoder.Subband.read_sampledata.

read_scalefactorback to summary
public void read_scalefactor(Bitstream stream, Header header)

Implements abstract javazoom.jl.decoder.LayerIDecoder.Subband.read_scalefactor.

read_scalefactor_selectionback to summary
public void read_scalefactor_selection(Bitstream stream, Crc16 crc)
javazoom.jl.decoder back to summary

pack-priv Class LayerIIDecoder.SubbandLayer2IntensityStereo

extends SubbandLayer2
Class Inheritance

Class for layer II subbands in joint stereo mode.

Field Summary

Modifier and TypeField and Description
protected float
protected float
protected float
protected int
Inherited from javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2:
allocationccodelengthdfactorgrouping_10bitsgrouping_5bitsgrouping_7bitsgroupingtablegroupnumbersamplenumbersamplesscalefactor1scalefactor2scalefactor3scfsisubbandnumbertable_ab1_ctable_ab1_codelengthtable_ab1_dtable_ab1_factortable_ab1_groupingtablestable_ab234_groupingtablestable_ab2_ctable_ab2_codelengthtable_ab2_dtable_ab2_factortable_ab3_ctable_ab3_codelengthtable_ab3_dtable_ab3_factortable_ab4_ctable_ab4_codelengthtable_ab4_dtable_ab4_factortable_cd_ctable_cd_codelengthtable_cd_dtable_cd_factortable_cd_groupingtables

Constructor Summary

AccessConstructor and Description
public
SubbandLayer2IntensityStereo(int subbandnumber)

Constructor

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public boolean
public void
public void
Inherited from javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2:
get_allocationlengthprepare_sample_reading

Field Detail

channel2_scalefactor1back to summary
protected float channel2_scalefactor1
channel2_scalefactor2back to summary
protected float channel2_scalefactor2
channel2_scalefactor3back to summary
protected float channel2_scalefactor3
channel2_scfsiback to summary
protected int channel2_scfsi

Constructor Detail

SubbandLayer2IntensityStereoback to summary
public SubbandLayer2IntensityStereo(int subbandnumber)

Constructor

Method Detail

put_next_sampleback to summary
public boolean put_next_sample(int channels, SynthesisFilter filter1, SynthesisFilter filter2)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.put_next_sample.

read_allocationback to summary
public void read_allocation(Bitstream stream, Header header, Crc16 crc)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_allocation.

read_sampledataback to summary
public boolean read_sampledata(Bitstream stream)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_sampledata.

read_scalefactorback to summary
public void read_scalefactor(Bitstream stream, Header header)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_scalefactor.

read_scalefactor_selectionback to summary
public void read_scalefactor_selection(Bitstream stream, Crc16 crc)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_scalefactor_selection.

javazoom.jl.decoder back to summary

pack-priv Class LayerIIDecoder.SubbandLayer2Stereo

extends SubbandLayer2
Class Inheritance

Class for layer II subbands in stereo mode.

Field Summary

Modifier and TypeField and Description
protected int
protected float[]
protected int[]
protected float[]
protected float[]
protected float[]
protected float
protected float
protected float
protected int
Inherited from javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2:
allocationccodelengthdfactorgrouping_10bitsgrouping_5bitsgrouping_7bitsgroupingtablegroupnumbersamplenumbersamplesscalefactor1scalefactor2scalefactor3scfsisubbandnumbertable_ab1_ctable_ab1_codelengthtable_ab1_dtable_ab1_factortable_ab1_groupingtablestable_ab234_groupingtablestable_ab2_ctable_ab2_codelengthtable_ab2_dtable_ab2_factortable_ab3_ctable_ab3_codelengthtable_ab3_dtable_ab3_factortable_ab4_ctable_ab4_codelengthtable_ab4_dtable_ab4_factortable_cd_ctable_cd_codelengthtable_cd_dtable_cd_factortable_cd_groupingtables

Constructor Summary

AccessConstructor and Description
public
SubbandLayer2Stereo(int subbandnumber)

Constructor

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public boolean
public void
public void
Inherited from javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2:
get_allocationlengthprepare_sample_reading

Field Detail

channel2_allocationback to summary
protected int channel2_allocation
channel2_cback to summary
protected float[] channel2_c
channel2_codelengthback to summary
protected int[] channel2_codelength
channel2_dback to summary
protected float[] channel2_d
channel2_factorback to summary
protected float[] channel2_factor
channel2_samplesback to summary
protected float[] channel2_samples
channel2_scalefactor1back to summary
protected float channel2_scalefactor1
channel2_scalefactor2back to summary
protected float channel2_scalefactor2
channel2_scalefactor3back to summary
protected float channel2_scalefactor3
channel2_scfsiback to summary
protected int channel2_scfsi

Constructor Detail

SubbandLayer2Stereoback to summary
public SubbandLayer2Stereo(int subbandnumber)

Constructor

Method Detail

put_next_sampleback to summary
public boolean put_next_sample(int channels, SynthesisFilter filter1, SynthesisFilter filter2)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.put_next_sample.

read_allocationback to summary
public void read_allocation(Bitstream stream, Header header, Crc16 crc)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_allocation.

read_sampledataback to summary
public boolean read_sampledata(Bitstream stream)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_sampledata.

read_scalefactorback to summary
public void read_scalefactor(Bitstream stream, Header header)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_scalefactor.

read_scalefactor_selectionback to summary
public void read_scalefactor_selection(Bitstream stream, Crc16 crc)

Overrides javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2.read_scalefactor_selection.