channels = (header.mode() == Header.SINGLE_CHANNEL) ? 1 : 2;
max_gr = (header.version() == Header.MPEG1) ? 2 : 1;
- sfreq = header.sample_frequency() + ((header.version() == Header.MPEG1) ? 3
- : (header.version() == Header.MPEG25_LSF) ? 6 : 0); // SZD
+ sfreq = header.sample_frequency() + ((header.version() == Header.MPEG1) ? 3 : (header.version() == Header.MPEG25_LSF) ? 6 : 0); // SZD
if (channels == 2) {
switch (which_channels) {
private void huffman_decode(int part2_start_local, int ch, int gr) {
- int x[] = new int[1];
- int y[] = new int[1];
- int v[] = new int[1];
- int w[] = new int[1];
+ int[] x = new int[1];
+ int[] y = new int[1];
+ int[] v = new int[1];
+ int[] w = new int[1];
int part2_3_end = part2_start_local + si.ch[ch].gr[gr].part2_3_length;
int num_bits;
//
// ssjava
- private void dequantize_sample(
- /* float xr[][], */int ch, int gr) {
+ private void dequantize_sample(int ch, int gr) {
// gr_info_s gr_info = (si.ch[ch].gr[gr]); remove alias!
int cb = 0;
// ssjava
//
- private void reorder(/* float xr[][], */int ch, int gr) {
+ private void reorder(int ch, int gr) {
// the purpose of reordering: move 'short samples' back to their original
// position
// after reorder, the samples are no long ordered by frequency
float tmpf_16;
float tmpf_17;
- tmpf_0 = tmpf_1 = tmpf_2 = tmpf_3 = tmpf_4 = tmpf_5 = tmpf_6 = tmpf_7 = tmpf_8 = tmpf_9 = tmpf_10 = tmpf_11 = tmpf_12 = tmpf_13 = tmpf_14 = tmpf_15 = tmpf_16 = tmpf_17 = 0.0f;
+ tmpf_0 = 0.0f;
+ tmpf_1 = 0.0f;
+ tmpf_2 = 0.0f;
+ tmpf_3 = 0.0f;
+ tmpf_4 = 0.0f;
+ tmpf_5 = 0.0f;
+ tmpf_6 = 0.0f;
+ tmpf_7 = 0.0f;
+ tmpf_8 = 0.0f;
+ tmpf_9 = 0.0f;
+ tmpf_10 = 0.0f;
+ tmpf_11 = 0.0f;
+ tmpf_12 = 0.0f;
+ tmpf_13 = 0.0f;
+ tmpf_14 = 0.0f;
+ tmpf_15 = 0.0f;
+ tmpf_16 = 0.0f;
+ tmpf_17 = 0.0f;
if (block_type == 2) {
* 12, 13, 14, 15, 16, 17 };
*/
- private static/* final */int reorder_table[][]/* = loadReorderTable() */; // SZD:
+ private static final int reorder_table[][]/* = loadReorderTable() */; // SZD:
// will
// be
* ExceptionInInitializerError(ex); } }
*/
- static int[] reorder(int scalefac_band[]) { // SZD: converted from
+ static int[] reorder(int[] scalefac_band) { // SZD: converted from
// LAME
int j = 0;
int ix[] = new int[576];