Top Description Inners Fields Constructors Methods
javazoom.jl.decoder

public Class LayerIDecoder

extends Object
implements FrameDecoder
Class Inheritance
All Implemented Interfaces
javazoom.jl.decoder.FrameDecoder
Known Direct Subclasses
javazoom.jl.decoder.LayerIIDecoder

Implements decoding of MPEG Audio Layer I frames.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
LayerIDecoder.Subband

Abstract base class for subband classes of layer I and II

pack-priv static class
LayerIDecoder.SubbandLayer1

Class for layer I subbands in single channel mode.

pack-priv static class
LayerIDecoder.SubbandLayer1IntensityStereo

Class for layer I subbands in joint stereo mode.

pack-priv static class
LayerIDecoder.SubbandLayer1Stereo

Class for layer I subbands in stereo mode.

Field Summary

Modifier and TypeField and Description
protected OutputBuffer
protected Crc16
protected SynthesisFilter
protected SynthesisFilter
protected Header
protected int
protected int
pack-priv static final float[]
protected Bitstream
protected LayerIDecoder.Subband[]
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
create(Bitstream stream0, Header header0, SynthesisFilter filtera, SynthesisFilter filterb, OutputBuffer buffer0, int which_ch0)

protected void
public void
decodeFrame()

Implements javazoom.jl.decoder.FrameDecoder.decodeFrame.

Decodes one frame of MPEG audio.
protected void
protected void
protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
protected OutputBuffer buffer
crcback to summary
protected Crc16 crc
filter1back to summary
protected SynthesisFilter filter1
filter2back to summary
protected SynthesisFilter filter2
modeback to summary
protected int mode
num_subbandsback to summary
protected int num_subbands
scalefactorsback to summary
pack-priv static final float[] scalefactors
streamback to summary
protected Bitstream stream
subbandsback to summary
protected LayerIDecoder.Subband[] subbands
which_channelsback to summary
protected int which_channels

Constructor Detail

LayerIDecoderback to summary
public LayerIDecoder()

Method Detail

createback to summary
public void create(Bitstream stream0, Header header0, SynthesisFilter filtera, SynthesisFilter filterb, OutputBuffer buffer0, int which_ch0)
createSubbandsback to summary
protected void createSubbands()
decodeFrameback to summary
public void decodeFrame() throws DecoderException

Implements javazoom.jl.decoder.FrameDecoder.decodeFrame.

Doc from javazoom.jl.decoder.FrameDecoder.decodeFrame.

Decodes one frame of MPEG audio.

readAllocationback to summary
protected void readAllocation() throws DecoderException
readSampleDataback to summary
protected void readSampleData()
readScaleFactorsback to summary
protected void readScaleFactors()
readScaleFactorSelectionback to summary
protected void readScaleFactorSelection()
javazoom.jl.decoder back to summary

pack-priv abstract Class LayerIDecoder.Subband

extends Object
Class Inheritance
Known Direct Subclasses
javazoom.jl.decoder.LayerIDecoder.SubbandLayer1, javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2

Abstract base class for subband classes of layer I and II

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public abstract boolean
put_next_sample(int channels, SynthesisFilter filter1, SynthesisFilter filter2)

public abstract void
read_allocation(Bitstream stream, Header header, Crc16 crc)

public abstract boolean
public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Subbandback to summary
pack-priv Subband()

Method Detail

put_next_sampleback to summary
public abstract boolean put_next_sample(int channels, SynthesisFilter filter1, SynthesisFilter filter2)
read_allocationback to summary
public abstract void read_allocation(Bitstream stream, Header header, Crc16 crc) throws DecoderException
read_sampledataback to summary
public abstract boolean read_sampledata(Bitstream stream)
read_scalefactorback to summary
public abstract void read_scalefactor(Bitstream stream, Header header)
javazoom.jl.decoder back to summary

pack-priv Class LayerIDecoder.SubbandLayer1

extends Subband
Class Inheritance
Known Direct Subclasses
javazoom.jl.decoder.LayerIDecoder.SubbandLayer1IntensityStereo, javazoom.jl.decoder.LayerIDecoder.SubbandLayer1Stereo

Class for layer I subbands in single channel mode. Used for single channel mode and in derived class for intensity stereo mode

Field Summary

Modifier and TypeField and Description
protected int
protected float
protected float
protected float
protected int
protected int
protected float
protected int
public static final float[]
public static final float[]

Constructor Summary

AccessConstructor and Description
public
SubbandLayer1(int subbandnumber)

Construtor.

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public boolean
public void

Field Detail

allocationback to summary
protected int allocation
factorback to summary
protected float factor
offsetback to summary
protected float offset
sampleback to summary
protected float sample
samplelengthback to summary
protected int samplelength
samplenumberback to summary
protected int samplenumber
scalefactorback to summary
protected float scalefactor
subbandnumberback to summary
protected int subbandnumber
table_factorback to summary
public static final float[] table_factor
table_offsetback to summary
public static final float[] table_offset

Constructor Detail

SubbandLayer1back to summary
public SubbandLayer1(int subbandnumber)

Construtor.

Method Detail

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) throws DecoderException

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.

javazoom.jl.decoder back to summary

pack-priv Class LayerIDecoder.SubbandLayer1IntensityStereo

extends SubbandLayer1
Class Inheritance

Class for layer I subbands in joint stereo mode.

Field Summary

Modifier and TypeField and Description
protected float
Inherited from javazoom.jl.decoder.LayerIDecoder.SubbandLayer1:
allocationfactoroffsetsamplesamplelengthsamplenumberscalefactorsubbandnumbertable_factortable_offset

Constructor Summary

AccessConstructor and Description
public
SubbandLayer1IntensityStereo(int subbandnumber)

Constructor

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public boolean
public void

Field Detail

channel2_scalefactorback to summary
protected float channel2_scalefactor

Constructor Detail

SubbandLayer1IntensityStereoback to summary
public SubbandLayer1IntensityStereo(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.LayerIDecoder.SubbandLayer1.put_next_sample.

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

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_allocation.

read_sampledataback to summary
public boolean read_sampledata(Bitstream stream)

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_sampledata.

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

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_scalefactor.

javazoom.jl.decoder back to summary

pack-priv Class LayerIDecoder.SubbandLayer1Stereo

extends SubbandLayer1
Class Inheritance

Class for layer I subbands in stereo mode.

Field Summary

Modifier and TypeField and Description
protected int
protected float
protected float
protected float
protected int
protected float
Inherited from javazoom.jl.decoder.LayerIDecoder.SubbandLayer1:
allocationfactoroffsetsamplesamplelengthsamplenumberscalefactorsubbandnumbertable_factortable_offset

Constructor Summary

AccessConstructor and Description
public
SubbandLayer1Stereo(int subbandnumber)

Constructor

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public boolean
public void

Field Detail

channel2_allocationback to summary
protected int channel2_allocation
channel2_factorback to summary
protected float channel2_factor
channel2_offsetback to summary
protected float channel2_offset
channel2_sampleback to summary
protected float channel2_sample
channel2_samplelengthback to summary
protected int channel2_samplelength
channel2_scalefactorback to summary
protected float channel2_scalefactor

Constructor Detail

SubbandLayer1Stereoback to summary
public SubbandLayer1Stereo(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.LayerIDecoder.SubbandLayer1.put_next_sample.

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

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_allocation.

read_sampledataback to summary
public boolean read_sampledata(Bitstream stream)

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_sampledata.

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

Overrides javazoom.jl.decoder.LayerIDecoder.SubbandLayer1.read_scalefactor.