Top Description Inners Fields Constructors Methods
javazoom.jl.decoder

public final Class LayerIIIDecoder

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

Class Implementing Layer 3 Decoder.
Since
0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private BitReserve
private OutputBuffer
private static final float[]
private int
private int
private int
private static final float[]
pack-priv final double
private SynthesisFilter
private SynthesisFilter
private int
private int
private Header
private LayerIIIDecoder.temporaire2[]
public static final float[][]
private int[]
pack-priv int[]
pack-priv float[]
private float[][]
k

private int
private float[][][]
private int
private final int[]
private int[]
public static final int[][][]
private float[]
private int
public static final int[]
private float[][]
pack-priv float[]
private static int[][]
private float[][][]
private float[]
samples1

Decode one frame, filling the buffer with the output samples.

private float[]
private static final int
private LayerIIIDecoder.temporaire2[]
public int[]
private LayerIIIDecoder.SBI[]
private int
public LayerIIIDecoder.Sftable
private LayerIIIDecoder.III_side_info_t
private static final int[][]
private static final int
private Bitstream
public static final float[]
public static final float[]
pack-priv float[]
public static final float[]
pack-priv int[]
v

pack-priv int[]
w

private int
public static final float[][]
pack-priv int[]
x

pack-priv int[]
y

Constructor Summary

AccessConstructor and Description
public
LayerIIIDecoder(Bitstream stream0, Header header0, SynthesisFilter filtera, SynthesisFilter filterb, OutputBuffer buffer0, int which_ch0)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private void
antialias(int ch, int gr)

private static float[]
public void
public void
decodeFrame()

Implements javazoom.jl.decoder.FrameDecoder.decodeFrame.

Decodes one frame of MPEG audio.
private void
dequantize_sample(float[][] xr, int ch, int gr)

private void
private void
get_LSF_scale_data(int ch, int gr)

private void
get_LSF_scale_factors(int ch, int gr)

private void
get_scale_factors(int ch, int gr)

private boolean
get_side_info()

Reads the side info from the stream, assuming the entire.

private void
huffman_decode(int ch, int gr)

private void
hybrid(int ch, int gr)

private void
i_stereo_k_values(int is_pos, int io_type, int i)

public void
inv_mdct(float[] in, float[] out, int block_type)

Fast INV_MDCT.

private void
reorder(float[][] xr, int ch, int gr)

pack-priv static int[]
reorder(int[] scalefac_band)

Loads the data for the reorder

public void
seek_notify()

Notify decoder that a seek is being made.

private void
stereo(int gr)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

brback to summary
private BitReserve br
bufferback to summary
private OutputBuffer buffer
caback to summary
private static final float[] ca
channelsback to summary
private int channels
CheckSumHuffback to summary
private int CheckSumHuff
counterback to summary
private int counter
csback to summary
private static final float[] cs
d43back to summary
pack-priv final double d43
filter1back to summary
private SynthesisFilter filter1
filter2back to summary
private SynthesisFilter filter2
first_channelback to summary
private int first_channel
frame_startback to summary
private int frame_start
III_scalefac_tback to summary
private LayerIIIDecoder.temporaire2[] III_scalefac_t
ioback to summary
public static final float[][] io
is_1dback to summary
private int[] is_1d
is_posback to summary
pack-priv int[] is_pos
is_ratioback to summary
pack-priv float[] is_ratio
kback to summary
private float[][] k
last_channelback to summary
private int last_channel
lrback to summary
private float[][][] lr
max_grback to summary
private int max_gr
new_slenback to summary
private final int[] new_slen
nonzeroback to summary
private int[] nonzero
nr_of_sfb_blockback to summary
public static final int[][][] nr_of_sfb_block
out_1dback to summary
private float[] out_1d
part2_startback to summary
private int part2_start
pretabback to summary
public static final int[] pretab
prevblckback to summary
private float[][] prevblck
rawoutback to summary
pack-priv float[] rawout
reorder_tableback to summary
private static int[][] reorder_table
roback to summary
private float[][][] ro
samples1back to summary
private float[] samples1

Decode one frame, filling the buffer with the output samples.

samples2back to summary
private float[] samples2
SBLIMITback to summary
private static final int SBLIMIT
scalefacback to summary
private LayerIIIDecoder.temporaire2[] scalefac
scalefac_bufferback to summary
public int[] scalefac_buffer
sfBandIndexback to summary
private LayerIIIDecoder.SBI[] sfBandIndex
sfreqback to summary
private int sfreq
sftableback to summary
public LayerIIIDecoder.Sftable sftable
siback to summary
private LayerIIIDecoder.III_side_info_t si
slenback to summary
private static final int[][] slen
SSLIMITback to summary
private static final int SSLIMIT
streamback to summary
private Bitstream stream
t_43back to summary
public static final float[] t_43
TAN12back to summary
public static final float[] TAN12
tsOutCopyback to summary
pack-priv float[] tsOutCopy
two_to_negative_half_powback to summary
public static final float[] two_to_negative_half_pow
vback to summary
pack-priv int[] v
wback to summary
pack-priv int[] w
which_channelsback to summary
private int which_channels
winback to summary
public static final float[][] win
xback to summary
pack-priv int[] x
yback to summary
pack-priv int[] y

Constructor Detail

LayerIIIDecoderback to summary
public LayerIIIDecoder(Bitstream stream0, Header header0, SynthesisFilter filtera, SynthesisFilter filterb, OutputBuffer buffer0, int which_ch0)

Constructor.

Method Detail

antialiasback to summary
private void antialias(int ch, int gr)
create_t_43back to summary
private static float[] create_t_43()
decodeback to summary
public void decode()
decodeFrameback to summary
public void decodeFrame()

Implements javazoom.jl.decoder.FrameDecoder.decodeFrame.

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

Decodes one frame of MPEG audio.

dequantize_sampleback to summary
private void dequantize_sample(float[][] xr, int ch, int gr)
do_downmixback to summary
private void do_downmix()
get_LSF_scale_databack to summary
private void get_LSF_scale_data(int ch, int gr)
get_LSF_scale_factorsback to summary
private void get_LSF_scale_factors(int ch, int gr)
get_scale_factorsback to summary
private void get_scale_factors(int ch, int gr)
get_side_infoback to summary
private boolean get_side_info()

Reads the side info from the stream, assuming the entire. frame has been read already. Mono : 136 bits (= 17 bytes) Stereo : 256 bits (= 32 bytes)

huffman_decodeback to summary
private void huffman_decode(int ch, int gr)
hybridback to summary
private void hybrid(int ch, int gr)
i_stereo_k_valuesback to summary
private void i_stereo_k_values(int is_pos, int io_type, int i)
inv_mdctback to summary
public void inv_mdct(float[] in, float[] out, int block_type)

Fast INV_MDCT.

reorderback to summary
private void reorder(float[][] xr, int ch, int gr)
reorderback to summary
pack-priv static int[] reorder(int[] scalefac_band)

Loads the data for the reorder

seek_notifyback to summary
public void seek_notify()

Notify decoder that a seek is being made.

stereoback to summary
private void stereo(int gr)
javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.gr_info_s

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int
public int
public int
public int
public int
public int
public int
public int
public int
public int
public int
public int[]
public int[]
public int

Constructor Summary

AccessConstructor and Description
public
gr_info_s()

Dummy Constructor

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

big_valuesback to summary
public int big_values
block_typeback to summary
public int block_type
count1table_selectback to summary
public int count1table_select
global_gainback to summary
public int global_gain
mixed_block_flagback to summary
public int mixed_block_flag
part2_3_lengthback to summary
public int part2_3_length
preflagback to summary
public int preflag
region0_countback to summary
public int region0_count
region1_countback to summary
public int region1_count
scalefac_compressback to summary
public int scalefac_compress
scalefac_scaleback to summary
public int scalefac_scale
subblock_gainback to summary
public int[] subblock_gain
table_selectback to summary
public int[] table_select
window_switching_flagback to summary
public int window_switching_flag

Constructor Detail

gr_info_sback to summary
public gr_info_s()

Dummy Constructor

javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.III_side_info_t

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public LayerIIIDecoder.temporaire[]
public int
public int

Constructor Summary

AccessConstructor and Description
public
III_side_info_t()

Dummy Constructor

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chback to summary
public LayerIIIDecoder.temporaire[] ch
main_data_beginback to summary
public int main_data_begin
private_bitsback to summary
public int private_bits

Constructor Detail

III_side_info_tback to summary
public III_side_info_t()

Dummy Constructor

javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.SBI

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int[]
l

public int[]
s

Constructor Summary

AccessConstructor and Description
public
SBI()

public
SBI(int[] thel, int[] thes)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lback to summary
public int[] l
sback to summary
public int[] s

Constructor Detail

SBIback to summary
public SBI()
SBIback to summary
public SBI(int[] thel, int[] thes)
javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.Sftable

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int[]
l

public int[]
s

Constructor Summary

AccessConstructor and Description
public
public
Sftable(int[] thel, int[] thes)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lback to summary
public int[] l
sback to summary
public int[] s

Constructor Detail

Sftableback to summary
public Sftable()
Sftableback to summary
public Sftable(int[] thel, int[] thes)
javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.temporaire

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public LayerIIIDecoder.gr_info_s[]
public int[]

Constructor Summary

AccessConstructor and Description
public
temporaire()

Dummy Constructor

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

grback to summary
public LayerIIIDecoder.gr_info_s[] gr
scfsiback to summary
public int[] scfsi

Constructor Detail

temporaireback to summary
public temporaire()

Dummy Constructor

javazoom.jl.decoder back to summary

pack-priv Class LayerIIIDecoder.temporaire2

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public int[]
l

public int[][]
s

Constructor Summary

AccessConstructor and Description
public
temporaire2()

Dummy Constructor

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lback to summary
public int[] l
sback to summary
public int[][] s

Constructor Detail

temporaire2back to summary
public temporaire2()

Dummy Constructor