-/*\r
- * 11/19/04 1.0 moved to LGPL.\r
- * \r
- * 04/01/00 Fixes for running under build 23xx Microsoft JVM. mdm.\r
- * \r
- * 19/12/99 Performance improvements to compute_pcm_samples(). \r
- * Mat McGowan. mdm@techie.com. \r
- *\r
- * 16/02/99 Java Conversion by E.B , javalayer@javazoom.net\r
- *\r
- * @(#) synthesis_filter.h 1.8, last edit: 6/15/94 16:52:00\r
- * @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)\r
- * @(#) Berlin University of Technology\r
- *\r
- *-----------------------------------------------------------------------\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU Library General Public License as published\r
- * by the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU Library General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU Library General Public\r
- * License along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
- *----------------------------------------------------------------------\r
- */\r
-\r
-/**\r
- * A class for the synthesis filter bank. This class does a fast downsampling\r
- * from 32, 44.1 or 48 kHz to 8 kHz, if ULAW is defined. Frequencies above 4 kHz\r
- * are removed by ignoring higher subbands.\r
- */\r
-@LATTICE("OUT<V2,V2<V1,V1<V,V<NEWV,NEWV<SAMPLE,SAMPLE<EQ,EQ<IDX,V*,NEWV*,IDX*")\r
-@METHODDEFAULT("OUT<THIS,THIS<C,C<IN,C*,THISLOC=THIS,GLOBALLOC=THIS")\r
-final class SynthesisFilter {\r
-\r
- @LOC("IDX")\r
- public int vidx;\r
- @LOC("V1")\r
- public float[] v1;\r
- @LOC("V1")\r
- public float[] v2;\r
-\r
- @LOC("V")\r
- public float[] prev1;\r
- @LOC("V")\r
- public float[] prev2;\r
-\r
- // private float[] actual_v; // v1 or v2\r
- @LOC("IDX")\r
- public int actual_write_pos; // 0-15\r
- @LOC("SAMPLE")\r
- private float[] samples; // 32 new subband samples\r
- @LOC("EQ")\r
- public final int channel;\r
- @LOC("EQ")\r
- public final float scalefactor;\r
- @LOC("EQ")\r
- private float[] eq;\r
-\r
- /**\r
- * Quality value for controlling CPU usage/quality tradeoff.\r
- */\r
- /*\r
- * private int quality;\r
- * \r
- * private int v_inc;\r
- * \r
- * \r
- * \r
- * public static final int HIGH_QUALITY = 1; public static final int\r
- * MEDIUM_QUALITY = 2; public static final int LOW_QUALITY = 4;\r
- */\r
-\r
- /**\r
- * Contructor. The scalefactor scales the calculated float pcm samples to\r
- * short values (raw pcm samples are in [-1.0, 1.0], if no violations occur).\r
- */\r
- public SynthesisFilter(int channelnumber, float factor, float[] eq0) {\r
-\r
- vidx = 1;\r
- d16 = splitArray(d, 16);\r
-\r
- v1 = new float[512];\r
- v2 = new float[512];\r
- prev1 = new float[512];\r
- prev2 = new float[512];\r
- samples = new float[32];\r
- channel = channelnumber;\r
- scalefactor = factor;\r
- // setEQ(eq);\r
- // setQuality(HIGH_QUALITY);\r
-\r
- if (eq == null) {\r
- eq = new float[32];\r
- for (int i = 0; i < 32; i++)\r
- eq[i] = 1.0f;\r
- }\r
- if (eq.length < 32) {\r
- throw new IllegalArgumentException("eq0");\r
- }\r
-\r
- // reset();\r
-\r
- for (int p = 0; p < 512; p++)\r
- v1[p] = v2[p] = 0.0f;\r
-\r
- for (int p2 = 0; p2 < 32; p2++)\r
- samples[p2] = 0.0f;\r
-\r
- // actual_v = v1;\r
- actual_write_pos = 15;\r
-\r
- }\r
-\r
- /*\r
- * private void setQuality(int quality0) { switch (quality0) { case\r
- * HIGH_QUALITY: case MEDIUM_QUALITY: case LOW_QUALITY: v_inc = 16 * quality0;\r
- * quality = quality0; break; default : throw new\r
- * IllegalArgumentException("Unknown quality value"); } }\r
- * \r
- * public int getQuality() { return quality; }\r
- */\r
-\r
- /**\r
- * Inject Sample.\r
- */\r
- public void input_sample(@LOC("IN") float sample, @LOC("IN") int subbandnumber) {\r
- samples[subbandnumber] = eq[subbandnumber] * sample;\r
- }\r
-\r
- public void input_samples(@LOC("IN") float[] s) {\r
- TERMINATE: for (@LOC("C") int i = 31; i >= 0; i--) {\r
- samples[i] = s[i] * eq[i];\r
- }\r
- }\r
-\r
- private void compute_new_v2_v1() {\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v0 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v1 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v2 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v3 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v4 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v5 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v6 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v7 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v8 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v9 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v10 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v11 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v12 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v13 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v14 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v15 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v16 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v17 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v18 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v19 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v20 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v21 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v22 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v23 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v24 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v25 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v26 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v27 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v28 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v29 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v30 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v31 = 0.0f;\r
-\r
- // float[] new_v = new float[32]; // new V[0-15] and V[33-48] of Figure\r
- // 3-A.2 in ISO DIS 11172-3\r
- // float[] p = new float[16];\r
- // float[] pp = new float[16];\r
-\r
- // float[] s = samples;\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float s0 = samples[0];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s1 = samples[1];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s2 = samples[2];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s3 = samples[3];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s4 = samples[4];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s5 = samples[5];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s6 = samples[6];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s7 = samples[7];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s8 = samples[8];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s9 = samples[9];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s10 = samples[10];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s11 = samples[11];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s12 = samples[12];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s13 = samples[13];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s14 = samples[14];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s15 = samples[15];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s16 = samples[16];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s17 = samples[17];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s18 = samples[18];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s19 = samples[19];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s20 = samples[20];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s21 = samples[21];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s22 = samples[22];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s23 = samples[23];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s24 = samples[24];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s25 = samples[25];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s26 = samples[26];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s27 = samples[27];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s28 = samples[28];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s29 = samples[29];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s30 = samples[30];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s31 = samples[31];\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float p0 = s0 + s31;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p1 = s1 + s30;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p2 = s2 + s29;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p3 = s3 + s28;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p4 = s4 + s27;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p5 = s5 + s26;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p6 = s6 + s25;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p7 = s7 + s24;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p8 = s8 + s23;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p9 = s9 + s22;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p10 = s10 + s21;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p11 = s11 + s20;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p12 = s12 + s19;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p13 = s13 + s18;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p14 = s14 + s17;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p15 = s15 + s16;\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp0 = p0 + p15;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp1 = p1 + p14;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp2 = p2 + p13;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp3 = p3 + p12;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp4 = p4 + p11;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp5 = p5 + p10;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp6 = p6 + p9;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp7 = p7 + p8;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp8 = (p0 - p15) * cos1_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp9 = (p1 - p14) * cos3_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp10 = (p2 - p13) * cos5_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp11 = (p3 - p12) * cos7_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp12 = (p4 - p11) * cos9_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp13 = (p5 - p10) * cos11_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp14 = (p6 - p9) * cos13_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp15 = (p7 - p8) * cos15_32;\r
-\r
- p0 = pp0 + pp7;\r
- p1 = pp1 + pp6;\r
- p2 = pp2 + pp5;\r
- p3 = pp3 + pp4;\r
- p4 = (pp0 - pp7) * cos1_16;\r
- p5 = (pp1 - pp6) * cos3_16;\r
- p6 = (pp2 - pp5) * cos5_16;\r
- p7 = (pp3 - pp4) * cos7_16;\r
- p8 = pp8 + pp15;\r
- p9 = pp9 + pp14;\r
- p10 = pp10 + pp13;\r
- p11 = pp11 + pp12;\r
- p12 = (pp8 - pp15) * cos1_16;\r
- p13 = (pp9 - pp14) * cos3_16;\r
- p14 = (pp10 - pp13) * cos5_16;\r
- p15 = (pp11 - pp12) * cos7_16;\r
-\r
- pp0 = p0 + p3;\r
- pp1 = p1 + p2;\r
- pp2 = (p0 - p3) * cos1_8;\r
- pp3 = (p1 - p2) * cos3_8;\r
- pp4 = p4 + p7;\r
- pp5 = p5 + p6;\r
- pp6 = (p4 - p7) * cos1_8;\r
- pp7 = (p5 - p6) * cos3_8;\r
- pp8 = p8 + p11;\r
- pp9 = p9 + p10;\r
- pp10 = (p8 - p11) * cos1_8;\r
- pp11 = (p9 - p10) * cos3_8;\r
- pp12 = p12 + p15;\r
- pp13 = p13 + p14;\r
- pp14 = (p12 - p15) * cos1_8;\r
- pp15 = (p13 - p14) * cos3_8;\r
-\r
- p0 = pp0 + pp1;\r
- p1 = (pp0 - pp1) * cos1_4;\r
- p2 = pp2 + pp3;\r
- p3 = (pp2 - pp3) * cos1_4;\r
- p4 = pp4 + pp5;\r
- p5 = (pp4 - pp5) * cos1_4;\r
- p6 = pp6 + pp7;\r
- p7 = (pp6 - pp7) * cos1_4;\r
- p8 = pp8 + pp9;\r
- p9 = (pp8 - pp9) * cos1_4;\r
- p10 = pp10 + pp11;\r
- p11 = (pp10 - pp11) * cos1_4;\r
- p12 = pp12 + pp13;\r
- p13 = (pp12 - pp13) * cos1_4;\r
- p14 = pp14 + pp15;\r
- p15 = (pp14 - pp15) * cos1_4;\r
-\r
- // this is pretty insane coding\r
- @LOC("THIS,SynthesisFilter.NEWV") float tmp1;\r
- new_v19/* 36-17 */= -(new_v4 = (new_v12 = p7) + p5) - p6;\r
- new_v27/* 44-17 */= -p6 - p7 - p4;\r
- new_v6 = (new_v10 = (new_v14 = p15) + p11) + p13;\r
- new_v17/* 34-17 */= -(new_v2 = p15 + p13 + p9) - p14;\r
- new_v21/* 38-17 */= (tmp1 = -p14 - p15 - p10 - p11) - p13;\r
- new_v29/* 46-17 */= -p14 - p15 - p12 - p8;\r
- new_v25/* 42-17 */= tmp1 - p12;\r
- new_v31/* 48-17 */= -p0;\r
- new_v0 = p1;\r
- new_v23/* 40-17 */= -(new_v8 = p3) - p2;\r
-\r
- p0 = (s0 - s31) * cos1_64;\r
- p1 = (s1 - s30) * cos3_64;\r
- p2 = (s2 - s29) * cos5_64;\r
- p3 = (s3 - s28) * cos7_64;\r
- p4 = (s4 - s27) * cos9_64;\r
- p5 = (s5 - s26) * cos11_64;\r
- p6 = (s6 - s25) * cos13_64;\r
- p7 = (s7 - s24) * cos15_64;\r
- p8 = (s8 - s23) * cos17_64;\r
- p9 = (s9 - s22) * cos19_64;\r
- p10 = (s10 - s21) * cos21_64;\r
- p11 = (s11 - s20) * cos23_64;\r
- p12 = (s12 - s19) * cos25_64;\r
- p13 = (s13 - s18) * cos27_64;\r
- p14 = (s14 - s17) * cos29_64;\r
- p15 = (s15 - s16) * cos31_64;\r
-\r
- pp0 = p0 + p15;\r
- pp1 = p1 + p14;\r
- pp2 = p2 + p13;\r
- pp3 = p3 + p12;\r
- pp4 = p4 + p11;\r
- pp5 = p5 + p10;\r
- pp6 = p6 + p9;\r
- pp7 = p7 + p8;\r
- pp8 = (p0 - p15) * cos1_32;\r
- pp9 = (p1 - p14) * cos3_32;\r
- pp10 = (p2 - p13) * cos5_32;\r
- pp11 = (p3 - p12) * cos7_32;\r
- pp12 = (p4 - p11) * cos9_32;\r
- pp13 = (p5 - p10) * cos11_32;\r
- pp14 = (p6 - p9) * cos13_32;\r
- pp15 = (p7 - p8) * cos15_32;\r
-\r
- p0 = pp0 + pp7;\r
- p1 = pp1 + pp6;\r
- p2 = pp2 + pp5;\r
- p3 = pp3 + pp4;\r
- p4 = (pp0 - pp7) * cos1_16;\r
- p5 = (pp1 - pp6) * cos3_16;\r
- p6 = (pp2 - pp5) * cos5_16;\r
- p7 = (pp3 - pp4) * cos7_16;\r
- p8 = pp8 + pp15;\r
- p9 = pp9 + pp14;\r
- p10 = pp10 + pp13;\r
- p11 = pp11 + pp12;\r
- p12 = (pp8 - pp15) * cos1_16;\r
- p13 = (pp9 - pp14) * cos3_16;\r
- p14 = (pp10 - pp13) * cos5_16;\r
- p15 = (pp11 - pp12) * cos7_16;\r
-\r
- pp0 = p0 + p3;\r
- pp1 = p1 + p2;\r
- pp2 = (p0 - p3) * cos1_8;\r
- pp3 = (p1 - p2) * cos3_8;\r
- pp4 = p4 + p7;\r
- pp5 = p5 + p6;\r
- pp6 = (p4 - p7) * cos1_8;\r
- pp7 = (p5 - p6) * cos3_8;\r
- pp8 = p8 + p11;\r
- pp9 = p9 + p10;\r
- pp10 = (p8 - p11) * cos1_8;\r
- pp11 = (p9 - p10) * cos3_8;\r
- pp12 = p12 + p15;\r
- pp13 = p13 + p14;\r
- pp14 = (p12 - p15) * cos1_8;\r
- pp15 = (p13 - p14) * cos3_8;\r
-\r
- p0 = pp0 + pp1;\r
- p1 = (pp0 - pp1) * cos1_4;\r
- p2 = pp2 + pp3;\r
- p3 = (pp2 - pp3) * cos1_4;\r
- p4 = pp4 + pp5;\r
- p5 = (pp4 - pp5) * cos1_4;\r
- p6 = pp6 + pp7;\r
- p7 = (pp6 - pp7) * cos1_4;\r
- p8 = pp8 + pp9;\r
- p9 = (pp8 - pp9) * cos1_4;\r
- p10 = pp10 + pp11;\r
- p11 = (pp10 - pp11) * cos1_4;\r
- p12 = pp12 + pp13;\r
- p13 = (pp12 - pp13) * cos1_4;\r
- p14 = pp14 + pp15;\r
- p15 = (pp14 - pp15) * cos1_4;\r
-\r
- // manually doing something that a compiler should handle sucks\r
- // coding like this is hard to read\r
- @LOC("THIS,SynthesisFilter.NEWV") float tmp2;\r
- new_v5 = (new_v11 = (new_v13 = (new_v15 = p15) + p7) + p11) + p5 + p13;\r
- new_v7 = (new_v9 = p15 + p11 + p3) + p13;\r
- new_v16/* 33-17 */= -(new_v1 = (tmp1 = p13 + p15 + p9) + p1) - p14;\r
- new_v18/* 35-17 */= -(new_v3 = tmp1 + p5 + p7) - p6 - p14;\r
-\r
- new_v22/* 39-17 */= (tmp1 = -p10 - p11 - p14 - p15) - p13 - p2 - p3;\r
- new_v20/* 37-17 */= tmp1 - p13 - p5 - p6 - p7;\r
- new_v24/* 41-17 */= tmp1 - p12 - p2 - p3;\r
- new_v26/* 43-17 */= tmp1 - p12 - (tmp2 = p4 + p6 + p7);\r
- new_v30/* 47-17 */= (tmp1 = -p8 - p12 - p14 - p15) - p0;\r
- new_v28/* 45-17 */= tmp1 - tmp2;\r
-\r
- // insert V[0-15] (== new_v[0-15]) into actual v:\r
- // float[] x2 = actual_v + actual_write_pos;\r
- // float dest[] = actual_v; v2\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") int pos = actual_write_pos;\r
-\r
- v2[0 + pos] = new_v0;\r
- v2[16 + pos] = new_v1;\r
- v2[32 + pos] = new_v2;\r
- v2[48 + pos] = new_v3;\r
- v2[64 + pos] = new_v4;\r
- v2[80 + pos] = new_v5;\r
- v2[96 + pos] = new_v6;\r
- v2[112 + pos] = new_v7;\r
- v2[128 + pos] = new_v8;\r
- v2[144 + pos] = new_v9;\r
- v2[160 + pos] = new_v10;\r
- v2[176 + pos] = new_v11;\r
- v2[192 + pos] = new_v12;\r
- v2[208 + pos] = new_v13;\r
- v2[224 + pos] = new_v14;\r
- v2[240 + pos] = new_v15;\r
-\r
- // V[16] is always 0.0:\r
- v2[256 + pos] = 0.0f;\r
-\r
- // insert V[17-31] (== -new_v[15-1]) into actual v:\r
- v2[272 + pos] = -new_v15;\r
- v2[288 + pos] = -new_v14;\r
- v2[304 + pos] = -new_v13;\r
- v2[320 + pos] = -new_v12;\r
- v2[336 + pos] = -new_v11;\r
- v2[352 + pos] = -new_v10;\r
- v2[368 + pos] = -new_v9;\r
- v2[384 + pos] = -new_v8;\r
- v2[400 + pos] = -new_v7;\r
- v2[416 + pos] = -new_v6;\r
- v2[432 + pos] = -new_v5;\r
- v2[448 + pos] = -new_v4;\r
- v2[464 + pos] = -new_v3;\r
- v2[480 + pos] = -new_v2;\r
- v2[496 + pos] = -new_v1;\r
-\r
- // insert V[32] (== -new_v[0]) into other v:\r
- // dest = (actual_v == v1) ? v2 : v1;\r
-\r
- v1[0 + pos] = -new_v0;\r
- // insert V[33-48] (== new_v[16-31]) into other v:\r
- v1[16 + pos] = new_v16;\r
- v1[32 + pos] = new_v17;\r
- v1[48 + pos] = new_v18;\r
- v1[64 + pos] = new_v19;\r
- v1[80 + pos] = new_v20;\r
- v1[96 + pos] = new_v21;\r
- v1[112 + pos] = new_v22;\r
- v1[128 + pos] = new_v23;\r
- v1[144 + pos] = new_v24;\r
- v1[160 + pos] = new_v25;\r
- v1[176 + pos] = new_v26;\r
- v1[192 + pos] = new_v27;\r
- v1[208 + pos] = new_v28;\r
- v1[224 + pos] = new_v29;\r
- v1[240 + pos] = new_v30;\r
- v1[256 + pos] = new_v31;\r
-\r
- // insert V[49-63] (== new_v[30-16]) into other v:\r
- v1[272 + pos] = new_v30;\r
- v1[288 + pos] = new_v29;\r
- v1[304 + pos] = new_v28;\r
- v1[320 + pos] = new_v27;\r
- v1[336 + pos] = new_v26;\r
- v1[352 + pos] = new_v25;\r
- v1[368 + pos] = new_v24;\r
- v1[384 + pos] = new_v23;\r
- v1[400 + pos] = new_v22;\r
- v1[416 + pos] = new_v21;\r
- v1[432 + pos] = new_v20;\r
- v1[448 + pos] = new_v19;\r
- v1[464 + pos] = new_v18;\r
- v1[480 + pos] = new_v17;\r
- v1[496 + pos] = new_v16;\r
-\r
- /*\r
- * setup PREV\r
- */\r
-\r
- prev2[0 + pos] = new_v0;\r
- prev2[16 + pos] = new_v1;\r
- prev2[32 + pos] = new_v2;\r
- prev2[48 + pos] = new_v3;\r
- prev2[64 + pos] = new_v4;\r
- prev2[80 + pos] = new_v5;\r
- prev2[96 + pos] = new_v6;\r
- prev2[112 + pos] = new_v7;\r
- prev2[128 + pos] = new_v8;\r
- prev2[144 + pos] = new_v9;\r
- prev2[160 + pos] = new_v10;\r
- prev2[176 + pos] = new_v11;\r
- prev2[192 + pos] = new_v12;\r
- prev2[208 + pos] = new_v13;\r
- prev2[224 + pos] = new_v14;\r
- prev2[240 + pos] = new_v15;\r
-\r
- // V[16] is always 0.0:\r
- prev2[256 + pos] = 0.0f;\r
-\r
- // insert V[17-31] (== -new_v[15-1]) into actual v:\r
- prev2[272 + pos] = -new_v15;\r
- prev2[288 + pos] = -new_v14;\r
- prev2[304 + pos] = -new_v13;\r
- prev2[320 + pos] = -new_v12;\r
- prev2[336 + pos] = -new_v11;\r
- prev2[352 + pos] = -new_v10;\r
- prev2[368 + pos] = -new_v9;\r
- prev2[384 + pos] = -new_v8;\r
- prev2[400 + pos] = -new_v7;\r
- prev2[416 + pos] = -new_v6;\r
- prev2[432 + pos] = -new_v5;\r
- prev2[448 + pos] = -new_v4;\r
- prev2[464 + pos] = -new_v3;\r
- prev2[480 + pos] = -new_v2;\r
- prev2[496 + pos] = -new_v1;\r
-\r
- // insert V[32] (== -new_v[0]) into other v:\r
- // dest = (actual_v == v1) ? v2 : v1;\r
-\r
- prev1[0 + pos] = -new_v0;\r
- // insert V[33-48] (== new_v[16-31]) into other v:\r
- prev1[16 + pos] = new_v16;\r
- prev1[32 + pos] = new_v17;\r
- prev1[48 + pos] = new_v18;\r
- prev1[64 + pos] = new_v19;\r
- prev1[80 + pos] = new_v20;\r
- prev1[96 + pos] = new_v21;\r
- prev1[112 + pos] = new_v22;\r
- prev1[128 + pos] = new_v23;\r
- prev1[144 + pos] = new_v24;\r
- prev1[160 + pos] = new_v25;\r
- prev1[176 + pos] = new_v26;\r
- prev1[192 + pos] = new_v27;\r
- prev1[208 + pos] = new_v28;\r
- prev1[224 + pos] = new_v29;\r
- prev1[240 + pos] = new_v30;\r
- prev1[256 + pos] = new_v31;\r
-\r
- // insert V[49-63] (== new_v[30-16]) into other v:\r
- prev1[272 + pos] = new_v30;\r
- prev1[288 + pos] = new_v29;\r
- prev1[304 + pos] = new_v28;\r
- prev1[320 + pos] = new_v27;\r
- prev1[336 + pos] = new_v26;\r
- prev1[352 + pos] = new_v25;\r
- prev1[368 + pos] = new_v24;\r
- prev1[384 + pos] = new_v23;\r
- prev1[400 + pos] = new_v22;\r
- prev1[416 + pos] = new_v21;\r
- prev1[432 + pos] = new_v20;\r
- prev1[448 + pos] = new_v19;\r
- prev1[464 + pos] = new_v18;\r
- prev1[480 + pos] = new_v17;\r
- prev1[496 + pos] = new_v16;\r
- }\r
-\r
- private void compute_new_v1_v2() {\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v0 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v1 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v2 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v3 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v4 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v5 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v6 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v7 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v8 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v9 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v10 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v11 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v12 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v13 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v14 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v15 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v16 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v17 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v18 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v19 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v20 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v21 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v22 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v23 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v24 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v25 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v26 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v27 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v28 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v29 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v30 = 0.0f;\r
- @LOC("THIS,SynthesisFilter.NEWV") float new_v31 = 0.0f;\r
-\r
- // float[] new_v = new float[32]; // new V[0-15] and V[33-48] of Figure\r
- // 3-A.2 in ISO DIS 11172-3\r
- // float[] p = new float[16];\r
- // float[] pp = new float[16];\r
-\r
- // float[] s = samples;\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float s0 = samples[0];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s1 = samples[1];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s2 = samples[2];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s3 = samples[3];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s4 = samples[4];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s5 = samples[5];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s6 = samples[6];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s7 = samples[7];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s8 = samples[8];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s9 = samples[9];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s10 = samples[10];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s11 = samples[11];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s12 = samples[12];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s13 = samples[13];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s14 = samples[14];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s15 = samples[15];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s16 = samples[16];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s17 = samples[17];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s18 = samples[18];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s19 = samples[19];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s20 = samples[20];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s21 = samples[21];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s22 = samples[22];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s23 = samples[23];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s24 = samples[24];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s25 = samples[25];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s26 = samples[26];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s27 = samples[27];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s28 = samples[28];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s29 = samples[29];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s30 = samples[30];\r
- @LOC("THIS,SynthesisFilter.NEWV") float s31 = samples[31];\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float p0 = s0 + s31;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p1 = s1 + s30;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p2 = s2 + s29;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p3 = s3 + s28;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p4 = s4 + s27;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p5 = s5 + s26;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p6 = s6 + s25;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p7 = s7 + s24;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p8 = s8 + s23;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p9 = s9 + s22;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p10 = s10 + s21;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p11 = s11 + s20;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p12 = s12 + s19;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p13 = s13 + s18;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p14 = s14 + s17;\r
- @LOC("THIS,SynthesisFilter.NEWV") float p15 = s15 + s16;\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp0 = p0 + p15;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp1 = p1 + p14;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp2 = p2 + p13;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp3 = p3 + p12;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp4 = p4 + p11;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp5 = p5 + p10;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp6 = p6 + p9;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp7 = p7 + p8;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp8 = (p0 - p15) * cos1_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp9 = (p1 - p14) * cos3_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp10 = (p2 - p13) * cos5_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp11 = (p3 - p12) * cos7_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp12 = (p4 - p11) * cos9_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp13 = (p5 - p10) * cos11_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp14 = (p6 - p9) * cos13_32;\r
- @LOC("THIS,SynthesisFilter.NEWV") float pp15 = (p7 - p8) * cos15_32;\r
-\r
- p0 = pp0 + pp7;\r
- p1 = pp1 + pp6;\r
- p2 = pp2 + pp5;\r
- p3 = pp3 + pp4;\r
- p4 = (pp0 - pp7) * cos1_16;\r
- p5 = (pp1 - pp6) * cos3_16;\r
- p6 = (pp2 - pp5) * cos5_16;\r
- p7 = (pp3 - pp4) * cos7_16;\r
- p8 = pp8 + pp15;\r
- p9 = pp9 + pp14;\r
- p10 = pp10 + pp13;\r
- p11 = pp11 + pp12;\r
- p12 = (pp8 - pp15) * cos1_16;\r
- p13 = (pp9 - pp14) * cos3_16;\r
- p14 = (pp10 - pp13) * cos5_16;\r
- p15 = (pp11 - pp12) * cos7_16;\r
-\r
- pp0 = p0 + p3;\r
- pp1 = p1 + p2;\r
- pp2 = (p0 - p3) * cos1_8;\r
- pp3 = (p1 - p2) * cos3_8;\r
- pp4 = p4 + p7;\r
- pp5 = p5 + p6;\r
- pp6 = (p4 - p7) * cos1_8;\r
- pp7 = (p5 - p6) * cos3_8;\r
- pp8 = p8 + p11;\r
- pp9 = p9 + p10;\r
- pp10 = (p8 - p11) * cos1_8;\r
- pp11 = (p9 - p10) * cos3_8;\r
- pp12 = p12 + p15;\r
- pp13 = p13 + p14;\r
- pp14 = (p12 - p15) * cos1_8;\r
- pp15 = (p13 - p14) * cos3_8;\r
-\r
- p0 = pp0 + pp1;\r
- p1 = (pp0 - pp1) * cos1_4;\r
- p2 = pp2 + pp3;\r
- p3 = (pp2 - pp3) * cos1_4;\r
- p4 = pp4 + pp5;\r
- p5 = (pp4 - pp5) * cos1_4;\r
- p6 = pp6 + pp7;\r
- p7 = (pp6 - pp7) * cos1_4;\r
- p8 = pp8 + pp9;\r
- p9 = (pp8 - pp9) * cos1_4;\r
- p10 = pp10 + pp11;\r
- p11 = (pp10 - pp11) * cos1_4;\r
- p12 = pp12 + pp13;\r
- p13 = (pp12 - pp13) * cos1_4;\r
- p14 = pp14 + pp15;\r
- p15 = (pp14 - pp15) * cos1_4;\r
-\r
- // this is pretty insane coding\r
- @LOC("THIS,SynthesisFilter.NEWV") float tmp1;\r
- new_v19/* 36-17 */= -(new_v4 = (new_v12 = p7) + p5) - p6;\r
- new_v27/* 44-17 */= -p6 - p7 - p4;\r
- new_v6 = (new_v10 = (new_v14 = p15) + p11) + p13;\r
- new_v17/* 34-17 */= -(new_v2 = p15 + p13 + p9) - p14;\r
- new_v21/* 38-17 */= (tmp1 = -p14 - p15 - p10 - p11) - p13;\r
- new_v29/* 46-17 */= -p14 - p15 - p12 - p8;\r
- new_v25/* 42-17 */= tmp1 - p12;\r
- new_v31/* 48-17 */= -p0;\r
- new_v0 = p1;\r
- new_v23/* 40-17 */= -(new_v8 = p3) - p2;\r
-\r
- p0 = (s0 - s31) * cos1_64;\r
- p1 = (s1 - s30) * cos3_64;\r
- p2 = (s2 - s29) * cos5_64;\r
- p3 = (s3 - s28) * cos7_64;\r
- p4 = (s4 - s27) * cos9_64;\r
- p5 = (s5 - s26) * cos11_64;\r
- p6 = (s6 - s25) * cos13_64;\r
- p7 = (s7 - s24) * cos15_64;\r
- p8 = (s8 - s23) * cos17_64;\r
- p9 = (s9 - s22) * cos19_64;\r
- p10 = (s10 - s21) * cos21_64;\r
- p11 = (s11 - s20) * cos23_64;\r
- p12 = (s12 - s19) * cos25_64;\r
- p13 = (s13 - s18) * cos27_64;\r
- p14 = (s14 - s17) * cos29_64;\r
- p15 = (s15 - s16) * cos31_64;\r
-\r
- pp0 = p0 + p15;\r
- pp1 = p1 + p14;\r
- pp2 = p2 + p13;\r
- pp3 = p3 + p12;\r
- pp4 = p4 + p11;\r
- pp5 = p5 + p10;\r
- pp6 = p6 + p9;\r
- pp7 = p7 + p8;\r
- pp8 = (p0 - p15) * cos1_32;\r
- pp9 = (p1 - p14) * cos3_32;\r
- pp10 = (p2 - p13) * cos5_32;\r
- pp11 = (p3 - p12) * cos7_32;\r
- pp12 = (p4 - p11) * cos9_32;\r
- pp13 = (p5 - p10) * cos11_32;\r
- pp14 = (p6 - p9) * cos13_32;\r
- pp15 = (p7 - p8) * cos15_32;\r
-\r
- p0 = pp0 + pp7;\r
- p1 = pp1 + pp6;\r
- p2 = pp2 + pp5;\r
- p3 = pp3 + pp4;\r
- p4 = (pp0 - pp7) * cos1_16;\r
- p5 = (pp1 - pp6) * cos3_16;\r
- p6 = (pp2 - pp5) * cos5_16;\r
- p7 = (pp3 - pp4) * cos7_16;\r
- p8 = pp8 + pp15;\r
- p9 = pp9 + pp14;\r
- p10 = pp10 + pp13;\r
- p11 = pp11 + pp12;\r
- p12 = (pp8 - pp15) * cos1_16;\r
- p13 = (pp9 - pp14) * cos3_16;\r
- p14 = (pp10 - pp13) * cos5_16;\r
- p15 = (pp11 - pp12) * cos7_16;\r
-\r
- pp0 = p0 + p3;\r
- pp1 = p1 + p2;\r
- pp2 = (p0 - p3) * cos1_8;\r
- pp3 = (p1 - p2) * cos3_8;\r
- pp4 = p4 + p7;\r
- pp5 = p5 + p6;\r
- pp6 = (p4 - p7) * cos1_8;\r
- pp7 = (p5 - p6) * cos3_8;\r
- pp8 = p8 + p11;\r
- pp9 = p9 + p10;\r
- pp10 = (p8 - p11) * cos1_8;\r
- pp11 = (p9 - p10) * cos3_8;\r
- pp12 = p12 + p15;\r
- pp13 = p13 + p14;\r
- pp14 = (p12 - p15) * cos1_8;\r
- pp15 = (p13 - p14) * cos3_8;\r
-\r
- p0 = pp0 + pp1;\r
- p1 = (pp0 - pp1) * cos1_4;\r
- p2 = pp2 + pp3;\r
- p3 = (pp2 - pp3) * cos1_4;\r
- p4 = pp4 + pp5;\r
- p5 = (pp4 - pp5) * cos1_4;\r
- p6 = pp6 + pp7;\r
- p7 = (pp6 - pp7) * cos1_4;\r
- p8 = pp8 + pp9;\r
- p9 = (pp8 - pp9) * cos1_4;\r
- p10 = pp10 + pp11;\r
- p11 = (pp10 - pp11) * cos1_4;\r
- p12 = pp12 + pp13;\r
- p13 = (pp12 - pp13) * cos1_4;\r
- p14 = pp14 + pp15;\r
- p15 = (pp14 - pp15) * cos1_4;\r
-\r
- // manually doing something that a compiler should handle sucks\r
- // coding like this is hard to read\r
- @LOC("THIS,SynthesisFilter.NEWV") float tmp2;\r
- new_v5 = (new_v11 = (new_v13 = (new_v15 = p15) + p7) + p11) + p5 + p13;\r
- new_v7 = (new_v9 = p15 + p11 + p3) + p13;\r
- new_v16/* 33-17 */= -(new_v1 = (tmp1 = p13 + p15 + p9) + p1) - p14;\r
- new_v18/* 35-17 */= -(new_v3 = tmp1 + p5 + p7) - p6 - p14;\r
-\r
- new_v22/* 39-17 */= (tmp1 = -p10 - p11 - p14 - p15) - p13 - p2 - p3;\r
- new_v20/* 37-17 */= tmp1 - p13 - p5 - p6 - p7;\r
- new_v24/* 41-17 */= tmp1 - p12 - p2 - p3;\r
- new_v26/* 43-17 */= tmp1 - p12 - (tmp2 = p4 + p6 + p7);\r
- new_v30/* 47-17 */= (tmp1 = -p8 - p12 - p14 - p15) - p0;\r
- new_v28/* 45-17 */= tmp1 - tmp2;\r
-\r
- // insert V[0-15] (== new_v[0-15]) into actual v:\r
- // float[] x2 = actual_v + actual_write_pos;\r
- // float dest[] = actual_v; actual_v=v1;\r
-\r
- @LOC("THIS,SynthesisFilter.NEWV") int pos = actual_write_pos;\r
-\r
- v1[0 + pos] = new_v0;\r
- v1[16 + pos] = new_v1;\r
- v1[32 + pos] = new_v2;\r
- v1[48 + pos] = new_v3;\r
- v1[64 + pos] = new_v4;\r
- v1[80 + pos] = new_v5;\r
- v1[96 + pos] = new_v6;\r
- v1[112 + pos] = new_v7;\r
- v1[128 + pos] = new_v8;\r
- v1[144 + pos] = new_v9;\r
- v1[160 + pos] = new_v10;\r
- v1[176 + pos] = new_v11;\r
- v1[192 + pos] = new_v12;\r
- v1[208 + pos] = new_v13;\r
- v1[224 + pos] = new_v14;\r
- v1[240 + pos] = new_v15;\r
-\r
- // V[16] is always 0.0:\r
- v1[256 + pos] = 0.0f;\r
-\r
- // insert V[17-31] (== -new_v[15-1]) into actual v:\r
- v1[272 + pos] = -new_v15;\r
- v1[288 + pos] = -new_v14;\r
- v1[304 + pos] = -new_v13;\r
- v1[320 + pos] = -new_v12;\r
- v1[336 + pos] = -new_v11;\r
- v1[352 + pos] = -new_v10;\r
- v1[368 + pos] = -new_v9;\r
- v1[384 + pos] = -new_v8;\r
- v1[400 + pos] = -new_v7;\r
- v1[416 + pos] = -new_v6;\r
- v1[432 + pos] = -new_v5;\r
- v1[448 + pos] = -new_v4;\r
- v1[464 + pos] = -new_v3;\r
- v1[480 + pos] = -new_v2;\r
- v1[496 + pos] = -new_v1;\r
-\r
- // insert V[32] (== -new_v[0]) into other v:\r
- // dest = (actual_v == v1) ? v2 : v1;\r
-\r
- v2[0 + pos] = -new_v0;\r
- // insert V[33-48] (== new_v[16-31]) into other v:\r
- v2[16 + pos] = new_v16;\r
- v2[32 + pos] = new_v17;\r
- v2[48 + pos] = new_v18;\r
- v2[64 + pos] = new_v19;\r
- v2[80 + pos] = new_v20;\r
- v2[96 + pos] = new_v21;\r
- v2[112 + pos] = new_v22;\r
- v2[128 + pos] = new_v23;\r
- v2[144 + pos] = new_v24;\r
- v2[160 + pos] = new_v25;\r
- v2[176 + pos] = new_v26;\r
- v2[192 + pos] = new_v27;\r
- v2[208 + pos] = new_v28;\r
- v2[224 + pos] = new_v29;\r
- v2[240 + pos] = new_v30;\r
- v2[256 + pos] = new_v31;\r
-\r
- // insert V[49-63] (== new_v[30-16]) into other v:\r
- v2[272 + pos] = new_v30;\r
- v2[288 + pos] = new_v29;\r
- v2[304 + pos] = new_v28;\r
- v2[320 + pos] = new_v27;\r
- v2[336 + pos] = new_v26;\r
- v2[352 + pos] = new_v25;\r
- v2[368 + pos] = new_v24;\r
- v2[384 + pos] = new_v23;\r
- v2[400 + pos] = new_v22;\r
- v2[416 + pos] = new_v21;\r
- v2[432 + pos] = new_v20;\r
- v2[448 + pos] = new_v19;\r
- v2[464 + pos] = new_v18;\r
- v2[480 + pos] = new_v17;\r
- v2[496 + pos] = new_v16;\r
-\r
- /*\r
- * setup PREV\r
- */\r
-\r
- prev1[0 + pos] = new_v0;\r
- prev1[16 + pos] = new_v1;\r
- prev1[32 + pos] = new_v2;\r
- prev1[48 + pos] = new_v3;\r
- prev1[64 + pos] = new_v4;\r
- prev1[80 + pos] = new_v5;\r
- prev1[96 + pos] = new_v6;\r
- prev1[112 + pos] = new_v7;\r
- prev1[128 + pos] = new_v8;\r
- prev1[144 + pos] = new_v9;\r
- prev1[160 + pos] = new_v10;\r
- prev1[176 + pos] = new_v11;\r
- prev1[192 + pos] = new_v12;\r
- prev1[208 + pos] = new_v13;\r
- prev1[224 + pos] = new_v14;\r
- prev1[240 + pos] = new_v15;\r
-\r
- // V[16] is always 0.0:\r
- prev1[256 + pos] = 0.0f;\r
-\r
- // insert V[17-31] (== -new_v[15-1]) into actual v:\r
- prev1[272 + pos] = -new_v15;\r
- prev1[288 + pos] = -new_v14;\r
- prev1[304 + pos] = -new_v13;\r
- prev1[320 + pos] = -new_v12;\r
- prev1[336 + pos] = -new_v11;\r
- prev1[352 + pos] = -new_v10;\r
- prev1[368 + pos] = -new_v9;\r
- prev1[384 + pos] = -new_v8;\r
- prev1[400 + pos] = -new_v7;\r
- prev1[416 + pos] = -new_v6;\r
- prev1[432 + pos] = -new_v5;\r
- prev1[448 + pos] = -new_v4;\r
- prev1[464 + pos] = -new_v3;\r
- prev1[480 + pos] = -new_v2;\r
- prev1[496 + pos] = -new_v1;\r
-\r
- // insert V[32] (== -new_v[0]) into other v:\r
- // dest = (actual_v == v1) ? v2 : v1;\r
-\r
- prev2[0 + pos] = -new_v0;\r
- // insert V[33-48] (== new_v[16-31]) into other v:\r
- prev2[16 + pos] = new_v16;\r
- prev2[32 + pos] = new_v17;\r
- prev2[48 + pos] = new_v18;\r
- prev2[64 + pos] = new_v19;\r
- prev2[80 + pos] = new_v20;\r
- prev2[96 + pos] = new_v21;\r
- prev2[112 + pos] = new_v22;\r
- prev2[128 + pos] = new_v23;\r
- prev2[144 + pos] = new_v24;\r
- prev2[160 + pos] = new_v25;\r
- prev2[176 + pos] = new_v26;\r
- prev2[192 + pos] = new_v27;\r
- prev2[208 + pos] = new_v28;\r
- prev2[224 + pos] = new_v29;\r
- prev2[240 + pos] = new_v30;\r
- prev2[256 + pos] = new_v31;\r
-\r
- // insert V[49-63] (== new_v[30-16]) into other v:\r
- prev2[272 + pos] = new_v30;\r
- prev2[288 + pos] = new_v29;\r
- prev2[304 + pos] = new_v28;\r
- prev2[320 + pos] = new_v27;\r
- prev2[336 + pos] = new_v26;\r
- prev2[352 + pos] = new_v25;\r
- prev2[368 + pos] = new_v24;\r
- prev2[384 + pos] = new_v23;\r
- prev2[400 + pos] = new_v22;\r
- prev2[416 + pos] = new_v21;\r
- prev2[432 + pos] = new_v20;\r
- prev2[448 + pos] = new_v19;\r
- prev2[464 + pos] = new_v18;\r
- prev2[480 + pos] = new_v17;\r
- prev2[496 + pos] = new_v16;\r
- }\r
-\r
- /**\r
- * Compute PCM Samples.\r
- */\r
-\r
- @LOC("OUT")\r
- private float[] _tmpOut = new float[32];\r
-\r
- private void compute_pcm_samples0() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
- // final float[] dp = d16[i];\r
- pcm_sample =\r
- (float) (((v1[0 + dvp] * d16[i][0]) + (v1[15 + dvp] * d16[i][1])\r
- + (v1[14 + dvp] * d16[i][2]) + (v1[13 + dvp] * d16[i][3])\r
- + (v1[12 + dvp] * d16[i][4]) + (v1[11 + dvp] * d16[i][5])\r
- + (v1[10 + dvp] * d16[i][6]) + (v1[9 + dvp] * d16[i][7])\r
- + (v1[8 + dvp] * d16[i][8]) + (v1[7 + dvp] * d16[i][9])\r
- + (v1[6 + dvp] * d16[i][10]) + (v1[5 + dvp] * d16[i][11])\r
- + (v1[4 + dvp] * d16[i][12]) + (v1[3 + dvp] * d16[i][13])\r
- + (v1[2 + dvp] * d16[i][14]) + (v1[1 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
- // final float[] dp = d16[i];\r
- pcm_sample =\r
- (float) (((v2[0 + dvp] * d16[i][0]) + (v2[15 + dvp] * d16[i][1])\r
- + (v2[14 + dvp] * d16[i][2]) + (v2[13 + dvp] * d16[i][3])\r
- + (v2[12 + dvp] * d16[i][4]) + (v2[11 + dvp] * d16[i][5])\r
- + (v2[10 + dvp] * d16[i][6]) + (v2[9 + dvp] * d16[i][7])\r
- + (v2[8 + dvp] * d16[i][8]) + (v2[7 + dvp] * d16[i][9])\r
- + (v2[6 + dvp] * d16[i][10]) + (v2[5 + dvp] * d16[i][11])\r
- + (v2[4 + dvp] * d16[i][12]) + (v2[3 + dvp] * d16[i][13])\r
- + (v2[2 + dvp] * d16[i][14]) + (v2[1 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples1() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[1 + dvp] * d16[i][0]) + (v1[0 + dvp] * d16[i][1])\r
- + (v1[15 + dvp] * d16[i][2]) + (v1[14 + dvp] * d16[i][3])\r
- + (v1[13 + dvp] * d16[i][4]) + (v1[12 + dvp] * d16[i][5])\r
- + (v1[11 + dvp] * d16[i][6]) + (v1[10 + dvp] * d16[i][7])\r
- + (v1[9 + dvp] * d16[i][8]) + (v1[8 + dvp] * d16[i][9])\r
- + (v1[7 + dvp] * d16[i][10]) + (v1[6 + dvp] * d16[i][11])\r
- + (v1[5 + dvp] * d16[i][12]) + (v1[4 + dvp] * d16[i][13])\r
- + (v1[3 + dvp] * d16[i][14]) + (v1[2 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[1 + dvp] * d16[i][0]) + (v2[0 + dvp] * d16[i][1])\r
- + (v2[15 + dvp] * d16[i][2]) + (v2[14 + dvp] * d16[i][3])\r
- + (v2[13 + dvp] * d16[i][4]) + (v2[12 + dvp] * d16[i][5])\r
- + (v2[11 + dvp] * d16[i][6]) + (v2[10 + dvp] * d16[i][7])\r
- + (v2[9 + dvp] * d16[i][8]) + (v2[8 + dvp] * d16[i][9])\r
- + (v2[7 + dvp] * d16[i][10]) + (v2[6 + dvp] * d16[i][11])\r
- + (v2[5 + dvp] * d16[i][12]) + (v2[4 + dvp] * d16[i][13])\r
- + (v2[3 + dvp] * d16[i][14]) + (v2[2 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples2() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[2 + dvp] * d16[i][0]) + (v1[1 + dvp] * d16[i][1])\r
- + (v1[0 + dvp] * d16[i][2]) + (v1[15 + dvp] * d16[i][3])\r
- + (v1[14 + dvp] * d16[i][4]) + (v1[13 + dvp] * d16[i][5])\r
- + (v1[12 + dvp] * d16[i][6]) + (v1[11 + dvp] * d16[i][7])\r
- + (v1[10 + dvp] * d16[i][8]) + (v1[9 + dvp] * d16[i][9])\r
- + (v1[8 + dvp] * d16[i][10]) + (v1[7 + dvp] * d16[i][11])\r
- + (v1[6 + dvp] * d16[i][12]) + (v1[5 + dvp] * d16[i][13])\r
- + (v1[4 + dvp] * d16[i][14]) + (v1[3 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[2 + dvp] * d16[i][0]) + (v2[1 + dvp] * d16[i][1])\r
- + (v2[0 + dvp] * d16[i][2]) + (v2[15 + dvp] * d16[i][3])\r
- + (v2[14 + dvp] * d16[i][4]) + (v2[13 + dvp] * d16[i][5])\r
- + (v2[12 + dvp] * d16[i][6]) + (v2[11 + dvp] * d16[i][7])\r
- + (v2[10 + dvp] * d16[i][8]) + (v2[9 + dvp] * d16[i][9])\r
- + (v2[8 + dvp] * d16[i][10]) + (v2[7 + dvp] * d16[i][11])\r
- + (v2[6 + dvp] * d16[i][12]) + (v2[5 + dvp] * d16[i][13])\r
- + (v2[4 + dvp] * d16[i][14]) + (v2[3 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples3() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[3 + dvp] * d16[i][0]) + (v1[2 + dvp] * d16[i][1])\r
- + (v1[1 + dvp] * d16[i][2]) + (v1[0 + dvp] * d16[i][3])\r
- + (v1[15 + dvp] * d16[i][4]) + (v1[14 + dvp] * d16[i][5])\r
- + (v1[13 + dvp] * d16[i][6]) + (v1[12 + dvp] * d16[i][7])\r
- + (v1[11 + dvp] * d16[i][8]) + (v1[10 + dvp] * d16[i][9])\r
- + (v1[9 + dvp] * d16[i][10]) + (v1[8 + dvp] * d16[i][11])\r
- + (v1[7 + dvp] * d16[i][12]) + (v1[6 + dvp] * d16[i][13])\r
- + (v1[5 + dvp] * d16[i][14]) + (v1[4 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[3 + dvp] * d16[i][0]) + (v2[2 + dvp] * d16[i][1])\r
- + (v2[1 + dvp] * d16[i][2]) + (v2[0 + dvp] * d16[i][3])\r
- + (v2[15 + dvp] * d16[i][4]) + (v2[14 + dvp] * d16[i][5])\r
- + (v2[13 + dvp] * d16[i][6]) + (v2[12 + dvp] * d16[i][7])\r
- + (v2[11 + dvp] * d16[i][8]) + (v2[10 + dvp] * d16[i][9])\r
- + (v2[9 + dvp] * d16[i][10]) + (v2[8 + dvp] * d16[i][11])\r
- + (v2[7 + dvp] * d16[i][12]) + (v2[6 + dvp] * d16[i][13])\r
- + (v2[5 + dvp] * d16[i][14]) + (v2[4 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples4() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[4 + dvp] * d16[i][0]) + (v1[3 + dvp] * d16[i][1])\r
- + (v1[2 + dvp] * d16[i][2]) + (v1[1 + dvp] * d16[i][3]) + (v1[0 + dvp] * d16[i][4])\r
- + (v1[15 + dvp] * d16[i][5]) + (v1[14 + dvp] * d16[i][6])\r
- + (v1[13 + dvp] * d16[i][7]) + (v1[12 + dvp] * d16[i][8])\r
- + (v1[11 + dvp] * d16[i][9]) + (v1[10 + dvp] * d16[i][10])\r
- + (v1[9 + dvp] * d16[i][11]) + (v1[8 + dvp] * d16[i][12])\r
- + (v1[7 + dvp] * d16[i][13]) + (v1[6 + dvp] * d16[i][14]) + (v1[5 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[4 + dvp] * d16[i][0]) + (v2[3 + dvp] * d16[i][1])\r
- + (v2[2 + dvp] * d16[i][2]) + (v2[1 + dvp] * d16[i][3]) + (v2[0 + dvp] * d16[i][4])\r
- + (v2[15 + dvp] * d16[i][5]) + (v2[14 + dvp] * d16[i][6])\r
- + (v2[13 + dvp] * d16[i][7]) + (v2[12 + dvp] * d16[i][8])\r
- + (v2[11 + dvp] * d16[i][9]) + (v2[10 + dvp] * d16[i][10])\r
- + (v2[9 + dvp] * d16[i][11]) + (v2[8 + dvp] * d16[i][12])\r
- + (v2[7 + dvp] * d16[i][13]) + (v2[6 + dvp] * d16[i][14]) + (v2[5 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples5() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[5 + dvp] * d16[i][0]) + (v1[4 + dvp] * d16[i][1])\r
- + (v1[3 + dvp] * d16[i][2]) + (v1[2 + dvp] * d16[i][3]) + (v1[1 + dvp] * d16[i][4])\r
- + (v1[0 + dvp] * d16[i][5]) + (v1[15 + dvp] * d16[i][6])\r
- + (v1[14 + dvp] * d16[i][7]) + (v1[13 + dvp] * d16[i][8])\r
- + (v1[12 + dvp] * d16[i][9]) + (v1[11 + dvp] * d16[i][10])\r
- + (v1[10 + dvp] * d16[i][11]) + (v1[9 + dvp] * d16[i][12])\r
- + (v1[8 + dvp] * d16[i][13]) + (v1[7 + dvp] * d16[i][14]) + (v1[6 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[5 + dvp] * d16[i][0]) + (v2[4 + dvp] * d16[i][1])\r
- + (v2[3 + dvp] * d16[i][2]) + (v2[2 + dvp] * d16[i][3]) + (v2[1 + dvp] * d16[i][4])\r
- + (v2[0 + dvp] * d16[i][5]) + (v2[15 + dvp] * d16[i][6])\r
- + (v2[14 + dvp] * d16[i][7]) + (v2[13 + dvp] * d16[i][8])\r
- + (v2[12 + dvp] * d16[i][9]) + (v2[11 + dvp] * d16[i][10])\r
- + (v2[10 + dvp] * d16[i][11]) + (v2[9 + dvp] * d16[i][12])\r
- + (v2[8 + dvp] * d16[i][13]) + (v2[7 + dvp] * d16[i][14]) + (v2[6 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples6() {\r
-\r
- if (vidx == 1) {\r
-\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[6 + dvp] * d16[i][0]) + (v1[5 + dvp] * d16[i][1])\r
- + (v1[4 + dvp] * d16[i][2]) + (v1[3 + dvp] * d16[i][3]) + (v1[2 + dvp] * d16[i][4])\r
- + (v1[1 + dvp] * d16[i][5]) + (v1[0 + dvp] * d16[i][6])\r
- + (v1[15 + dvp] * d16[i][7]) + (v1[14 + dvp] * d16[i][8])\r
- + (v1[13 + dvp] * d16[i][9]) + (v1[12 + dvp] * d16[i][10])\r
- + (v1[11 + dvp] * d16[i][11]) + (v1[10 + dvp] * d16[i][12])\r
- + (v1[9 + dvp] * d16[i][13]) + (v1[8 + dvp] * d16[i][14]) + (v1[7 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
-\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[6 + dvp] * d16[i][0]) + (v2[5 + dvp] * d16[i][1])\r
- + (v2[4 + dvp] * d16[i][2]) + (v2[3 + dvp] * d16[i][3]) + (v2[2 + dvp] * d16[i][4])\r
- + (v2[1 + dvp] * d16[i][5]) + (v2[0 + dvp] * d16[i][6])\r
- + (v2[15 + dvp] * d16[i][7]) + (v2[14 + dvp] * d16[i][8])\r
- + (v2[13 + dvp] * d16[i][9]) + (v2[12 + dvp] * d16[i][10])\r
- + (v2[11 + dvp] * d16[i][11]) + (v2[10 + dvp] * d16[i][12])\r
- + (v2[9 + dvp] * d16[i][13]) + (v2[8 + dvp] * d16[i][14]) + (v2[7 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples7() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[7 + dvp] * d16[i][0]) + (v1[6 + dvp] * d16[i][1])\r
- + (v1[5 + dvp] * d16[i][2]) + (v1[4 + dvp] * d16[i][3]) + (v1[3 + dvp] * d16[i][4])\r
- + (v1[2 + dvp] * d16[i][5]) + (v1[1 + dvp] * d16[i][6]) + (v1[0 + dvp] * d16[i][7])\r
- + (v1[15 + dvp] * d16[i][8]) + (v1[14 + dvp] * d16[i][9])\r
- + (v1[13 + dvp] * d16[i][10]) + (v1[12 + dvp] * d16[i][11])\r
- + (v1[11 + dvp] * d16[i][12]) + (v1[10 + dvp] * d16[i][13])\r
- + (v1[9 + dvp] * d16[i][14]) + (v1[8 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[7 + dvp] * d16[i][0]) + (v2[6 + dvp] * d16[i][1])\r
- + (v2[5 + dvp] * d16[i][2]) + (v2[4 + dvp] * d16[i][3]) + (v2[3 + dvp] * d16[i][4])\r
- + (v2[2 + dvp] * d16[i][5]) + (v2[1 + dvp] * d16[i][6]) + (v2[0 + dvp] * d16[i][7])\r
- + (v2[15 + dvp] * d16[i][8]) + (v2[14 + dvp] * d16[i][9])\r
- + (v2[13 + dvp] * d16[i][10]) + (v2[12 + dvp] * d16[i][11])\r
- + (v2[11 + dvp] * d16[i][12]) + (v2[10 + dvp] * d16[i][13])\r
- + (v2[9 + dvp] * d16[i][14]) + (v2[8 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples8() {\r
-\r
- if (vidx == 1) {\r
-\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[8 + dvp] * d16[i][0]) + (v1[7 + dvp] * d16[i][1])\r
- + (v1[6 + dvp] * d16[i][2]) + (v1[5 + dvp] * d16[i][3]) + (v1[4 + dvp] * d16[i][4])\r
- + (v1[3 + dvp] * d16[i][5]) + (v1[2 + dvp] * d16[i][6]) + (v1[1 + dvp] * d16[i][7])\r
- + (v1[0 + dvp] * d16[i][8]) + (v1[15 + dvp] * d16[i][9])\r
- + (v1[14 + dvp] * d16[i][10]) + (v1[13 + dvp] * d16[i][11])\r
- + (v1[12 + dvp] * d16[i][12]) + (v1[11 + dvp] * d16[i][13])\r
- + (v1[10 + dvp] * d16[i][14]) + (v1[9 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
-\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[8 + dvp] * d16[i][0]) + (v2[7 + dvp] * d16[i][1])\r
- + (v2[6 + dvp] * d16[i][2]) + (v2[5 + dvp] * d16[i][3]) + (v2[4 + dvp] * d16[i][4])\r
- + (v2[3 + dvp] * d16[i][5]) + (v2[2 + dvp] * d16[i][6]) + (v2[1 + dvp] * d16[i][7])\r
- + (v2[0 + dvp] * d16[i][8]) + (v2[15 + dvp] * d16[i][9])\r
- + (v2[14 + dvp] * d16[i][10]) + (v2[13 + dvp] * d16[i][11])\r
- + (v2[12 + dvp] * d16[i][12]) + (v2[11 + dvp] * d16[i][13])\r
- + (v2[10 + dvp] * d16[i][14]) + (v2[9 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples9() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[9 + dvp] * d16[i][0]) + (v1[8 + dvp] * d16[i][1])\r
- + (v1[7 + dvp] * d16[i][2]) + (v1[6 + dvp] * d16[i][3]) + (v1[5 + dvp] * d16[i][4])\r
- + (v1[4 + dvp] * d16[i][5]) + (v1[3 + dvp] * d16[i][6]) + (v1[2 + dvp] * d16[i][7])\r
- + (v1[1 + dvp] * d16[i][8]) + (v1[0 + dvp] * d16[i][9])\r
- + (v1[15 + dvp] * d16[i][10]) + (v1[14 + dvp] * d16[i][11])\r
- + (v1[13 + dvp] * d16[i][12]) + (v1[12 + dvp] * d16[i][13])\r
- + (v1[11 + dvp] * d16[i][14]) + (v1[10 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[9 + dvp] * d16[i][0]) + (v2[8 + dvp] * d16[i][1])\r
- + (v2[7 + dvp] * d16[i][2]) + (v2[6 + dvp] * d16[i][3]) + (v2[5 + dvp] * d16[i][4])\r
- + (v2[4 + dvp] * d16[i][5]) + (v2[3 + dvp] * d16[i][6]) + (v2[2 + dvp] * d16[i][7])\r
- + (v2[1 + dvp] * d16[i][8]) + (v2[0 + dvp] * d16[i][9])\r
- + (v2[15 + dvp] * d16[i][10]) + (v2[14 + dvp] * d16[i][11])\r
- + (v2[13 + dvp] * d16[i][12]) + (v2[12 + dvp] * d16[i][13])\r
- + (v2[11 + dvp] * d16[i][14]) + (v2[10 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples10() {\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[10 + dvp] * d16[i][0]) + (v1[9 + dvp] * d16[i][1])\r
- + (v1[8 + dvp] * d16[i][2]) + (v1[7 + dvp] * d16[i][3]) + (v1[6 + dvp] * d16[i][4])\r
- + (v1[5 + dvp] * d16[i][5]) + (v1[4 + dvp] * d16[i][6]) + (v1[3 + dvp] * d16[i][7])\r
- + (v1[2 + dvp] * d16[i][8]) + (v1[1 + dvp] * d16[i][9])\r
- + (v1[0 + dvp] * d16[i][10]) + (v1[15 + dvp] * d16[i][11])\r
- + (v1[14 + dvp] * d16[i][12]) + (v1[13 + dvp] * d16[i][13])\r
- + (v1[12 + dvp] * d16[i][14]) + (v1[11 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[10 + dvp] * d16[i][0]) + (v2[9 + dvp] * d16[i][1])\r
- + (v2[8 + dvp] * d16[i][2]) + (v2[7 + dvp] * d16[i][3]) + (v2[6 + dvp] * d16[i][4])\r
- + (v2[5 + dvp] * d16[i][5]) + (v2[4 + dvp] * d16[i][6]) + (v2[3 + dvp] * d16[i][7])\r
- + (v2[2 + dvp] * d16[i][8]) + (v2[1 + dvp] * d16[i][9])\r
- + (v2[0 + dvp] * d16[i][10]) + (v2[15 + dvp] * d16[i][11])\r
- + (v2[14 + dvp] * d16[i][12]) + (v2[13 + dvp] * d16[i][13])\r
- + (v2[12 + dvp] * d16[i][14]) + (v2[11 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples11() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[11 + dvp] * d16[i][0]) + (v1[10 + dvp] * d16[i][1])\r
- + (v1[9 + dvp] * d16[i][2]) + (v1[8 + dvp] * d16[i][3]) + (v1[7 + dvp] * d16[i][4])\r
- + (v1[6 + dvp] * d16[i][5]) + (v1[5 + dvp] * d16[i][6]) + (v1[4 + dvp] * d16[i][7])\r
- + (v1[3 + dvp] * d16[i][8]) + (v1[2 + dvp] * d16[i][9])\r
- + (v1[1 + dvp] * d16[i][10]) + (v1[0 + dvp] * d16[i][11])\r
- + (v1[15 + dvp] * d16[i][12]) + (v1[14 + dvp] * d16[i][13])\r
- + (v1[13 + dvp] * d16[i][14]) + (v1[12 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[11 + dvp] * d16[i][0]) + (v2[10 + dvp] * d16[i][1])\r
- + (v2[9 + dvp] * d16[i][2]) + (v2[8 + dvp] * d16[i][3]) + (v2[7 + dvp] * d16[i][4])\r
- + (v2[6 + dvp] * d16[i][5]) + (v2[5 + dvp] * d16[i][6]) + (v2[4 + dvp] * d16[i][7])\r
- + (v2[3 + dvp] * d16[i][8]) + (v2[2 + dvp] * d16[i][9])\r
- + (v2[1 + dvp] * d16[i][10]) + (v2[0 + dvp] * d16[i][11])\r
- + (v2[15 + dvp] * d16[i][12]) + (v2[14 + dvp] * d16[i][13])\r
- + (v2[13 + dvp] * d16[i][14]) + (v2[12 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples12() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[12 + dvp] * d16[i][0]) + (v1[11 + dvp] * d16[i][1])\r
- + (v1[10 + dvp] * d16[i][2]) + (v1[9 + dvp] * d16[i][3])\r
- + (v1[8 + dvp] * d16[i][4]) + (v1[7 + dvp] * d16[i][5]) + (v1[6 + dvp] * d16[i][6])\r
- + (v1[5 + dvp] * d16[i][7]) + (v1[4 + dvp] * d16[i][8]) + (v1[3 + dvp] * d16[i][9])\r
- + (v1[2 + dvp] * d16[i][10]) + (v1[1 + dvp] * d16[i][11])\r
- + (v1[0 + dvp] * d16[i][12]) + (v1[15 + dvp] * d16[i][13])\r
- + (v1[14 + dvp] * d16[i][14]) + (v1[13 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[12 + dvp] * d16[i][0]) + (v2[11 + dvp] * d16[i][1])\r
- + (v2[10 + dvp] * d16[i][2]) + (v2[9 + dvp] * d16[i][3])\r
- + (v2[8 + dvp] * d16[i][4]) + (v2[7 + dvp] * d16[i][5]) + (v2[6 + dvp] * d16[i][6])\r
- + (v2[5 + dvp] * d16[i][7]) + (v2[4 + dvp] * d16[i][8]) + (v2[3 + dvp] * d16[i][9])\r
- + (v2[2 + dvp] * d16[i][10]) + (v2[1 + dvp] * d16[i][11])\r
- + (v2[0 + dvp] * d16[i][12]) + (v2[15 + dvp] * d16[i][13])\r
- + (v2[14 + dvp] * d16[i][14]) + (v2[13 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples13() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[13 + dvp] * d16[i][0]) + (v1[12 + dvp] * d16[i][1])\r
- + (v1[11 + dvp] * d16[i][2]) + (v1[10 + dvp] * d16[i][3])\r
- + (v1[9 + dvp] * d16[i][4]) + (v1[8 + dvp] * d16[i][5]) + (v1[7 + dvp] * d16[i][6])\r
- + (v1[6 + dvp] * d16[i][7]) + (v1[5 + dvp] * d16[i][8]) + (v1[4 + dvp] * d16[i][9])\r
- + (v1[3 + dvp] * d16[i][10]) + (v1[2 + dvp] * d16[i][11])\r
- + (v1[1 + dvp] * d16[i][12]) + (v1[0 + dvp] * d16[i][13])\r
- + (v1[15 + dvp] * d16[i][14]) + (v1[14 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[13 + dvp] * d16[i][0]) + (v2[12 + dvp] * d16[i][1])\r
- + (v2[11 + dvp] * d16[i][2]) + (v2[10 + dvp] * d16[i][3])\r
- + (v2[9 + dvp] * d16[i][4]) + (v2[8 + dvp] * d16[i][5]) + (v2[7 + dvp] * d16[i][6])\r
- + (v2[6 + dvp] * d16[i][7]) + (v2[5 + dvp] * d16[i][8]) + (v2[4 + dvp] * d16[i][9])\r
- + (v2[3 + dvp] * d16[i][10]) + (v2[2 + dvp] * d16[i][11])\r
- + (v2[1 + dvp] * d16[i][12]) + (v2[0 + dvp] * d16[i][13])\r
- + (v2[15 + dvp] * d16[i][14]) + (v2[14 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples14() {\r
-\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v1[14 + dvp] * d16[i][0]) + (v1[13 + dvp] * d16[i][1])\r
- + (v1[12 + dvp] * d16[i][2]) + (v1[11 + dvp] * d16[i][3])\r
- + (v1[10 + dvp] * d16[i][4]) + (v1[9 + dvp] * d16[i][5])\r
- + (v1[8 + dvp] * d16[i][6]) + (v1[7 + dvp] * d16[i][7]) + (v1[6 + dvp] * d16[i][8])\r
- + (v1[5 + dvp] * d16[i][9]) + (v1[4 + dvp] * d16[i][10])\r
- + (v1[3 + dvp] * d16[i][11]) + (v1[2 + dvp] * d16[i][12])\r
- + (v1[1 + dvp] * d16[i][13]) + (v1[0 + dvp] * d16[i][14]) + (v1[15 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- // final float[] dp = d16[i];\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
-\r
- pcm_sample =\r
- (float) (((v2[14 + dvp] * d16[i][0]) + (v2[13 + dvp] * d16[i][1])\r
- + (v2[12 + dvp] * d16[i][2]) + (v2[11 + dvp] * d16[i][3])\r
- + (v2[10 + dvp] * d16[i][4]) + (v2[9 + dvp] * d16[i][5])\r
- + (v2[8 + dvp] * d16[i][6]) + (v2[7 + dvp] * d16[i][7]) + (v2[6 + dvp] * d16[i][8])\r
- + (v2[5 + dvp] * d16[i][9]) + (v2[4 + dvp] * d16[i][10])\r
- + (v2[3 + dvp] * d16[i][11]) + (v2[2 + dvp] * d16[i][12])\r
- + (v2[1 + dvp] * d16[i][13]) + (v2[0 + dvp] * d16[i][14]) + (v2[15 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
-\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples15() {\r
- if (vidx == 1) {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
- // final float d16[i][] = d16[i];\r
- pcm_sample =\r
- (float) (((v1[15 + dvp] * d16[i][0]) + (v1[14 + dvp] * d16[i][1])\r
- + (v1[13 + dvp] * d16[i][2]) + (v1[12 + dvp] * d16[i][3])\r
- + (v1[11 + dvp] * d16[i][4]) + (v1[10 + dvp] * d16[i][5])\r
- + (v1[9 + dvp] * d16[i][6]) + (v1[8 + dvp] * d16[i][7]) + (v1[7 + dvp] * d16[i][8])\r
- + (v1[6 + dvp] * d16[i][9]) + (v1[5 + dvp] * d16[i][10])\r
- + (v1[4 + dvp] * d16[i][11]) + (v1[3 + dvp] * d16[i][12])\r
- + (v1[2 + dvp] * d16[i][13]) + (v1[1 + dvp] * d16[i][14]) + (v1[0 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
- dvp += 16;\r
- } // for\r
- } else {\r
- // final float[] vp = actual_v;\r
-\r
- // int inc = v_inc;\r
- // final float[] tmpOut = _tmpOut;\r
- @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;\r
-\r
- // fat chance of having this loop unroll\r
- for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {\r
- @LOC("THIS,SynthesisFilter.V2") float pcm_sample;\r
- // final float d16[i][] = d16[i];\r
- pcm_sample =\r
- (float) (((v2[15 + dvp] * d16[i][0]) + (v2[14 + dvp] * d16[i][1])\r
- + (v2[13 + dvp] * d16[i][2]) + (v2[12 + dvp] * d16[i][3])\r
- + (v2[11 + dvp] * d16[i][4]) + (v2[10 + dvp] * d16[i][5])\r
- + (v2[9 + dvp] * d16[i][6]) + (v2[8 + dvp] * d16[i][7]) + (v2[7 + dvp] * d16[i][8])\r
- + (v2[6 + dvp] * d16[i][9]) + (v2[5 + dvp] * d16[i][10])\r
- + (v2[4 + dvp] * d16[i][11]) + (v2[3 + dvp] * d16[i][12])\r
- + (v2[2 + dvp] * d16[i][13]) + (v2[1 + dvp] * d16[i][14]) + (v2[0 + dvp] * d16[i][15])) * scalefactor);\r
-\r
- _tmpOut[i] = pcm_sample;\r
- dvp += 16;\r
- } // for\r
- }\r
-\r
- }\r
-\r
- private void compute_pcm_samples() {\r
-\r
- switch (actual_write_pos) {\r
- case 0:\r
- compute_pcm_samples0();\r
- break;\r
- case 1:\r
- compute_pcm_samples1();\r
- break;\r
- case 2:\r
- compute_pcm_samples2();\r
- break;\r
- case 3:\r
- compute_pcm_samples3();\r
- break;\r
- case 4:\r
- compute_pcm_samples4();\r
- break;\r
- case 5:\r
- compute_pcm_samples5();\r
- break;\r
- case 6:\r
- compute_pcm_samples6();\r
- break;\r
- case 7:\r
- compute_pcm_samples7();\r
- break;\r
- case 8:\r
- compute_pcm_samples8();\r
- break;\r
- case 9:\r
- compute_pcm_samples9();\r
- break;\r
- case 10:\r
- compute_pcm_samples10();\r
- break;\r
- case 11:\r
- compute_pcm_samples11();\r
- break;\r
- case 12:\r
- compute_pcm_samples12();\r
- break;\r
- case 13:\r
- compute_pcm_samples13();\r
- break;\r
- case 14:\r
- compute_pcm_samples14();\r
- break;\r
- case 15:\r
- compute_pcm_samples15();\r
- break;\r
- }\r
-\r
- // if (buffer != null) {\r
- // buffer.appendSamples(channel, _tmpOut);\r
- // }\r
- SampleBufferWrapper.appendSamples(channel, _tmpOut);\r
-\r
- /*\r
- * // MDM: I was considering putting in quality control for // low-spec\r
- * CPUs, but the performance gain (about 10-15%) // did not justify the\r
- * considerable drop in audio quality. switch (inc) { case 16:\r
- * buffer.appendSamples(channel, tmpOut); break; case 32: for (int i=0;\r
- * i<16; i++) { buffer.append(channel, (short)tmpOut[i]);\r
- * buffer.append(channel, (short)tmpOut[i]); } break; case 64: for (int i=0;\r
- * i<8; i++) { buffer.append(channel, (short)tmpOut[i]);\r
- * buffer.append(channel, (short)tmpOut[i]); buffer.append(channel,\r
- * (short)tmpOut[i]); buffer.append(channel, (short)tmpOut[i]); } break;\r
- * \r
- * }\r
- */\r
- }\r
-\r
- @LATTICE("THIS<C,C*,THISLOC=THIS")\r
- public void clear() {\r
- // clear out v1,v2\r
- SSJAVA.arrayinit(v1, 0);\r
- SSJAVA.arrayinit(v2, 0);\r
- // copy previous v1,v2\r
-\r
- for (@LOC("THIS,SynthesisFilter.V") int i = 0; i < prev1.length; i++) {\r
- v1[i] = prev1[i];\r
- }\r
- for (@LOC("THIS,SynthesisFilter.V") int i = 0; i < prev2.length; i++) {\r
- v2[i] = prev2[i];\r
- }\r
- // clear out previous buffer\r
- SSJAVA.arrayinit(prev1, 0);\r
- SSJAVA.arrayinit(prev2, 0);\r
- SSJAVA.arrayinit(samples, 0);\r
- SSJAVA.arrayinit(_tmpOut, 0);\r
- }\r
-\r
- /**\r
- * Calculate 32 PCM samples and put the into the Obuffer-object.\r
- */\r
-\r
- public void calculate_pcm_samples() {\r
-\r
-// System.out.println("#calculate_pcm_samples::actual_write_pos=" + actual_write_pos);\r
-\r
- if (vidx == 1) {\r
- compute_new_v1_v2();\r
- } else {\r
- compute_new_v2_v1();\r
- }\r
-\r
- // System.out.println("1.actual_v=" + (actual_v == v1) + " vidx=" + vidx);\r
- // compute_new_v();\r
- // System.out.println("2.actual_v=" + (actual_v == v1) + " vidx=" + vidx);\r
- compute_pcm_samples();\r
- // System.out.println("3.actual_v=" + (actual_v == v1) + " vidx=" + vidx);\r
-\r
- actual_write_pos = (actual_write_pos + 1) & 0xf;\r
-// System.out.println("actual_write_pos="+actual_write_pos);\r
- // actual_v = (actual_v == v1) ? v2 : v1;\r
-\r
- if (vidx == 1) {\r
- vidx = 2;\r
- } else {\r
- vidx = 1;\r
- }\r
-\r
- // initialize samples[]:\r
- // for (register float *floatp = samples + 32; floatp > samples; )\r
- // *--floatp = 0.0f;\r
-\r
- // MDM: this may not be necessary. The Layer III decoder always\r
- // outputs 32 subband samples, but I haven't checked layer I & II.\r
- // for (@LOC("C") int p = 0; p < 32; p++){\r
- // samples[p] = 0.0f;\r
- // }\r
- SSJAVA.arrayinit(samples, 0);\r
- }\r
-\r
- private static final double MY_PI = 3.14159265358979323846;\r
- private static final float cos1_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 64.0)));\r
- private static final float cos3_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 64.0)));\r
- private static final float cos5_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 64.0)));\r
- private static final float cos7_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 64.0)));\r
- private static final float cos9_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 64.0)));\r
- private static final float cos11_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 64.0)));\r
- private static final float cos13_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 64.0)));\r
- private static final float cos15_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 64.0)));\r
- private static final float cos17_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 17.0 / 64.0)));\r
- private static final float cos19_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 19.0 / 64.0)));\r
- private static final float cos21_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 21.0 / 64.0)));\r
- private static final float cos23_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 23.0 / 64.0)));\r
- private static final float cos25_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 25.0 / 64.0)));\r
- private static final float cos27_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 27.0 / 64.0)));\r
- private static final float cos29_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 29.0 / 64.0)));\r
- private static final float cos31_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 31.0 / 64.0)));\r
- private static final float cos1_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 32.0)));\r
- private static final float cos3_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 32.0)));\r
- private static final float cos5_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 32.0)));\r
- private static final float cos7_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 32.0)));\r
- private static final float cos9_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 32.0)));\r
- private static final float cos11_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 32.0)));\r
- private static final float cos13_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 32.0)));\r
- private static final float cos15_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 32.0)));\r
- private static final float cos1_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 16.0)));\r
- private static final float cos3_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 16.0)));\r
- private static final float cos5_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 16.0)));\r
- private static final float cos7_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 16.0)));\r
- private static final float cos1_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 8.0)));\r
- private static final float cos3_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 8.0)));\r
- private static final float cos1_4 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 4.0)));\r
-\r
- // Note: These values are not in the same order\r
- // as in Annex 3-B.3 of the ISO/IEC DIS 11172-3\r
- // private float d[] = {0.000000000, -4.000442505};\r
-\r
- /**\r
- * d[] split into subarrays of length 16. This provides for more faster access\r
- * by allowing a block of 16 to be addressed with constant offset.\r
- **/\r
- // TODO CONST\r
- @LOC("V")\r
- private final static float d16[][] = null;\r
-\r
- /**\r
- * Converts a 1D array into a number of smaller arrays. This is used to\r
- * achieve offset + constant indexing into an array. Each sub-array represents\r
- * a block of values of the original array.\r
- * \r
- * @param array\r
- * The array to split up into blocks.\r
- * @param blockSize\r
- * The size of the blocks to split the array into. This must be an\r
- * exact divisor of the length of the array, or some data will be\r
- * lost from the main array.\r
- * \r
- * @return An array of arrays in which each element in the returned array will\r
- * be of length <code>blockSize</code>.\r
- */\r
- static private float[][] splitArray(final float[] array, final int blockSize) {\r
- int size = array.length / blockSize;\r
- float[][] split = new float[size][];\r
- for (int i = 0; i < size; i++) {\r
- split[i] = subArray(array, i * blockSize, blockSize);\r
- }\r
- return split;\r
- }\r
-\r
- /**\r
- * Returns a subarray of an existing array.\r
- * \r
- * @param array\r
- * The array to retrieve a subarra from.\r
- * @param offs\r
- * The offset in the array that corresponds to the first index of the\r
- * subarray.\r
- * @param len\r
- * The number of indeces in the subarray.\r
- * @return The subarray, which may be of length 0.\r
- */\r
- static private float[] subArray(final float[] array, final int offs, int len) {\r
- if (offs + len > array.length) {\r
- len = array.length - offs;\r
- }\r
-\r
- if (len < 0)\r
- len = 0;\r
-\r
- float[] subarray = new float[len];\r
- for (int i = 0; i < len; i++) {\r
- subarray[i] = array[offs + i];\r
- }\r
-\r
- return subarray;\r
- }\r
-\r
- // The original data for d[]. This data is loaded from a file\r
- // to reduce the overall package size and to improve performance.\r
-\r
- static final float d[] = { 0.000000000f, -0.000442505f, 0.003250122f, -0.007003784f,\r
- 0.031082153f, -0.078628540f, 0.100311279f, -0.572036743f, 1.144989014f, 0.572036743f,\r
- 0.100311279f, 0.078628540f, 0.031082153f, 0.007003784f, 0.003250122f, 0.000442505f,\r
- -0.000015259f, -0.000473022f, 0.003326416f, -0.007919312f, 0.030517578f, -0.084182739f,\r
- 0.090927124f, -0.600219727f, 1.144287109f, 0.543823242f, 0.108856201f, 0.073059082f,\r
- 0.031478882f, 0.006118774f, 0.003173828f, 0.000396729f, -0.000015259f, -0.000534058f,\r
- 0.003387451f, -0.008865356f, 0.029785156f, -0.089706421f, 0.080688477f, -0.628295898f,\r
- 1.142211914f, 0.515609741f, 0.116577148f, 0.067520142f, 0.031738281f, 0.005294800f,\r
- 0.003082275f, 0.000366211f, -0.000015259f, -0.000579834f, 0.003433228f, -0.009841919f,\r
- 0.028884888f, -0.095169067f, 0.069595337f, -0.656219482f, 1.138763428f, 0.487472534f,\r
- 0.123474121f, 0.061996460f, 0.031845093f, 0.004486084f, 0.002990723f, 0.000320435f,\r
- -0.000015259f, -0.000625610f, 0.003463745f, -0.010848999f, 0.027801514f, -0.100540161f,\r
- 0.057617188f, -0.683914185f, 1.133926392f, 0.459472656f, 0.129577637f, 0.056533813f,\r
- 0.031814575f, 0.003723145f, 0.002899170f, 0.000289917f, -0.000015259f, -0.000686646f,\r
- 0.003479004f, -0.011886597f, 0.026535034f, -0.105819702f, 0.044784546f, -0.711318970f,\r
- 1.127746582f, 0.431655884f, 0.134887695f, 0.051132202f, 0.031661987f, 0.003005981f,\r
- 0.002792358f, 0.000259399f, -0.000015259f, -0.000747681f, 0.003479004f, -0.012939453f,\r
- 0.025085449f, -0.110946655f, 0.031082153f, -0.738372803f, 1.120223999f, 0.404083252f,\r
- 0.139450073f, 0.045837402f, 0.031387329f, 0.002334595f, 0.002685547f, 0.000244141f,\r
- -0.000030518f, -0.000808716f, 0.003463745f, -0.014022827f, 0.023422241f, -0.115921021f,\r
- 0.016510010f, -0.765029907f, 1.111373901f, 0.376800537f, 0.143264771f, 0.040634155f,\r
- 0.031005859f, 0.001693726f, 0.002578735f, 0.000213623f, -0.000030518f, -0.000885010f,\r
- 0.003417969f, -0.015121460f, 0.021575928f, -0.120697021f, 0.001068115f, -0.791213989f,\r
- 1.101211548f, 0.349868774f, 0.146362305f, 0.035552979f, 0.030532837f, 0.001098633f,\r
- 0.002456665f, 0.000198364f, -0.000030518f, -0.000961304f, 0.003372192f, -0.016235352f,\r
- 0.019531250f, -0.125259399f, -0.015228271f, -0.816864014f, 1.089782715f, 0.323318481f,\r
- 0.148773193f, 0.030609131f, 0.029937744f, 0.000549316f, 0.002349854f, 0.000167847f,\r
- -0.000030518f, -0.001037598f, 0.003280640f, -0.017349243f, 0.017257690f, -0.129562378f,\r
- -0.032379150f, -0.841949463f, 1.077117920f, 0.297210693f, 0.150497437f, 0.025817871f,\r
- 0.029281616f, 0.000030518f, 0.002243042f, 0.000152588f, -0.000045776f, -0.001113892f,\r
- 0.003173828f, -0.018463135f, 0.014801025f, -0.133590698f, -0.050354004f, -0.866363525f,\r
- 1.063217163f, 0.271591187f, 0.151596069f, 0.021179199f, 0.028533936f, -0.000442505f,\r
- 0.002120972f, 0.000137329f, -0.000045776f, -0.001205444f, 0.003051758f, -0.019577026f,\r
- 0.012115479f, -0.137298584f, -0.069168091f, -0.890090942f, 1.048156738f, 0.246505737f,\r
- 0.152069092f, 0.016708374f, 0.027725220f, -0.000869751f, 0.002014160f, 0.000122070f,\r
- -0.000061035f, -0.001296997f, 0.002883911f, -0.020690918f, 0.009231567f, -0.140670776f,\r
- -0.088775635f, -0.913055420f, 1.031936646f, 0.221984863f, 0.151962280f, 0.012420654f,\r
- 0.026840210f, -0.001266479f, 0.001907349f, 0.000106812f, -0.000061035f, -0.001388550f,\r
- 0.002700806f, -0.021789551f, 0.006134033f, -0.143676758f, -0.109161377f, -0.935195923f,\r
- 1.014617920f, 0.198059082f, 0.151306152f, 0.008316040f, 0.025909424f, -0.001617432f,\r
- 0.001785278f, 0.000106812f, -0.000076294f, -0.001480103f, 0.002487183f, -0.022857666f,\r
- 0.002822876f, -0.146255493f, -0.130310059f, -0.956481934f, 0.996246338f, 0.174789429f,\r
- 0.150115967f, 0.004394531f, 0.024932861f, -0.001937866f, 0.001693726f, 0.000091553f,\r
- -0.000076294f, -0.001586914f, 0.002227783f, -0.023910522f, -0.000686646f, -0.148422241f,\r
- -0.152206421f, -0.976852417f, 0.976852417f, 0.152206421f, 0.148422241f, 0.000686646f,\r
- 0.023910522f, -0.002227783f, 0.001586914f, 0.000076294f, -0.000091553f, -0.001693726f,\r
- 0.001937866f, -0.024932861f, -0.004394531f, -0.150115967f, -0.174789429f, -0.996246338f,\r
- 0.956481934f, 0.130310059f, 0.146255493f, -0.002822876f, 0.022857666f, -0.002487183f,\r
- 0.001480103f, 0.000076294f, -0.000106812f, -0.001785278f, 0.001617432f, -0.025909424f,\r
- -0.008316040f, -0.151306152f, -0.198059082f, -1.014617920f, 0.935195923f, 0.109161377f,\r
- 0.143676758f, -0.006134033f, 0.021789551f, -0.002700806f, 0.001388550f, 0.000061035f,\r
- -0.000106812f, -0.001907349f, 0.001266479f, -0.026840210f, -0.012420654f, -0.151962280f,\r
- -0.221984863f, -1.031936646f, 0.913055420f, 0.088775635f, 0.140670776f, -0.009231567f,\r
- 0.020690918f, -0.002883911f, 0.001296997f, 0.000061035f, -0.000122070f, -0.002014160f,\r
- 0.000869751f, -0.027725220f, -0.016708374f, -0.152069092f, -0.246505737f, -1.048156738f,\r
- 0.890090942f, 0.069168091f, 0.137298584f, -0.012115479f, 0.019577026f, -0.003051758f,\r
- 0.001205444f, 0.000045776f, -0.000137329f, -0.002120972f, 0.000442505f, -0.028533936f,\r
- -0.021179199f, -0.151596069f, -0.271591187f, -1.063217163f, 0.866363525f, 0.050354004f,\r
- 0.133590698f, -0.014801025f, 0.018463135f, -0.003173828f, 0.001113892f, 0.000045776f,\r
- -0.000152588f, -0.002243042f, -0.000030518f, -0.029281616f, -0.025817871f, -0.150497437f,\r
- -0.297210693f, -1.077117920f, 0.841949463f, 0.032379150f, 0.129562378f, -0.017257690f,\r
- 0.017349243f, -0.003280640f, 0.001037598f, 0.000030518f, -0.000167847f, -0.002349854f,\r
- -0.000549316f, -0.029937744f, -0.030609131f, -0.148773193f, -0.323318481f, -1.089782715f,\r
- 0.816864014f, 0.015228271f, 0.125259399f, -0.019531250f, 0.016235352f, -0.003372192f,\r
- 0.000961304f, 0.000030518f, -0.000198364f, -0.002456665f, -0.001098633f, -0.030532837f,\r
- -0.035552979f, -0.146362305f, -0.349868774f, -1.101211548f, 0.791213989f, -0.001068115f,\r
- 0.120697021f, -0.021575928f, 0.015121460f, -0.003417969f, 0.000885010f, 0.000030518f,\r
- -0.000213623f, -0.002578735f, -0.001693726f, -0.031005859f, -0.040634155f, -0.143264771f,\r
- -0.376800537f, -1.111373901f, 0.765029907f, -0.016510010f, 0.115921021f, -0.023422241f,\r
- 0.014022827f, -0.003463745f, 0.000808716f, 0.000030518f, -0.000244141f, -0.002685547f,\r
- -0.002334595f, -0.031387329f, -0.045837402f, -0.139450073f, -0.404083252f, -1.120223999f,\r
- 0.738372803f, -0.031082153f, 0.110946655f, -0.025085449f, 0.012939453f, -0.003479004f,\r
- 0.000747681f, 0.000015259f, -0.000259399f, -0.002792358f, -0.003005981f, -0.031661987f,\r
- -0.051132202f, -0.134887695f, -0.431655884f, -1.127746582f, 0.711318970f, -0.044784546f,\r
- 0.105819702f, -0.026535034f, 0.011886597f, -0.003479004f, 0.000686646f, 0.000015259f,\r
- -0.000289917f, -0.002899170f, -0.003723145f, -0.031814575f, -0.056533813f, -0.129577637f,\r
- -0.459472656f, -1.133926392f, 0.683914185f, -0.057617188f, 0.100540161f, -0.027801514f,\r
- 0.010848999f, -0.003463745f, 0.000625610f, 0.000015259f, -0.000320435f, -0.002990723f,\r
- -0.004486084f, -0.031845093f, -0.061996460f, -0.123474121f, -0.487472534f, -1.138763428f,\r
- 0.656219482f, -0.069595337f, 0.095169067f, -0.028884888f, 0.009841919f, -0.003433228f,\r
- 0.000579834f, 0.000015259f, -0.000366211f, -0.003082275f, -0.005294800f, -0.031738281f,\r
- -0.067520142f, -0.116577148f, -0.515609741f, -1.142211914f, 0.628295898f, -0.080688477f,\r
- 0.089706421f, -0.029785156f, 0.008865356f, -0.003387451f, 0.000534058f, 0.000015259f,\r
- -0.000396729f, -0.003173828f, -0.006118774f, -0.031478882f, -0.073059082f, -0.108856201f,\r
- -0.543823242f, -1.144287109f, 0.600219727f, -0.090927124f, 0.084182739f, -0.030517578f,\r
- 0.007919312f, -0.003326416f, 0.000473022f, 0.000015259f };\r
-\r
-}\r
+/*
+ * 11/19/04 1.0 moved to LGPL.
+ *
+ * 04/01/00 Fixes for running under build 23xx Microsoft JVM. mdm.
+ *
+ * 19/12/99 Performance improvements to compute_pcm_samples().
+ * Mat McGowan. mdm@techie.com.
+ *
+ * 16/02/99 Java Conversion by E.B , javalayer@javazoom.net
+ *
+ * @(#) synthesis_filter.h 1.8, last edit: 6/15/94 16:52:00
+ * @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
+ * @(#) Berlin University of Technology
+ *
+ *-----------------------------------------------------------------------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as published
+ * by the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------
+ */
+
+/**
+ * A class for the synthesis filter bank. This class does a fast downsampling
+ * from 32, 44.1 or 48 kHz to 8 kHz, if ULAW is defined. Frequencies above 4 kHz
+ * are removed by ignoring higher subbands.
+ */
+@LATTICE("OUT<V2,V2<V1,V1<V,V<NEWV,NEWV<SAMPLE,SAMPLE<EQ,EQ<IDX,V*,NEWV*,IDX*")
+@METHODDEFAULT("OUT<THIS,THIS<C,C<IN,C*,THISLOC=THIS,GLOBALLOC=THIS")
+final class SynthesisFilter {
+
+ @LOC("IDX")
+ public int vidx;
+ @LOC("V1")
+ public float[] v1;
+ @LOC("V1")
+ public float[] v2;
+
+ @LOC("V")
+ public float[] prev1;
+ @LOC("V")
+ public float[] prev2;
+
+ // private float[] actual_v; // v1 or v2
+ @LOC("IDX")
+ public int actual_write_pos; // 0-15
+ @LOC("SAMPLE")
+ private float[] samples; // 32 new subband samples
+ @LOC("EQ")
+ public final int channel;
+ @LOC("EQ")
+ public final float scalefactor;
+ @LOC("EQ")
+ private float[] eq;
+
+ /**
+ * Quality value for controlling CPU usage/quality tradeoff.
+ */
+ /*
+ * private int quality;
+ *
+ * private int v_inc;
+ *
+ *
+ *
+ * public static final int HIGH_QUALITY = 1; public static final int
+ * MEDIUM_QUALITY = 2; public static final int LOW_QUALITY = 4;
+ */
+
+ /**
+ * Contructor. The scalefactor scales the calculated float pcm samples to
+ * short values (raw pcm samples are in [-1.0, 1.0], if no violations occur).
+ */
+ public SynthesisFilter(int channelnumber, float factor, float[] eq0) {
+
+ vidx = 1;
+ d16 = splitArray(d, 16);
+
+ v1 = new float[512];
+ v2 = new float[512];
+ prev1 = new float[512];
+ prev2 = new float[512];
+ samples = new float[32];
+ channel = channelnumber;
+ scalefactor = factor;
+ // setEQ(eq);
+ // setQuality(HIGH_QUALITY);
+
+ if (eq == null) {
+ eq = new float[32];
+ for (int i = 0; i < 32; i++)
+ eq[i] = 1.0f;
+ }
+ if (eq.length < 32) {
+ throw new IllegalArgumentException("eq0");
+ }
+
+ // reset();
+
+ for (int p = 0; p < 512; p++)
+ v1[p] = v2[p] = 0.0f;
+
+ for (int p2 = 0; p2 < 32; p2++)
+ samples[p2] = 0.0f;
+
+ // actual_v = v1;
+ actual_write_pos = 15;
+
+ }
+
+ /*
+ * private void setQuality(int quality0) { switch (quality0) { case
+ * HIGH_QUALITY: case MEDIUM_QUALITY: case LOW_QUALITY: v_inc = 16 * quality0;
+ * quality = quality0; break; default : throw new
+ * IllegalArgumentException("Unknown quality value"); } }
+ *
+ * public int getQuality() { return quality; }
+ */
+
+ /**
+ * Inject Sample.
+ */
+ public void input_sample(@LOC("IN") float sample, @LOC("IN") int subbandnumber) {
+ samples[subbandnumber] = eq[subbandnumber] * sample;
+ }
+
+ public void input_samples(@LOC("IN") float[] s) {
+ TERMINATE: for (@LOC("C") int i = 31; i >= 0; i--) {
+ samples[i] = s[i] * eq[i];
+ }
+ }
+
+ private void compute_new_v2_v1() {
+
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v0 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v1 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v2 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v3 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v4 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v5 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v6 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v7 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v8 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v9 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v10 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v11 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v12 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v13 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v14 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v15 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v16 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v17 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v18 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v19 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v20 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v21 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v22 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v23 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v24 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v25 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v26 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v27 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v28 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v29 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v30 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v31 = 0.0f;
+
+ // float[] new_v = new float[32]; // new V[0-15] and V[33-48] of Figure
+ // 3-A.2 in ISO DIS 11172-3
+ // float[] p = new float[16];
+ // float[] pp = new float[16];
+
+ // float[] s = samples;
+
+ @LOC("THIS,SynthesisFilter.NEWV") float s0 = samples[0];
+ @LOC("THIS,SynthesisFilter.NEWV") float s1 = samples[1];
+ @LOC("THIS,SynthesisFilter.NEWV") float s2 = samples[2];
+ @LOC("THIS,SynthesisFilter.NEWV") float s3 = samples[3];
+ @LOC("THIS,SynthesisFilter.NEWV") float s4 = samples[4];
+ @LOC("THIS,SynthesisFilter.NEWV") float s5 = samples[5];
+ @LOC("THIS,SynthesisFilter.NEWV") float s6 = samples[6];
+ @LOC("THIS,SynthesisFilter.NEWV") float s7 = samples[7];
+ @LOC("THIS,SynthesisFilter.NEWV") float s8 = samples[8];
+ @LOC("THIS,SynthesisFilter.NEWV") float s9 = samples[9];
+ @LOC("THIS,SynthesisFilter.NEWV") float s10 = samples[10];
+ @LOC("THIS,SynthesisFilter.NEWV") float s11 = samples[11];
+ @LOC("THIS,SynthesisFilter.NEWV") float s12 = samples[12];
+ @LOC("THIS,SynthesisFilter.NEWV") float s13 = samples[13];
+ @LOC("THIS,SynthesisFilter.NEWV") float s14 = samples[14];
+ @LOC("THIS,SynthesisFilter.NEWV") float s15 = samples[15];
+ @LOC("THIS,SynthesisFilter.NEWV") float s16 = samples[16];
+ @LOC("THIS,SynthesisFilter.NEWV") float s17 = samples[17];
+ @LOC("THIS,SynthesisFilter.NEWV") float s18 = samples[18];
+ @LOC("THIS,SynthesisFilter.NEWV") float s19 = samples[19];
+ @LOC("THIS,SynthesisFilter.NEWV") float s20 = samples[20];
+ @LOC("THIS,SynthesisFilter.NEWV") float s21 = samples[21];
+ @LOC("THIS,SynthesisFilter.NEWV") float s22 = samples[22];
+ @LOC("THIS,SynthesisFilter.NEWV") float s23 = samples[23];
+ @LOC("THIS,SynthesisFilter.NEWV") float s24 = samples[24];
+ @LOC("THIS,SynthesisFilter.NEWV") float s25 = samples[25];
+ @LOC("THIS,SynthesisFilter.NEWV") float s26 = samples[26];
+ @LOC("THIS,SynthesisFilter.NEWV") float s27 = samples[27];
+ @LOC("THIS,SynthesisFilter.NEWV") float s28 = samples[28];
+ @LOC("THIS,SynthesisFilter.NEWV") float s29 = samples[29];
+ @LOC("THIS,SynthesisFilter.NEWV") float s30 = samples[30];
+ @LOC("THIS,SynthesisFilter.NEWV") float s31 = samples[31];
+
+ @LOC("THIS,SynthesisFilter.NEWV") float p0 = s0 + s31;
+ @LOC("THIS,SynthesisFilter.NEWV") float p1 = s1 + s30;
+ @LOC("THIS,SynthesisFilter.NEWV") float p2 = s2 + s29;
+ @LOC("THIS,SynthesisFilter.NEWV") float p3 = s3 + s28;
+ @LOC("THIS,SynthesisFilter.NEWV") float p4 = s4 + s27;
+ @LOC("THIS,SynthesisFilter.NEWV") float p5 = s5 + s26;
+ @LOC("THIS,SynthesisFilter.NEWV") float p6 = s6 + s25;
+ @LOC("THIS,SynthesisFilter.NEWV") float p7 = s7 + s24;
+ @LOC("THIS,SynthesisFilter.NEWV") float p8 = s8 + s23;
+ @LOC("THIS,SynthesisFilter.NEWV") float p9 = s9 + s22;
+ @LOC("THIS,SynthesisFilter.NEWV") float p10 = s10 + s21;
+ @LOC("THIS,SynthesisFilter.NEWV") float p11 = s11 + s20;
+ @LOC("THIS,SynthesisFilter.NEWV") float p12 = s12 + s19;
+ @LOC("THIS,SynthesisFilter.NEWV") float p13 = s13 + s18;
+ @LOC("THIS,SynthesisFilter.NEWV") float p14 = s14 + s17;
+ @LOC("THIS,SynthesisFilter.NEWV") float p15 = s15 + s16;
+
+ @LOC("THIS,SynthesisFilter.NEWV") float pp0 = p0 + p15;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp1 = p1 + p14;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp2 = p2 + p13;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp3 = p3 + p12;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp4 = p4 + p11;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp5 = p5 + p10;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp6 = p6 + p9;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp7 = p7 + p8;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp8 = (p0 - p15) * cos1_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp9 = (p1 - p14) * cos3_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp10 = (p2 - p13) * cos5_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp11 = (p3 - p12) * cos7_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp12 = (p4 - p11) * cos9_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp13 = (p5 - p10) * cos11_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp14 = (p6 - p9) * cos13_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp15 = (p7 - p8) * cos15_32;
+
+ p0 = pp0 + pp7;
+ p1 = pp1 + pp6;
+ p2 = pp2 + pp5;
+ p3 = pp3 + pp4;
+ p4 = (pp0 - pp7) * cos1_16;
+ p5 = (pp1 - pp6) * cos3_16;
+ p6 = (pp2 - pp5) * cos5_16;
+ p7 = (pp3 - pp4) * cos7_16;
+ p8 = pp8 + pp15;
+ p9 = pp9 + pp14;
+ p10 = pp10 + pp13;
+ p11 = pp11 + pp12;
+ p12 = (pp8 - pp15) * cos1_16;
+ p13 = (pp9 - pp14) * cos3_16;
+ p14 = (pp10 - pp13) * cos5_16;
+ p15 = (pp11 - pp12) * cos7_16;
+
+ pp0 = p0 + p3;
+ pp1 = p1 + p2;
+ pp2 = (p0 - p3) * cos1_8;
+ pp3 = (p1 - p2) * cos3_8;
+ pp4 = p4 + p7;
+ pp5 = p5 + p6;
+ pp6 = (p4 - p7) * cos1_8;
+ pp7 = (p5 - p6) * cos3_8;
+ pp8 = p8 + p11;
+ pp9 = p9 + p10;
+ pp10 = (p8 - p11) * cos1_8;
+ pp11 = (p9 - p10) * cos3_8;
+ pp12 = p12 + p15;
+ pp13 = p13 + p14;
+ pp14 = (p12 - p15) * cos1_8;
+ pp15 = (p13 - p14) * cos3_8;
+
+ p0 = pp0 + pp1;
+ p1 = (pp0 - pp1) * cos1_4;
+ p2 = pp2 + pp3;
+ p3 = (pp2 - pp3) * cos1_4;
+ p4 = pp4 + pp5;
+ p5 = (pp4 - pp5) * cos1_4;
+ p6 = pp6 + pp7;
+ p7 = (pp6 - pp7) * cos1_4;
+ p8 = pp8 + pp9;
+ p9 = (pp8 - pp9) * cos1_4;
+ p10 = pp10 + pp11;
+ p11 = (pp10 - pp11) * cos1_4;
+ p12 = pp12 + pp13;
+ p13 = (pp12 - pp13) * cos1_4;
+ p14 = pp14 + pp15;
+ p15 = (pp14 - pp15) * cos1_4;
+
+ // this is pretty insane coding
+ @LOC("THIS,SynthesisFilter.NEWV") float tmp1;
+ new_v19/* 36-17 */= -(new_v4 = (new_v12 = p7) + p5) - p6;
+ new_v27/* 44-17 */= -p6 - p7 - p4;
+ new_v6 = (new_v10 = (new_v14 = p15) + p11) + p13;
+ new_v17/* 34-17 */= -(new_v2 = p15 + p13 + p9) - p14;
+ new_v21/* 38-17 */= (tmp1 = -p14 - p15 - p10 - p11) - p13;
+ new_v29/* 46-17 */= -p14 - p15 - p12 - p8;
+ new_v25/* 42-17 */= tmp1 - p12;
+ new_v31/* 48-17 */= -p0;
+ new_v0 = p1;
+ new_v23/* 40-17 */= -(new_v8 = p3) - p2;
+
+ p0 = (s0 - s31) * cos1_64;
+ p1 = (s1 - s30) * cos3_64;
+ p2 = (s2 - s29) * cos5_64;
+ p3 = (s3 - s28) * cos7_64;
+ p4 = (s4 - s27) * cos9_64;
+ p5 = (s5 - s26) * cos11_64;
+ p6 = (s6 - s25) * cos13_64;
+ p7 = (s7 - s24) * cos15_64;
+ p8 = (s8 - s23) * cos17_64;
+ p9 = (s9 - s22) * cos19_64;
+ p10 = (s10 - s21) * cos21_64;
+ p11 = (s11 - s20) * cos23_64;
+ p12 = (s12 - s19) * cos25_64;
+ p13 = (s13 - s18) * cos27_64;
+ p14 = (s14 - s17) * cos29_64;
+ p15 = (s15 - s16) * cos31_64;
+
+ pp0 = p0 + p15;
+ pp1 = p1 + p14;
+ pp2 = p2 + p13;
+ pp3 = p3 + p12;
+ pp4 = p4 + p11;
+ pp5 = p5 + p10;
+ pp6 = p6 + p9;
+ pp7 = p7 + p8;
+ pp8 = (p0 - p15) * cos1_32;
+ pp9 = (p1 - p14) * cos3_32;
+ pp10 = (p2 - p13) * cos5_32;
+ pp11 = (p3 - p12) * cos7_32;
+ pp12 = (p4 - p11) * cos9_32;
+ pp13 = (p5 - p10) * cos11_32;
+ pp14 = (p6 - p9) * cos13_32;
+ pp15 = (p7 - p8) * cos15_32;
+
+ p0 = pp0 + pp7;
+ p1 = pp1 + pp6;
+ p2 = pp2 + pp5;
+ p3 = pp3 + pp4;
+ p4 = (pp0 - pp7) * cos1_16;
+ p5 = (pp1 - pp6) * cos3_16;
+ p6 = (pp2 - pp5) * cos5_16;
+ p7 = (pp3 - pp4) * cos7_16;
+ p8 = pp8 + pp15;
+ p9 = pp9 + pp14;
+ p10 = pp10 + pp13;
+ p11 = pp11 + pp12;
+ p12 = (pp8 - pp15) * cos1_16;
+ p13 = (pp9 - pp14) * cos3_16;
+ p14 = (pp10 - pp13) * cos5_16;
+ p15 = (pp11 - pp12) * cos7_16;
+
+ pp0 = p0 + p3;
+ pp1 = p1 + p2;
+ pp2 = (p0 - p3) * cos1_8;
+ pp3 = (p1 - p2) * cos3_8;
+ pp4 = p4 + p7;
+ pp5 = p5 + p6;
+ pp6 = (p4 - p7) * cos1_8;
+ pp7 = (p5 - p6) * cos3_8;
+ pp8 = p8 + p11;
+ pp9 = p9 + p10;
+ pp10 = (p8 - p11) * cos1_8;
+ pp11 = (p9 - p10) * cos3_8;
+ pp12 = p12 + p15;
+ pp13 = p13 + p14;
+ pp14 = (p12 - p15) * cos1_8;
+ pp15 = (p13 - p14) * cos3_8;
+
+ p0 = pp0 + pp1;
+ p1 = (pp0 - pp1) * cos1_4;
+ p2 = pp2 + pp3;
+ p3 = (pp2 - pp3) * cos1_4;
+ p4 = pp4 + pp5;
+ p5 = (pp4 - pp5) * cos1_4;
+ p6 = pp6 + pp7;
+ p7 = (pp6 - pp7) * cos1_4;
+ p8 = pp8 + pp9;
+ p9 = (pp8 - pp9) * cos1_4;
+ p10 = pp10 + pp11;
+ p11 = (pp10 - pp11) * cos1_4;
+ p12 = pp12 + pp13;
+ p13 = (pp12 - pp13) * cos1_4;
+ p14 = pp14 + pp15;
+ p15 = (pp14 - pp15) * cos1_4;
+
+ // manually doing something that a compiler should handle sucks
+ // coding like this is hard to read
+ @LOC("THIS,SynthesisFilter.NEWV") float tmp2;
+ new_v5 = (new_v11 = (new_v13 = (new_v15 = p15) + p7) + p11) + p5 + p13;
+ new_v7 = (new_v9 = p15 + p11 + p3) + p13;
+ new_v16/* 33-17 */= -(new_v1 = (tmp1 = p13 + p15 + p9) + p1) - p14;
+ new_v18/* 35-17 */= -(new_v3 = tmp1 + p5 + p7) - p6 - p14;
+
+ new_v22/* 39-17 */= (tmp1 = -p10 - p11 - p14 - p15) - p13 - p2 - p3;
+ new_v20/* 37-17 */= tmp1 - p13 - p5 - p6 - p7;
+ new_v24/* 41-17 */= tmp1 - p12 - p2 - p3;
+ new_v26/* 43-17 */= tmp1 - p12 - (tmp2 = p4 + p6 + p7);
+ new_v30/* 47-17 */= (tmp1 = -p8 - p12 - p14 - p15) - p0;
+ new_v28/* 45-17 */= tmp1 - tmp2;
+
+ // insert V[0-15] (== new_v[0-15]) into actual v:
+ // float[] x2 = actual_v + actual_write_pos;
+ // float dest[] = actual_v; v2
+
+ @LOC("THIS,SynthesisFilter.NEWV") int pos = actual_write_pos;
+
+ v2[0 + pos] = new_v0;
+ v2[16 + pos] = new_v1;
+ v2[32 + pos] = new_v2;
+ v2[48 + pos] = new_v3;
+ v2[64 + pos] = new_v4;
+ v2[80 + pos] = new_v5;
+ v2[96 + pos] = new_v6;
+ v2[112 + pos] = new_v7;
+ v2[128 + pos] = new_v8;
+ v2[144 + pos] = new_v9;
+ v2[160 + pos] = new_v10;
+ v2[176 + pos] = new_v11;
+ v2[192 + pos] = new_v12;
+ v2[208 + pos] = new_v13;
+ v2[224 + pos] = new_v14;
+ v2[240 + pos] = new_v15;
+
+ // V[16] is always 0.0:
+ v2[256 + pos] = 0.0f;
+
+ // insert V[17-31] (== -new_v[15-1]) into actual v:
+ v2[272 + pos] = -new_v15;
+ v2[288 + pos] = -new_v14;
+ v2[304 + pos] = -new_v13;
+ v2[320 + pos] = -new_v12;
+ v2[336 + pos] = -new_v11;
+ v2[352 + pos] = -new_v10;
+ v2[368 + pos] = -new_v9;
+ v2[384 + pos] = -new_v8;
+ v2[400 + pos] = -new_v7;
+ v2[416 + pos] = -new_v6;
+ v2[432 + pos] = -new_v5;
+ v2[448 + pos] = -new_v4;
+ v2[464 + pos] = -new_v3;
+ v2[480 + pos] = -new_v2;
+ v2[496 + pos] = -new_v1;
+
+ // insert V[32] (== -new_v[0]) into other v:
+ // dest = (actual_v == v1) ? v2 : v1;
+
+ v1[0 + pos] = -new_v0;
+ // insert V[33-48] (== new_v[16-31]) into other v:
+ v1[16 + pos] = new_v16;
+ v1[32 + pos] = new_v17;
+ v1[48 + pos] = new_v18;
+ v1[64 + pos] = new_v19;
+ v1[80 + pos] = new_v20;
+ v1[96 + pos] = new_v21;
+ v1[112 + pos] = new_v22;
+ v1[128 + pos] = new_v23;
+ v1[144 + pos] = new_v24;
+ v1[160 + pos] = new_v25;
+ v1[176 + pos] = new_v26;
+ v1[192 + pos] = new_v27;
+ v1[208 + pos] = new_v28;
+ v1[224 + pos] = new_v29;
+ v1[240 + pos] = new_v30;
+ v1[256 + pos] = new_v31;
+
+ // insert V[49-63] (== new_v[30-16]) into other v:
+ v1[272 + pos] = new_v30;
+ v1[288 + pos] = new_v29;
+ v1[304 + pos] = new_v28;
+ v1[320 + pos] = new_v27;
+ v1[336 + pos] = new_v26;
+ v1[352 + pos] = new_v25;
+ v1[368 + pos] = new_v24;
+ v1[384 + pos] = new_v23;
+ v1[400 + pos] = new_v22;
+ v1[416 + pos] = new_v21;
+ v1[432 + pos] = new_v20;
+ v1[448 + pos] = new_v19;
+ v1[464 + pos] = new_v18;
+ v1[480 + pos] = new_v17;
+ v1[496 + pos] = new_v16;
+
+ /*
+ * setup PREV
+ */
+
+ prev2[0 + pos] = new_v0;
+ prev2[16 + pos] = new_v1;
+ prev2[32 + pos] = new_v2;
+ prev2[48 + pos] = new_v3;
+ prev2[64 + pos] = new_v4;
+ prev2[80 + pos] = new_v5;
+ prev2[96 + pos] = new_v6;
+ prev2[112 + pos] = new_v7;
+ prev2[128 + pos] = new_v8;
+ prev2[144 + pos] = new_v9;
+ prev2[160 + pos] = new_v10;
+ prev2[176 + pos] = new_v11;
+ prev2[192 + pos] = new_v12;
+ prev2[208 + pos] = new_v13;
+ prev2[224 + pos] = new_v14;
+ prev2[240 + pos] = new_v15;
+
+ // V[16] is always 0.0:
+ prev2[256 + pos] = 0.0f;
+
+ // insert V[17-31] (== -new_v[15-1]) into actual v:
+ prev2[272 + pos] = -new_v15;
+ prev2[288 + pos] = -new_v14;
+ prev2[304 + pos] = -new_v13;
+ prev2[320 + pos] = -new_v12;
+ prev2[336 + pos] = -new_v11;
+ prev2[352 + pos] = -new_v10;
+ prev2[368 + pos] = -new_v9;
+ prev2[384 + pos] = -new_v8;
+ prev2[400 + pos] = -new_v7;
+ prev2[416 + pos] = -new_v6;
+ prev2[432 + pos] = -new_v5;
+ prev2[448 + pos] = -new_v4;
+ prev2[464 + pos] = -new_v3;
+ prev2[480 + pos] = -new_v2;
+ prev2[496 + pos] = -new_v1;
+
+ // insert V[32] (== -new_v[0]) into other v:
+ // dest = (actual_v == v1) ? v2 : v1;
+
+ prev1[0 + pos] = -new_v0;
+ // insert V[33-48] (== new_v[16-31]) into other v:
+ prev1[16 + pos] = new_v16;
+ prev1[32 + pos] = new_v17;
+ prev1[48 + pos] = new_v18;
+ prev1[64 + pos] = new_v19;
+ prev1[80 + pos] = new_v20;
+ prev1[96 + pos] = new_v21;
+ prev1[112 + pos] = new_v22;
+ prev1[128 + pos] = new_v23;
+ prev1[144 + pos] = new_v24;
+ prev1[160 + pos] = new_v25;
+ prev1[176 + pos] = new_v26;
+ prev1[192 + pos] = new_v27;
+ prev1[208 + pos] = new_v28;
+ prev1[224 + pos] = new_v29;
+ prev1[240 + pos] = new_v30;
+ prev1[256 + pos] = new_v31;
+
+ // insert V[49-63] (== new_v[30-16]) into other v:
+ prev1[272 + pos] = new_v30;
+ prev1[288 + pos] = new_v29;
+ prev1[304 + pos] = new_v28;
+ prev1[320 + pos] = new_v27;
+ prev1[336 + pos] = new_v26;
+ prev1[352 + pos] = new_v25;
+ prev1[368 + pos] = new_v24;
+ prev1[384 + pos] = new_v23;
+ prev1[400 + pos] = new_v22;
+ prev1[416 + pos] = new_v21;
+ prev1[432 + pos] = new_v20;
+ prev1[448 + pos] = new_v19;
+ prev1[464 + pos] = new_v18;
+ prev1[480 + pos] = new_v17;
+ prev1[496 + pos] = new_v16;
+ }
+
+ private void compute_new_v1_v2() {
+
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v0 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v1 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v2 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v3 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v4 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v5 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v6 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v7 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v8 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v9 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v10 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v11 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v12 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v13 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v14 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v15 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v16 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v17 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v18 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v19 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v20 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v21 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v22 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v23 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v24 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v25 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v26 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v27 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v28 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v29 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v30 = 0.0f;
+ @LOC("THIS,SynthesisFilter.NEWV") float new_v31 = 0.0f;
+
+ // float[] new_v = new float[32]; // new V[0-15] and V[33-48] of Figure
+ // 3-A.2 in ISO DIS 11172-3
+ // float[] p = new float[16];
+ // float[] pp = new float[16];
+
+ // float[] s = samples;
+
+ @LOC("THIS,SynthesisFilter.NEWV") float s0 = samples[0];
+ @LOC("THIS,SynthesisFilter.NEWV") float s1 = samples[1];
+ @LOC("THIS,SynthesisFilter.NEWV") float s2 = samples[2];
+ @LOC("THIS,SynthesisFilter.NEWV") float s3 = samples[3];
+ @LOC("THIS,SynthesisFilter.NEWV") float s4 = samples[4];
+ @LOC("THIS,SynthesisFilter.NEWV") float s5 = samples[5];
+ @LOC("THIS,SynthesisFilter.NEWV") float s6 = samples[6];
+ @LOC("THIS,SynthesisFilter.NEWV") float s7 = samples[7];
+ @LOC("THIS,SynthesisFilter.NEWV") float s8 = samples[8];
+ @LOC("THIS,SynthesisFilter.NEWV") float s9 = samples[9];
+ @LOC("THIS,SynthesisFilter.NEWV") float s10 = samples[10];
+ @LOC("THIS,SynthesisFilter.NEWV") float s11 = samples[11];
+ @LOC("THIS,SynthesisFilter.NEWV") float s12 = samples[12];
+ @LOC("THIS,SynthesisFilter.NEWV") float s13 = samples[13];
+ @LOC("THIS,SynthesisFilter.NEWV") float s14 = samples[14];
+ @LOC("THIS,SynthesisFilter.NEWV") float s15 = samples[15];
+ @LOC("THIS,SynthesisFilter.NEWV") float s16 = samples[16];
+ @LOC("THIS,SynthesisFilter.NEWV") float s17 = samples[17];
+ @LOC("THIS,SynthesisFilter.NEWV") float s18 = samples[18];
+ @LOC("THIS,SynthesisFilter.NEWV") float s19 = samples[19];
+ @LOC("THIS,SynthesisFilter.NEWV") float s20 = samples[20];
+ @LOC("THIS,SynthesisFilter.NEWV") float s21 = samples[21];
+ @LOC("THIS,SynthesisFilter.NEWV") float s22 = samples[22];
+ @LOC("THIS,SynthesisFilter.NEWV") float s23 = samples[23];
+ @LOC("THIS,SynthesisFilter.NEWV") float s24 = samples[24];
+ @LOC("THIS,SynthesisFilter.NEWV") float s25 = samples[25];
+ @LOC("THIS,SynthesisFilter.NEWV") float s26 = samples[26];
+ @LOC("THIS,SynthesisFilter.NEWV") float s27 = samples[27];
+ @LOC("THIS,SynthesisFilter.NEWV") float s28 = samples[28];
+ @LOC("THIS,SynthesisFilter.NEWV") float s29 = samples[29];
+ @LOC("THIS,SynthesisFilter.NEWV") float s30 = samples[30];
+ @LOC("THIS,SynthesisFilter.NEWV") float s31 = samples[31];
+
+ @LOC("THIS,SynthesisFilter.NEWV") float p0 = s0 + s31;
+ @LOC("THIS,SynthesisFilter.NEWV") float p1 = s1 + s30;
+ @LOC("THIS,SynthesisFilter.NEWV") float p2 = s2 + s29;
+ @LOC("THIS,SynthesisFilter.NEWV") float p3 = s3 + s28;
+ @LOC("THIS,SynthesisFilter.NEWV") float p4 = s4 + s27;
+ @LOC("THIS,SynthesisFilter.NEWV") float p5 = s5 + s26;
+ @LOC("THIS,SynthesisFilter.NEWV") float p6 = s6 + s25;
+ @LOC("THIS,SynthesisFilter.NEWV") float p7 = s7 + s24;
+ @LOC("THIS,SynthesisFilter.NEWV") float p8 = s8 + s23;
+ @LOC("THIS,SynthesisFilter.NEWV") float p9 = s9 + s22;
+ @LOC("THIS,SynthesisFilter.NEWV") float p10 = s10 + s21;
+ @LOC("THIS,SynthesisFilter.NEWV") float p11 = s11 + s20;
+ @LOC("THIS,SynthesisFilter.NEWV") float p12 = s12 + s19;
+ @LOC("THIS,SynthesisFilter.NEWV") float p13 = s13 + s18;
+ @LOC("THIS,SynthesisFilter.NEWV") float p14 = s14 + s17;
+ @LOC("THIS,SynthesisFilter.NEWV") float p15 = s15 + s16;
+
+ @LOC("THIS,SynthesisFilter.NEWV") float pp0 = p0 + p15;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp1 = p1 + p14;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp2 = p2 + p13;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp3 = p3 + p12;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp4 = p4 + p11;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp5 = p5 + p10;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp6 = p6 + p9;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp7 = p7 + p8;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp8 = (p0 - p15) * cos1_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp9 = (p1 - p14) * cos3_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp10 = (p2 - p13) * cos5_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp11 = (p3 - p12) * cos7_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp12 = (p4 - p11) * cos9_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp13 = (p5 - p10) * cos11_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp14 = (p6 - p9) * cos13_32;
+ @LOC("THIS,SynthesisFilter.NEWV") float pp15 = (p7 - p8) * cos15_32;
+
+ p0 = pp0 + pp7;
+ p1 = pp1 + pp6;
+ p2 = pp2 + pp5;
+ p3 = pp3 + pp4;
+ p4 = (pp0 - pp7) * cos1_16;
+ p5 = (pp1 - pp6) * cos3_16;
+ p6 = (pp2 - pp5) * cos5_16;
+ p7 = (pp3 - pp4) * cos7_16;
+ p8 = pp8 + pp15;
+ p9 = pp9 + pp14;
+ p10 = pp10 + pp13;
+ p11 = pp11 + pp12;
+ p12 = (pp8 - pp15) * cos1_16;
+ p13 = (pp9 - pp14) * cos3_16;
+ p14 = (pp10 - pp13) * cos5_16;
+ p15 = (pp11 - pp12) * cos7_16;
+
+ pp0 = p0 + p3;
+ pp1 = p1 + p2;
+ pp2 = (p0 - p3) * cos1_8;
+ pp3 = (p1 - p2) * cos3_8;
+ pp4 = p4 + p7;
+ pp5 = p5 + p6;
+ pp6 = (p4 - p7) * cos1_8;
+ pp7 = (p5 - p6) * cos3_8;
+ pp8 = p8 + p11;
+ pp9 = p9 + p10;
+ pp10 = (p8 - p11) * cos1_8;
+ pp11 = (p9 - p10) * cos3_8;
+ pp12 = p12 + p15;
+ pp13 = p13 + p14;
+ pp14 = (p12 - p15) * cos1_8;
+ pp15 = (p13 - p14) * cos3_8;
+
+ p0 = pp0 + pp1;
+ p1 = (pp0 - pp1) * cos1_4;
+ p2 = pp2 + pp3;
+ p3 = (pp2 - pp3) * cos1_4;
+ p4 = pp4 + pp5;
+ p5 = (pp4 - pp5) * cos1_4;
+ p6 = pp6 + pp7;
+ p7 = (pp6 - pp7) * cos1_4;
+ p8 = pp8 + pp9;
+ p9 = (pp8 - pp9) * cos1_4;
+ p10 = pp10 + pp11;
+ p11 = (pp10 - pp11) * cos1_4;
+ p12 = pp12 + pp13;
+ p13 = (pp12 - pp13) * cos1_4;
+ p14 = pp14 + pp15;
+ p15 = (pp14 - pp15) * cos1_4;
+
+ // this is pretty insane coding
+ @LOC("THIS,SynthesisFilter.NEWV") float tmp1;
+ new_v19/* 36-17 */= -(new_v4 = (new_v12 = p7) + p5) - p6;
+ new_v27/* 44-17 */= -p6 - p7 - p4;
+ new_v6 = (new_v10 = (new_v14 = p15) + p11) + p13;
+ new_v17/* 34-17 */= -(new_v2 = p15 + p13 + p9) - p14;
+ new_v21/* 38-17 */= (tmp1 = -p14 - p15 - p10 - p11) - p13;
+ new_v29/* 46-17 */= -p14 - p15 - p12 - p8;
+ new_v25/* 42-17 */= tmp1 - p12;
+ new_v31/* 48-17 */= -p0;
+ new_v0 = p1;
+ new_v23/* 40-17 */= -(new_v8 = p3) - p2;
+
+ p0 = (s0 - s31) * cos1_64;
+ p1 = (s1 - s30) * cos3_64;
+ p2 = (s2 - s29) * cos5_64;
+ p3 = (s3 - s28) * cos7_64;
+ p4 = (s4 - s27) * cos9_64;
+ p5 = (s5 - s26) * cos11_64;
+ p6 = (s6 - s25) * cos13_64;
+ p7 = (s7 - s24) * cos15_64;
+ p8 = (s8 - s23) * cos17_64;
+ p9 = (s9 - s22) * cos19_64;
+ p10 = (s10 - s21) * cos21_64;
+ p11 = (s11 - s20) * cos23_64;
+ p12 = (s12 - s19) * cos25_64;
+ p13 = (s13 - s18) * cos27_64;
+ p14 = (s14 - s17) * cos29_64;
+ p15 = (s15 - s16) * cos31_64;
+
+ pp0 = p0 + p15;
+ pp1 = p1 + p14;
+ pp2 = p2 + p13;
+ pp3 = p3 + p12;
+ pp4 = p4 + p11;
+ pp5 = p5 + p10;
+ pp6 = p6 + p9;
+ pp7 = p7 + p8;
+ pp8 = (p0 - p15) * cos1_32;
+ pp9 = (p1 - p14) * cos3_32;
+ pp10 = (p2 - p13) * cos5_32;
+ pp11 = (p3 - p12) * cos7_32;
+ pp12 = (p4 - p11) * cos9_32;
+ pp13 = (p5 - p10) * cos11_32;
+ pp14 = (p6 - p9) * cos13_32;
+ pp15 = (p7 - p8) * cos15_32;
+
+ p0 = pp0 + pp7;
+ p1 = pp1 + pp6;
+ p2 = pp2 + pp5;
+ p3 = pp3 + pp4;
+ p4 = (pp0 - pp7) * cos1_16;
+ p5 = (pp1 - pp6) * cos3_16;
+ p6 = (pp2 - pp5) * cos5_16;
+ p7 = (pp3 - pp4) * cos7_16;
+ p8 = pp8 + pp15;
+ p9 = pp9 + pp14;
+ p10 = pp10 + pp13;
+ p11 = pp11 + pp12;
+ p12 = (pp8 - pp15) * cos1_16;
+ p13 = (pp9 - pp14) * cos3_16;
+ p14 = (pp10 - pp13) * cos5_16;
+ p15 = (pp11 - pp12) * cos7_16;
+
+ pp0 = p0 + p3;
+ pp1 = p1 + p2;
+ pp2 = (p0 - p3) * cos1_8;
+ pp3 = (p1 - p2) * cos3_8;
+ pp4 = p4 + p7;
+ pp5 = p5 + p6;
+ pp6 = (p4 - p7) * cos1_8;
+ pp7 = (p5 - p6) * cos3_8;
+ pp8 = p8 + p11;
+ pp9 = p9 + p10;
+ pp10 = (p8 - p11) * cos1_8;
+ pp11 = (p9 - p10) * cos3_8;
+ pp12 = p12 + p15;
+ pp13 = p13 + p14;
+ pp14 = (p12 - p15) * cos1_8;
+ pp15 = (p13 - p14) * cos3_8;
+
+ p0 = pp0 + pp1;
+ p1 = (pp0 - pp1) * cos1_4;
+ p2 = pp2 + pp3;
+ p3 = (pp2 - pp3) * cos1_4;
+ p4 = pp4 + pp5;
+ p5 = (pp4 - pp5) * cos1_4;
+ p6 = pp6 + pp7;
+ p7 = (pp6 - pp7) * cos1_4;
+ p8 = pp8 + pp9;
+ p9 = (pp8 - pp9) * cos1_4;
+ p10 = pp10 + pp11;
+ p11 = (pp10 - pp11) * cos1_4;
+ p12 = pp12 + pp13;
+ p13 = (pp12 - pp13) * cos1_4;
+ p14 = pp14 + pp15;
+ p15 = (pp14 - pp15) * cos1_4;
+
+ // manually doing something that a compiler should handle sucks
+ // coding like this is hard to read
+ @LOC("THIS,SynthesisFilter.NEWV") float tmp2;
+ new_v5 = (new_v11 = (new_v13 = (new_v15 = p15) + p7) + p11) + p5 + p13;
+ new_v7 = (new_v9 = p15 + p11 + p3) + p13;
+ new_v16/* 33-17 */= -(new_v1 = (tmp1 = p13 + p15 + p9) + p1) - p14;
+ new_v18/* 35-17 */= -(new_v3 = tmp1 + p5 + p7) - p6 - p14;
+
+ new_v22/* 39-17 */= (tmp1 = -p10 - p11 - p14 - p15) - p13 - p2 - p3;
+ new_v20/* 37-17 */= tmp1 - p13 - p5 - p6 - p7;
+ new_v24/* 41-17 */= tmp1 - p12 - p2 - p3;
+ new_v26/* 43-17 */= tmp1 - p12 - (tmp2 = p4 + p6 + p7);
+ new_v30/* 47-17 */= (tmp1 = -p8 - p12 - p14 - p15) - p0;
+ new_v28/* 45-17 */= tmp1 - tmp2;
+
+ // insert V[0-15] (== new_v[0-15]) into actual v:
+ // float[] x2 = actual_v + actual_write_pos;
+ // float dest[] = actual_v; actual_v=v1;
+
+ @LOC("THIS,SynthesisFilter.NEWV") int pos = actual_write_pos;
+
+ v1[0 + pos] = new_v0;
+ v1[16 + pos] = new_v1;
+ v1[32 + pos] = new_v2;
+ v1[48 + pos] = new_v3;
+ v1[64 + pos] = new_v4;
+ v1[80 + pos] = new_v5;
+ v1[96 + pos] = new_v6;
+ v1[112 + pos] = new_v7;
+ v1[128 + pos] = new_v8;
+ v1[144 + pos] = new_v9;
+ v1[160 + pos] = new_v10;
+ v1[176 + pos] = new_v11;
+ v1[192 + pos] = new_v12;
+ v1[208 + pos] = new_v13;
+ v1[224 + pos] = new_v14;
+ v1[240 + pos] = new_v15;
+
+ // V[16] is always 0.0:
+ v1[256 + pos] = 0.0f;
+
+ // insert V[17-31] (== -new_v[15-1]) into actual v:
+ v1[272 + pos] = -new_v15;
+ v1[288 + pos] = -new_v14;
+ v1[304 + pos] = -new_v13;
+ v1[320 + pos] = -new_v12;
+ v1[336 + pos] = -new_v11;
+ v1[352 + pos] = -new_v10;
+ v1[368 + pos] = -new_v9;
+ v1[384 + pos] = -new_v8;
+ v1[400 + pos] = -new_v7;
+ v1[416 + pos] = -new_v6;
+ v1[432 + pos] = -new_v5;
+ v1[448 + pos] = -new_v4;
+ v1[464 + pos] = -new_v3;
+ v1[480 + pos] = -new_v2;
+ v1[496 + pos] = -new_v1;
+
+ // insert V[32] (== -new_v[0]) into other v:
+ // dest = (actual_v == v1) ? v2 : v1;
+
+ v2[0 + pos] = -new_v0;
+ // insert V[33-48] (== new_v[16-31]) into other v:
+ v2[16 + pos] = new_v16;
+ v2[32 + pos] = new_v17;
+ v2[48 + pos] = new_v18;
+ v2[64 + pos] = new_v19;
+ v2[80 + pos] = new_v20;
+ v2[96 + pos] = new_v21;
+ v2[112 + pos] = new_v22;
+ v2[128 + pos] = new_v23;
+ v2[144 + pos] = new_v24;
+ v2[160 + pos] = new_v25;
+ v2[176 + pos] = new_v26;
+ v2[192 + pos] = new_v27;
+ v2[208 + pos] = new_v28;
+ v2[224 + pos] = new_v29;
+ v2[240 + pos] = new_v30;
+ v2[256 + pos] = new_v31;
+
+ // insert V[49-63] (== new_v[30-16]) into other v:
+ v2[272 + pos] = new_v30;
+ v2[288 + pos] = new_v29;
+ v2[304 + pos] = new_v28;
+ v2[320 + pos] = new_v27;
+ v2[336 + pos] = new_v26;
+ v2[352 + pos] = new_v25;
+ v2[368 + pos] = new_v24;
+ v2[384 + pos] = new_v23;
+ v2[400 + pos] = new_v22;
+ v2[416 + pos] = new_v21;
+ v2[432 + pos] = new_v20;
+ v2[448 + pos] = new_v19;
+ v2[464 + pos] = new_v18;
+ v2[480 + pos] = new_v17;
+ v2[496 + pos] = new_v16;
+
+ /*
+ * setup PREV
+ */
+
+ prev1[0 + pos] = new_v0;
+ prev1[16 + pos] = new_v1;
+ prev1[32 + pos] = new_v2;
+ prev1[48 + pos] = new_v3;
+ prev1[64 + pos] = new_v4;
+ prev1[80 + pos] = new_v5;
+ prev1[96 + pos] = new_v6;
+ prev1[112 + pos] = new_v7;
+ prev1[128 + pos] = new_v8;
+ prev1[144 + pos] = new_v9;
+ prev1[160 + pos] = new_v10;
+ prev1[176 + pos] = new_v11;
+ prev1[192 + pos] = new_v12;
+ prev1[208 + pos] = new_v13;
+ prev1[224 + pos] = new_v14;
+ prev1[240 + pos] = new_v15;
+
+ // V[16] is always 0.0:
+ prev1[256 + pos] = 0.0f;
+
+ // insert V[17-31] (== -new_v[15-1]) into actual v:
+ prev1[272 + pos] = -new_v15;
+ prev1[288 + pos] = -new_v14;
+ prev1[304 + pos] = -new_v13;
+ prev1[320 + pos] = -new_v12;
+ prev1[336 + pos] = -new_v11;
+ prev1[352 + pos] = -new_v10;
+ prev1[368 + pos] = -new_v9;
+ prev1[384 + pos] = -new_v8;
+ prev1[400 + pos] = -new_v7;
+ prev1[416 + pos] = -new_v6;
+ prev1[432 + pos] = -new_v5;
+ prev1[448 + pos] = -new_v4;
+ prev1[464 + pos] = -new_v3;
+ prev1[480 + pos] = -new_v2;
+ prev1[496 + pos] = -new_v1;
+
+ // insert V[32] (== -new_v[0]) into other v:
+ // dest = (actual_v == v1) ? v2 : v1;
+
+ prev2[0 + pos] = -new_v0;
+ // insert V[33-48] (== new_v[16-31]) into other v:
+ prev2[16 + pos] = new_v16;
+ prev2[32 + pos] = new_v17;
+ prev2[48 + pos] = new_v18;
+ prev2[64 + pos] = new_v19;
+ prev2[80 + pos] = new_v20;
+ prev2[96 + pos] = new_v21;
+ prev2[112 + pos] = new_v22;
+ prev2[128 + pos] = new_v23;
+ prev2[144 + pos] = new_v24;
+ prev2[160 + pos] = new_v25;
+ prev2[176 + pos] = new_v26;
+ prev2[192 + pos] = new_v27;
+ prev2[208 + pos] = new_v28;
+ prev2[224 + pos] = new_v29;
+ prev2[240 + pos] = new_v30;
+ prev2[256 + pos] = new_v31;
+
+ // insert V[49-63] (== new_v[30-16]) into other v:
+ prev2[272 + pos] = new_v30;
+ prev2[288 + pos] = new_v29;
+ prev2[304 + pos] = new_v28;
+ prev2[320 + pos] = new_v27;
+ prev2[336 + pos] = new_v26;
+ prev2[352 + pos] = new_v25;
+ prev2[368 + pos] = new_v24;
+ prev2[384 + pos] = new_v23;
+ prev2[400 + pos] = new_v22;
+ prev2[416 + pos] = new_v21;
+ prev2[432 + pos] = new_v20;
+ prev2[448 + pos] = new_v19;
+ prev2[464 + pos] = new_v18;
+ prev2[480 + pos] = new_v17;
+ prev2[496 + pos] = new_v16;
+ }
+
+ /**
+ * Compute PCM Samples.
+ */
+
+ @LOC("OUT")
+ private float[] _tmpOut = new float[32];
+
+ private void compute_pcm_samples0() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+ // final float[] dp = d16[i];
+ pcm_sample =
+ (float) (((v1[0 + dvp] * d16[i][0]) + (v1[15 + dvp] * d16[i][1])
+ + (v1[14 + dvp] * d16[i][2]) + (v1[13 + dvp] * d16[i][3])
+ + (v1[12 + dvp] * d16[i][4]) + (v1[11 + dvp] * d16[i][5])
+ + (v1[10 + dvp] * d16[i][6]) + (v1[9 + dvp] * d16[i][7])
+ + (v1[8 + dvp] * d16[i][8]) + (v1[7 + dvp] * d16[i][9])
+ + (v1[6 + dvp] * d16[i][10]) + (v1[5 + dvp] * d16[i][11])
+ + (v1[4 + dvp] * d16[i][12]) + (v1[3 + dvp] * d16[i][13])
+ + (v1[2 + dvp] * d16[i][14]) + (v1[1 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+ // final float[] dp = d16[i];
+ pcm_sample =
+ (float) (((v2[0 + dvp] * d16[i][0]) + (v2[15 + dvp] * d16[i][1])
+ + (v2[14 + dvp] * d16[i][2]) + (v2[13 + dvp] * d16[i][3])
+ + (v2[12 + dvp] * d16[i][4]) + (v2[11 + dvp] * d16[i][5])
+ + (v2[10 + dvp] * d16[i][6]) + (v2[9 + dvp] * d16[i][7])
+ + (v2[8 + dvp] * d16[i][8]) + (v2[7 + dvp] * d16[i][9])
+ + (v2[6 + dvp] * d16[i][10]) + (v2[5 + dvp] * d16[i][11])
+ + (v2[4 + dvp] * d16[i][12]) + (v2[3 + dvp] * d16[i][13])
+ + (v2[2 + dvp] * d16[i][14]) + (v2[1 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples1() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[1 + dvp] * d16[i][0]) + (v1[0 + dvp] * d16[i][1])
+ + (v1[15 + dvp] * d16[i][2]) + (v1[14 + dvp] * d16[i][3])
+ + (v1[13 + dvp] * d16[i][4]) + (v1[12 + dvp] * d16[i][5])
+ + (v1[11 + dvp] * d16[i][6]) + (v1[10 + dvp] * d16[i][7])
+ + (v1[9 + dvp] * d16[i][8]) + (v1[8 + dvp] * d16[i][9])
+ + (v1[7 + dvp] * d16[i][10]) + (v1[6 + dvp] * d16[i][11])
+ + (v1[5 + dvp] * d16[i][12]) + (v1[4 + dvp] * d16[i][13])
+ + (v1[3 + dvp] * d16[i][14]) + (v1[2 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[1 + dvp] * d16[i][0]) + (v2[0 + dvp] * d16[i][1])
+ + (v2[15 + dvp] * d16[i][2]) + (v2[14 + dvp] * d16[i][3])
+ + (v2[13 + dvp] * d16[i][4]) + (v2[12 + dvp] * d16[i][5])
+ + (v2[11 + dvp] * d16[i][6]) + (v2[10 + dvp] * d16[i][7])
+ + (v2[9 + dvp] * d16[i][8]) + (v2[8 + dvp] * d16[i][9])
+ + (v2[7 + dvp] * d16[i][10]) + (v2[6 + dvp] * d16[i][11])
+ + (v2[5 + dvp] * d16[i][12]) + (v2[4 + dvp] * d16[i][13])
+ + (v2[3 + dvp] * d16[i][14]) + (v2[2 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples2() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[2 + dvp] * d16[i][0]) + (v1[1 + dvp] * d16[i][1])
+ + (v1[0 + dvp] * d16[i][2]) + (v1[15 + dvp] * d16[i][3])
+ + (v1[14 + dvp] * d16[i][4]) + (v1[13 + dvp] * d16[i][5])
+ + (v1[12 + dvp] * d16[i][6]) + (v1[11 + dvp] * d16[i][7])
+ + (v1[10 + dvp] * d16[i][8]) + (v1[9 + dvp] * d16[i][9])
+ + (v1[8 + dvp] * d16[i][10]) + (v1[7 + dvp] * d16[i][11])
+ + (v1[6 + dvp] * d16[i][12]) + (v1[5 + dvp] * d16[i][13])
+ + (v1[4 + dvp] * d16[i][14]) + (v1[3 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[2 + dvp] * d16[i][0]) + (v2[1 + dvp] * d16[i][1])
+ + (v2[0 + dvp] * d16[i][2]) + (v2[15 + dvp] * d16[i][3])
+ + (v2[14 + dvp] * d16[i][4]) + (v2[13 + dvp] * d16[i][5])
+ + (v2[12 + dvp] * d16[i][6]) + (v2[11 + dvp] * d16[i][7])
+ + (v2[10 + dvp] * d16[i][8]) + (v2[9 + dvp] * d16[i][9])
+ + (v2[8 + dvp] * d16[i][10]) + (v2[7 + dvp] * d16[i][11])
+ + (v2[6 + dvp] * d16[i][12]) + (v2[5 + dvp] * d16[i][13])
+ + (v2[4 + dvp] * d16[i][14]) + (v2[3 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples3() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[3 + dvp] * d16[i][0]) + (v1[2 + dvp] * d16[i][1])
+ + (v1[1 + dvp] * d16[i][2]) + (v1[0 + dvp] * d16[i][3])
+ + (v1[15 + dvp] * d16[i][4]) + (v1[14 + dvp] * d16[i][5])
+ + (v1[13 + dvp] * d16[i][6]) + (v1[12 + dvp] * d16[i][7])
+ + (v1[11 + dvp] * d16[i][8]) + (v1[10 + dvp] * d16[i][9])
+ + (v1[9 + dvp] * d16[i][10]) + (v1[8 + dvp] * d16[i][11])
+ + (v1[7 + dvp] * d16[i][12]) + (v1[6 + dvp] * d16[i][13])
+ + (v1[5 + dvp] * d16[i][14]) + (v1[4 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[3 + dvp] * d16[i][0]) + (v2[2 + dvp] * d16[i][1])
+ + (v2[1 + dvp] * d16[i][2]) + (v2[0 + dvp] * d16[i][3])
+ + (v2[15 + dvp] * d16[i][4]) + (v2[14 + dvp] * d16[i][5])
+ + (v2[13 + dvp] * d16[i][6]) + (v2[12 + dvp] * d16[i][7])
+ + (v2[11 + dvp] * d16[i][8]) + (v2[10 + dvp] * d16[i][9])
+ + (v2[9 + dvp] * d16[i][10]) + (v2[8 + dvp] * d16[i][11])
+ + (v2[7 + dvp] * d16[i][12]) + (v2[6 + dvp] * d16[i][13])
+ + (v2[5 + dvp] * d16[i][14]) + (v2[4 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples4() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[4 + dvp] * d16[i][0]) + (v1[3 + dvp] * d16[i][1])
+ + (v1[2 + dvp] * d16[i][2]) + (v1[1 + dvp] * d16[i][3]) + (v1[0 + dvp] * d16[i][4])
+ + (v1[15 + dvp] * d16[i][5]) + (v1[14 + dvp] * d16[i][6])
+ + (v1[13 + dvp] * d16[i][7]) + (v1[12 + dvp] * d16[i][8])
+ + (v1[11 + dvp] * d16[i][9]) + (v1[10 + dvp] * d16[i][10])
+ + (v1[9 + dvp] * d16[i][11]) + (v1[8 + dvp] * d16[i][12])
+ + (v1[7 + dvp] * d16[i][13]) + (v1[6 + dvp] * d16[i][14]) + (v1[5 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[4 + dvp] * d16[i][0]) + (v2[3 + dvp] * d16[i][1])
+ + (v2[2 + dvp] * d16[i][2]) + (v2[1 + dvp] * d16[i][3]) + (v2[0 + dvp] * d16[i][4])
+ + (v2[15 + dvp] * d16[i][5]) + (v2[14 + dvp] * d16[i][6])
+ + (v2[13 + dvp] * d16[i][7]) + (v2[12 + dvp] * d16[i][8])
+ + (v2[11 + dvp] * d16[i][9]) + (v2[10 + dvp] * d16[i][10])
+ + (v2[9 + dvp] * d16[i][11]) + (v2[8 + dvp] * d16[i][12])
+ + (v2[7 + dvp] * d16[i][13]) + (v2[6 + dvp] * d16[i][14]) + (v2[5 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples5() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[5 + dvp] * d16[i][0]) + (v1[4 + dvp] * d16[i][1])
+ + (v1[3 + dvp] * d16[i][2]) + (v1[2 + dvp] * d16[i][3]) + (v1[1 + dvp] * d16[i][4])
+ + (v1[0 + dvp] * d16[i][5]) + (v1[15 + dvp] * d16[i][6])
+ + (v1[14 + dvp] * d16[i][7]) + (v1[13 + dvp] * d16[i][8])
+ + (v1[12 + dvp] * d16[i][9]) + (v1[11 + dvp] * d16[i][10])
+ + (v1[10 + dvp] * d16[i][11]) + (v1[9 + dvp] * d16[i][12])
+ + (v1[8 + dvp] * d16[i][13]) + (v1[7 + dvp] * d16[i][14]) + (v1[6 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[5 + dvp] * d16[i][0]) + (v2[4 + dvp] * d16[i][1])
+ + (v2[3 + dvp] * d16[i][2]) + (v2[2 + dvp] * d16[i][3]) + (v2[1 + dvp] * d16[i][4])
+ + (v2[0 + dvp] * d16[i][5]) + (v2[15 + dvp] * d16[i][6])
+ + (v2[14 + dvp] * d16[i][7]) + (v2[13 + dvp] * d16[i][8])
+ + (v2[12 + dvp] * d16[i][9]) + (v2[11 + dvp] * d16[i][10])
+ + (v2[10 + dvp] * d16[i][11]) + (v2[9 + dvp] * d16[i][12])
+ + (v2[8 + dvp] * d16[i][13]) + (v2[7 + dvp] * d16[i][14]) + (v2[6 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples6() {
+
+ if (vidx == 1) {
+
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[6 + dvp] * d16[i][0]) + (v1[5 + dvp] * d16[i][1])
+ + (v1[4 + dvp] * d16[i][2]) + (v1[3 + dvp] * d16[i][3]) + (v1[2 + dvp] * d16[i][4])
+ + (v1[1 + dvp] * d16[i][5]) + (v1[0 + dvp] * d16[i][6])
+ + (v1[15 + dvp] * d16[i][7]) + (v1[14 + dvp] * d16[i][8])
+ + (v1[13 + dvp] * d16[i][9]) + (v1[12 + dvp] * d16[i][10])
+ + (v1[11 + dvp] * d16[i][11]) + (v1[10 + dvp] * d16[i][12])
+ + (v1[9 + dvp] * d16[i][13]) + (v1[8 + dvp] * d16[i][14]) + (v1[7 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[6 + dvp] * d16[i][0]) + (v2[5 + dvp] * d16[i][1])
+ + (v2[4 + dvp] * d16[i][2]) + (v2[3 + dvp] * d16[i][3]) + (v2[2 + dvp] * d16[i][4])
+ + (v2[1 + dvp] * d16[i][5]) + (v2[0 + dvp] * d16[i][6])
+ + (v2[15 + dvp] * d16[i][7]) + (v2[14 + dvp] * d16[i][8])
+ + (v2[13 + dvp] * d16[i][9]) + (v2[12 + dvp] * d16[i][10])
+ + (v2[11 + dvp] * d16[i][11]) + (v2[10 + dvp] * d16[i][12])
+ + (v2[9 + dvp] * d16[i][13]) + (v2[8 + dvp] * d16[i][14]) + (v2[7 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples7() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[7 + dvp] * d16[i][0]) + (v1[6 + dvp] * d16[i][1])
+ + (v1[5 + dvp] * d16[i][2]) + (v1[4 + dvp] * d16[i][3]) + (v1[3 + dvp] * d16[i][4])
+ + (v1[2 + dvp] * d16[i][5]) + (v1[1 + dvp] * d16[i][6]) + (v1[0 + dvp] * d16[i][7])
+ + (v1[15 + dvp] * d16[i][8]) + (v1[14 + dvp] * d16[i][9])
+ + (v1[13 + dvp] * d16[i][10]) + (v1[12 + dvp] * d16[i][11])
+ + (v1[11 + dvp] * d16[i][12]) + (v1[10 + dvp] * d16[i][13])
+ + (v1[9 + dvp] * d16[i][14]) + (v1[8 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[7 + dvp] * d16[i][0]) + (v2[6 + dvp] * d16[i][1])
+ + (v2[5 + dvp] * d16[i][2]) + (v2[4 + dvp] * d16[i][3]) + (v2[3 + dvp] * d16[i][4])
+ + (v2[2 + dvp] * d16[i][5]) + (v2[1 + dvp] * d16[i][6]) + (v2[0 + dvp] * d16[i][7])
+ + (v2[15 + dvp] * d16[i][8]) + (v2[14 + dvp] * d16[i][9])
+ + (v2[13 + dvp] * d16[i][10]) + (v2[12 + dvp] * d16[i][11])
+ + (v2[11 + dvp] * d16[i][12]) + (v2[10 + dvp] * d16[i][13])
+ + (v2[9 + dvp] * d16[i][14]) + (v2[8 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples8() {
+
+ if (vidx == 1) {
+
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[8 + dvp] * d16[i][0]) + (v1[7 + dvp] * d16[i][1])
+ + (v1[6 + dvp] * d16[i][2]) + (v1[5 + dvp] * d16[i][3]) + (v1[4 + dvp] * d16[i][4])
+ + (v1[3 + dvp] * d16[i][5]) + (v1[2 + dvp] * d16[i][6]) + (v1[1 + dvp] * d16[i][7])
+ + (v1[0 + dvp] * d16[i][8]) + (v1[15 + dvp] * d16[i][9])
+ + (v1[14 + dvp] * d16[i][10]) + (v1[13 + dvp] * d16[i][11])
+ + (v1[12 + dvp] * d16[i][12]) + (v1[11 + dvp] * d16[i][13])
+ + (v1[10 + dvp] * d16[i][14]) + (v1[9 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[8 + dvp] * d16[i][0]) + (v2[7 + dvp] * d16[i][1])
+ + (v2[6 + dvp] * d16[i][2]) + (v2[5 + dvp] * d16[i][3]) + (v2[4 + dvp] * d16[i][4])
+ + (v2[3 + dvp] * d16[i][5]) + (v2[2 + dvp] * d16[i][6]) + (v2[1 + dvp] * d16[i][7])
+ + (v2[0 + dvp] * d16[i][8]) + (v2[15 + dvp] * d16[i][9])
+ + (v2[14 + dvp] * d16[i][10]) + (v2[13 + dvp] * d16[i][11])
+ + (v2[12 + dvp] * d16[i][12]) + (v2[11 + dvp] * d16[i][13])
+ + (v2[10 + dvp] * d16[i][14]) + (v2[9 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples9() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[9 + dvp] * d16[i][0]) + (v1[8 + dvp] * d16[i][1])
+ + (v1[7 + dvp] * d16[i][2]) + (v1[6 + dvp] * d16[i][3]) + (v1[5 + dvp] * d16[i][4])
+ + (v1[4 + dvp] * d16[i][5]) + (v1[3 + dvp] * d16[i][6]) + (v1[2 + dvp] * d16[i][7])
+ + (v1[1 + dvp] * d16[i][8]) + (v1[0 + dvp] * d16[i][9])
+ + (v1[15 + dvp] * d16[i][10]) + (v1[14 + dvp] * d16[i][11])
+ + (v1[13 + dvp] * d16[i][12]) + (v1[12 + dvp] * d16[i][13])
+ + (v1[11 + dvp] * d16[i][14]) + (v1[10 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[9 + dvp] * d16[i][0]) + (v2[8 + dvp] * d16[i][1])
+ + (v2[7 + dvp] * d16[i][2]) + (v2[6 + dvp] * d16[i][3]) + (v2[5 + dvp] * d16[i][4])
+ + (v2[4 + dvp] * d16[i][5]) + (v2[3 + dvp] * d16[i][6]) + (v2[2 + dvp] * d16[i][7])
+ + (v2[1 + dvp] * d16[i][8]) + (v2[0 + dvp] * d16[i][9])
+ + (v2[15 + dvp] * d16[i][10]) + (v2[14 + dvp] * d16[i][11])
+ + (v2[13 + dvp] * d16[i][12]) + (v2[12 + dvp] * d16[i][13])
+ + (v2[11 + dvp] * d16[i][14]) + (v2[10 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples10() {
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[10 + dvp] * d16[i][0]) + (v1[9 + dvp] * d16[i][1])
+ + (v1[8 + dvp] * d16[i][2]) + (v1[7 + dvp] * d16[i][3]) + (v1[6 + dvp] * d16[i][4])
+ + (v1[5 + dvp] * d16[i][5]) + (v1[4 + dvp] * d16[i][6]) + (v1[3 + dvp] * d16[i][7])
+ + (v1[2 + dvp] * d16[i][8]) + (v1[1 + dvp] * d16[i][9])
+ + (v1[0 + dvp] * d16[i][10]) + (v1[15 + dvp] * d16[i][11])
+ + (v1[14 + dvp] * d16[i][12]) + (v1[13 + dvp] * d16[i][13])
+ + (v1[12 + dvp] * d16[i][14]) + (v1[11 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[10 + dvp] * d16[i][0]) + (v2[9 + dvp] * d16[i][1])
+ + (v2[8 + dvp] * d16[i][2]) + (v2[7 + dvp] * d16[i][3]) + (v2[6 + dvp] * d16[i][4])
+ + (v2[5 + dvp] * d16[i][5]) + (v2[4 + dvp] * d16[i][6]) + (v2[3 + dvp] * d16[i][7])
+ + (v2[2 + dvp] * d16[i][8]) + (v2[1 + dvp] * d16[i][9])
+ + (v2[0 + dvp] * d16[i][10]) + (v2[15 + dvp] * d16[i][11])
+ + (v2[14 + dvp] * d16[i][12]) + (v2[13 + dvp] * d16[i][13])
+ + (v2[12 + dvp] * d16[i][14]) + (v2[11 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples11() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[11 + dvp] * d16[i][0]) + (v1[10 + dvp] * d16[i][1])
+ + (v1[9 + dvp] * d16[i][2]) + (v1[8 + dvp] * d16[i][3]) + (v1[7 + dvp] * d16[i][4])
+ + (v1[6 + dvp] * d16[i][5]) + (v1[5 + dvp] * d16[i][6]) + (v1[4 + dvp] * d16[i][7])
+ + (v1[3 + dvp] * d16[i][8]) + (v1[2 + dvp] * d16[i][9])
+ + (v1[1 + dvp] * d16[i][10]) + (v1[0 + dvp] * d16[i][11])
+ + (v1[15 + dvp] * d16[i][12]) + (v1[14 + dvp] * d16[i][13])
+ + (v1[13 + dvp] * d16[i][14]) + (v1[12 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[11 + dvp] * d16[i][0]) + (v2[10 + dvp] * d16[i][1])
+ + (v2[9 + dvp] * d16[i][2]) + (v2[8 + dvp] * d16[i][3]) + (v2[7 + dvp] * d16[i][4])
+ + (v2[6 + dvp] * d16[i][5]) + (v2[5 + dvp] * d16[i][6]) + (v2[4 + dvp] * d16[i][7])
+ + (v2[3 + dvp] * d16[i][8]) + (v2[2 + dvp] * d16[i][9])
+ + (v2[1 + dvp] * d16[i][10]) + (v2[0 + dvp] * d16[i][11])
+ + (v2[15 + dvp] * d16[i][12]) + (v2[14 + dvp] * d16[i][13])
+ + (v2[13 + dvp] * d16[i][14]) + (v2[12 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples12() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[12 + dvp] * d16[i][0]) + (v1[11 + dvp] * d16[i][1])
+ + (v1[10 + dvp] * d16[i][2]) + (v1[9 + dvp] * d16[i][3])
+ + (v1[8 + dvp] * d16[i][4]) + (v1[7 + dvp] * d16[i][5]) + (v1[6 + dvp] * d16[i][6])
+ + (v1[5 + dvp] * d16[i][7]) + (v1[4 + dvp] * d16[i][8]) + (v1[3 + dvp] * d16[i][9])
+ + (v1[2 + dvp] * d16[i][10]) + (v1[1 + dvp] * d16[i][11])
+ + (v1[0 + dvp] * d16[i][12]) + (v1[15 + dvp] * d16[i][13])
+ + (v1[14 + dvp] * d16[i][14]) + (v1[13 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[12 + dvp] * d16[i][0]) + (v2[11 + dvp] * d16[i][1])
+ + (v2[10 + dvp] * d16[i][2]) + (v2[9 + dvp] * d16[i][3])
+ + (v2[8 + dvp] * d16[i][4]) + (v2[7 + dvp] * d16[i][5]) + (v2[6 + dvp] * d16[i][6])
+ + (v2[5 + dvp] * d16[i][7]) + (v2[4 + dvp] * d16[i][8]) + (v2[3 + dvp] * d16[i][9])
+ + (v2[2 + dvp] * d16[i][10]) + (v2[1 + dvp] * d16[i][11])
+ + (v2[0 + dvp] * d16[i][12]) + (v2[15 + dvp] * d16[i][13])
+ + (v2[14 + dvp] * d16[i][14]) + (v2[13 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples13() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[13 + dvp] * d16[i][0]) + (v1[12 + dvp] * d16[i][1])
+ + (v1[11 + dvp] * d16[i][2]) + (v1[10 + dvp] * d16[i][3])
+ + (v1[9 + dvp] * d16[i][4]) + (v1[8 + dvp] * d16[i][5]) + (v1[7 + dvp] * d16[i][6])
+ + (v1[6 + dvp] * d16[i][7]) + (v1[5 + dvp] * d16[i][8]) + (v1[4 + dvp] * d16[i][9])
+ + (v1[3 + dvp] * d16[i][10]) + (v1[2 + dvp] * d16[i][11])
+ + (v1[1 + dvp] * d16[i][12]) + (v1[0 + dvp] * d16[i][13])
+ + (v1[15 + dvp] * d16[i][14]) + (v1[14 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[13 + dvp] * d16[i][0]) + (v2[12 + dvp] * d16[i][1])
+ + (v2[11 + dvp] * d16[i][2]) + (v2[10 + dvp] * d16[i][3])
+ + (v2[9 + dvp] * d16[i][4]) + (v2[8 + dvp] * d16[i][5]) + (v2[7 + dvp] * d16[i][6])
+ + (v2[6 + dvp] * d16[i][7]) + (v2[5 + dvp] * d16[i][8]) + (v2[4 + dvp] * d16[i][9])
+ + (v2[3 + dvp] * d16[i][10]) + (v2[2 + dvp] * d16[i][11])
+ + (v2[1 + dvp] * d16[i][12]) + (v2[0 + dvp] * d16[i][13])
+ + (v2[15 + dvp] * d16[i][14]) + (v2[14 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples14() {
+
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v1[14 + dvp] * d16[i][0]) + (v1[13 + dvp] * d16[i][1])
+ + (v1[12 + dvp] * d16[i][2]) + (v1[11 + dvp] * d16[i][3])
+ + (v1[10 + dvp] * d16[i][4]) + (v1[9 + dvp] * d16[i][5])
+ + (v1[8 + dvp] * d16[i][6]) + (v1[7 + dvp] * d16[i][7]) + (v1[6 + dvp] * d16[i][8])
+ + (v1[5 + dvp] * d16[i][9]) + (v1[4 + dvp] * d16[i][10])
+ + (v1[3 + dvp] * d16[i][11]) + (v1[2 + dvp] * d16[i][12])
+ + (v1[1 + dvp] * d16[i][13]) + (v1[0 + dvp] * d16[i][14]) + (v1[15 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ // final float[] dp = d16[i];
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+
+ pcm_sample =
+ (float) (((v2[14 + dvp] * d16[i][0]) + (v2[13 + dvp] * d16[i][1])
+ + (v2[12 + dvp] * d16[i][2]) + (v2[11 + dvp] * d16[i][3])
+ + (v2[10 + dvp] * d16[i][4]) + (v2[9 + dvp] * d16[i][5])
+ + (v2[8 + dvp] * d16[i][6]) + (v2[7 + dvp] * d16[i][7]) + (v2[6 + dvp] * d16[i][8])
+ + (v2[5 + dvp] * d16[i][9]) + (v2[4 + dvp] * d16[i][10])
+ + (v2[3 + dvp] * d16[i][11]) + (v2[2 + dvp] * d16[i][12])
+ + (v2[1 + dvp] * d16[i][13]) + (v2[0 + dvp] * d16[i][14]) + (v2[15 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples15() {
+ if (vidx == 1) {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+ // final float d16[i][] = d16[i];
+ pcm_sample =
+ (float) (((v1[15 + dvp] * d16[i][0]) + (v1[14 + dvp] * d16[i][1])
+ + (v1[13 + dvp] * d16[i][2]) + (v1[12 + dvp] * d16[i][3])
+ + (v1[11 + dvp] * d16[i][4]) + (v1[10 + dvp] * d16[i][5])
+ + (v1[9 + dvp] * d16[i][6]) + (v1[8 + dvp] * d16[i][7]) + (v1[7 + dvp] * d16[i][8])
+ + (v1[6 + dvp] * d16[i][9]) + (v1[5 + dvp] * d16[i][10])
+ + (v1[4 + dvp] * d16[i][11]) + (v1[3 + dvp] * d16[i][12])
+ + (v1[2 + dvp] * d16[i][13]) + (v1[1 + dvp] * d16[i][14]) + (v1[0 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+ dvp += 16;
+ } // for
+ } else {
+ // final float[] vp = actual_v;
+
+ // int inc = v_inc;
+ // final float[] tmpOut = _tmpOut;
+ @LOC("THIS,SynthesisFilter.NEWV") int dvp = 0;
+
+ // fat chance of having this loop unroll
+ for (@LOC("THIS,SynthesisFilter.NEWV") int i = 0; i < 32; i++) {
+ @LOC("THIS,SynthesisFilter.V2") float pcm_sample;
+ // final float d16[i][] = d16[i];
+ pcm_sample =
+ (float) (((v2[15 + dvp] * d16[i][0]) + (v2[14 + dvp] * d16[i][1])
+ + (v2[13 + dvp] * d16[i][2]) + (v2[12 + dvp] * d16[i][3])
+ + (v2[11 + dvp] * d16[i][4]) + (v2[10 + dvp] * d16[i][5])
+ + (v2[9 + dvp] * d16[i][6]) + (v2[8 + dvp] * d16[i][7]) + (v2[7 + dvp] * d16[i][8])
+ + (v2[6 + dvp] * d16[i][9]) + (v2[5 + dvp] * d16[i][10])
+ + (v2[4 + dvp] * d16[i][11]) + (v2[3 + dvp] * d16[i][12])
+ + (v2[2 + dvp] * d16[i][13]) + (v2[1 + dvp] * d16[i][14]) + (v2[0 + dvp] * d16[i][15])) * scalefactor);
+
+ _tmpOut[i] = pcm_sample;
+ dvp += 16;
+ } // for
+ }
+
+ }
+
+ private void compute_pcm_samples() {
+
+ switch (actual_write_pos) {
+ case 0:
+ compute_pcm_samples0();
+ break;
+ case 1:
+ compute_pcm_samples1();
+ break;
+ case 2:
+ compute_pcm_samples2();
+ break;
+ case 3:
+ compute_pcm_samples3();
+ break;
+ case 4:
+ compute_pcm_samples4();
+ break;
+ case 5:
+ compute_pcm_samples5();
+ break;
+ case 6:
+ compute_pcm_samples6();
+ break;
+ case 7:
+ compute_pcm_samples7();
+ break;
+ case 8:
+ compute_pcm_samples8();
+ break;
+ case 9:
+ compute_pcm_samples9();
+ break;
+ case 10:
+ compute_pcm_samples10();
+ break;
+ case 11:
+ compute_pcm_samples11();
+ break;
+ case 12:
+ compute_pcm_samples12();
+ break;
+ case 13:
+ compute_pcm_samples13();
+ break;
+ case 14:
+ compute_pcm_samples14();
+ break;
+ case 15:
+ compute_pcm_samples15();
+ break;
+ }
+
+ // if (buffer != null) {
+ // buffer.appendSamples(channel, _tmpOut);
+ // }
+ SampleBufferWrapper.appendSamples(channel, _tmpOut);
+
+ /*
+ * // MDM: I was considering putting in quality control for // low-spec
+ * CPUs, but the performance gain (about 10-15%) // did not justify the
+ * considerable drop in audio quality. switch (inc) { case 16:
+ * buffer.appendSamples(channel, tmpOut); break; case 32: for (int i=0;
+ * i<16; i++) { buffer.append(channel, (short)tmpOut[i]);
+ * buffer.append(channel, (short)tmpOut[i]); } break; case 64: for (int i=0;
+ * i<8; i++) { buffer.append(channel, (short)tmpOut[i]);
+ * buffer.append(channel, (short)tmpOut[i]); buffer.append(channel,
+ * (short)tmpOut[i]); buffer.append(channel, (short)tmpOut[i]); } break;
+ *
+ * }
+ */
+ }
+
+ @LATTICE("THIS<C,C*,THISLOC=THIS")
+ public void clear() {
+ // clear out v1,v2
+ SSJAVA.arrayinit(v1, 0);
+ SSJAVA.arrayinit(v2, 0);
+ // copy previous v1,v2
+
+ for (@LOC("THIS,SynthesisFilter.V") int i = 0; i < prev1.length; i++) {
+ v1[i] = prev1[i];
+ }
+ for (@LOC("THIS,SynthesisFilter.V") int i = 0; i < prev2.length; i++) {
+ v2[i] = prev2[i];
+ }
+ // clear out previous buffer
+ SSJAVA.arrayinit(prev1, 0);
+ SSJAVA.arrayinit(prev2, 0);
+ SSJAVA.arrayinit(samples, 0);
+ SSJAVA.arrayinit(_tmpOut, 0);
+ }
+
+ /**
+ * Calculate 32 PCM samples and put the into the Obuffer-object.
+ */
+
+ public void calculate_pcm_samples() {
+
+// System.out.println("#calculate_pcm_samples::actual_write_pos=" + actual_write_pos);
+
+ if (vidx == 1) {
+ compute_new_v1_v2();
+ } else {
+ compute_new_v2_v1();
+ }
+
+ // System.out.println("1.actual_v=" + (actual_v == v1) + " vidx=" + vidx);
+ // compute_new_v();
+ // System.out.println("2.actual_v=" + (actual_v == v1) + " vidx=" + vidx);
+ compute_pcm_samples();
+ // System.out.println("3.actual_v=" + (actual_v == v1) + " vidx=" + vidx);
+
+ actual_write_pos = (actual_write_pos + 1) & 0xf;
+// System.out.println("actual_write_pos="+actual_write_pos);
+ // actual_v = (actual_v == v1) ? v2 : v1;
+
+ if (vidx == 1) {
+ vidx = 2;
+ } else {
+ vidx = 1;
+ }
+
+ // initialize samples[]:
+ // for (register float *floatp = samples + 32; floatp > samples; )
+ // *--floatp = 0.0f;
+
+ // MDM: this may not be necessary. The Layer III decoder always
+ // outputs 32 subband samples, but I haven't checked layer I & II.
+ // for (@LOC("C") int p = 0; p < 32; p++){
+ // samples[p] = 0.0f;
+ // }
+ SSJAVA.arrayinit(samples, 0);
+ }
+
+ private static final double MY_PI = 3.14159265358979323846;
+ private static final float cos1_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 64.0)));
+ private static final float cos3_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 64.0)));
+ private static final float cos5_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 64.0)));
+ private static final float cos7_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 64.0)));
+ private static final float cos9_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 64.0)));
+ private static final float cos11_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 64.0)));
+ private static final float cos13_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 64.0)));
+ private static final float cos15_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 64.0)));
+ private static final float cos17_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 17.0 / 64.0)));
+ private static final float cos19_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 19.0 / 64.0)));
+ private static final float cos21_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 21.0 / 64.0)));
+ private static final float cos23_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 23.0 / 64.0)));
+ private static final float cos25_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 25.0 / 64.0)));
+ private static final float cos27_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 27.0 / 64.0)));
+ private static final float cos29_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 29.0 / 64.0)));
+ private static final float cos31_64 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 31.0 / 64.0)));
+ private static final float cos1_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 32.0)));
+ private static final float cos3_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 32.0)));
+ private static final float cos5_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 32.0)));
+ private static final float cos7_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 32.0)));
+ private static final float cos9_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 9.0 / 32.0)));
+ private static final float cos11_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 11.0 / 32.0)));
+ private static final float cos13_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 13.0 / 32.0)));
+ private static final float cos15_32 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 15.0 / 32.0)));
+ private static final float cos1_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 16.0)));
+ private static final float cos3_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 16.0)));
+ private static final float cos5_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 5.0 / 16.0)));
+ private static final float cos7_16 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 7.0 / 16.0)));
+ private static final float cos1_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 8.0)));
+ private static final float cos3_8 = (float) (1.0 / (2.0 * Math.cos(MY_PI * 3.0 / 8.0)));
+ private static final float cos1_4 = (float) (1.0 / (2.0 * Math.cos(MY_PI / 4.0)));
+
+ // Note: These values are not in the same order
+ // as in Annex 3-B.3 of the ISO/IEC DIS 11172-3
+ // private float d[] = {0.000000000, -4.000442505};
+
+ /**
+ * d[] split into subarrays of length 16. This provides for more faster access
+ * by allowing a block of 16 to be addressed with constant offset.
+ **/
+ // TODO CONST
+ @LOC("V")
+ private final static float d16[][] = null;
+
+ /**
+ * Converts a 1D array into a number of smaller arrays. This is used to
+ * achieve offset + constant indexing into an array. Each sub-array represents
+ * a block of values of the original array.
+ *
+ * @param array
+ * The array to split up into blocks.
+ * @param blockSize
+ * The size of the blocks to split the array into. This must be an
+ * exact divisor of the length of the array, or some data will be
+ * lost from the main array.
+ *
+ * @return An array of arrays in which each element in the returned array will
+ * be of length <code>blockSize</code>.
+ */
+ static private float[][] splitArray(final float[] array, final int blockSize) {
+ int size = array.length / blockSize;
+ float[][] split = new float[size][];
+ for (int i = 0; i < size; i++) {
+ split[i] = subArray(array, i * blockSize, blockSize);
+ }
+ return split;
+ }
+
+ /**
+ * Returns a subarray of an existing array.
+ *
+ * @param array
+ * The array to retrieve a subarra from.
+ * @param offs
+ * The offset in the array that corresponds to the first index of the
+ * subarray.
+ * @param len
+ * The number of indeces in the subarray.
+ * @return The subarray, which may be of length 0.
+ */
+ static private float[] subArray(final float[] array, final int offs, int len) {
+ if (offs + len > array.length) {
+ len = array.length - offs;
+ }
+
+ if (len < 0)
+ len = 0;
+
+ float[] subarray = new float[len];
+ for (int i = 0; i < len; i++) {
+ subarray[i] = array[offs + i];
+ }
+
+ return subarray;
+ }
+
+ // The original data for d[]. This data is loaded from a file
+ // to reduce the overall package size and to improve performance.
+
+ static final float d[] = { 0.000000000f, -0.000442505f, 0.003250122f, -0.007003784f,
+ 0.031082153f, -0.078628540f, 0.100311279f, -0.572036743f, 1.144989014f, 0.572036743f,
+ 0.100311279f, 0.078628540f, 0.031082153f, 0.007003784f, 0.003250122f, 0.000442505f,
+ -0.000015259f, -0.000473022f, 0.003326416f, -0.007919312f, 0.030517578f, -0.084182739f,
+ 0.090927124f, -0.600219727f, 1.144287109f, 0.543823242f, 0.108856201f, 0.073059082f,
+ 0.031478882f, 0.006118774f, 0.003173828f, 0.000396729f, -0.000015259f, -0.000534058f,
+ 0.003387451f, -0.008865356f, 0.029785156f, -0.089706421f, 0.080688477f, -0.628295898f,
+ 1.142211914f, 0.515609741f, 0.116577148f, 0.067520142f, 0.031738281f, 0.005294800f,
+ 0.003082275f, 0.000366211f, -0.000015259f, -0.000579834f, 0.003433228f, -0.009841919f,
+ 0.028884888f, -0.095169067f, 0.069595337f, -0.656219482f, 1.138763428f, 0.487472534f,
+ 0.123474121f, 0.061996460f, 0.031845093f, 0.004486084f, 0.002990723f, 0.000320435f,
+ -0.000015259f, -0.000625610f, 0.003463745f, -0.010848999f, 0.027801514f, -0.100540161f,
+ 0.057617188f, -0.683914185f, 1.133926392f, 0.459472656f, 0.129577637f, 0.056533813f,
+ 0.031814575f, 0.003723145f, 0.002899170f, 0.000289917f, -0.000015259f, -0.000686646f,
+ 0.003479004f, -0.011886597f, 0.026535034f, -0.105819702f, 0.044784546f, -0.711318970f,
+ 1.127746582f, 0.431655884f, 0.134887695f, 0.051132202f, 0.031661987f, 0.003005981f,
+ 0.002792358f, 0.000259399f, -0.000015259f, -0.000747681f, 0.003479004f, -0.012939453f,
+ 0.025085449f, -0.110946655f, 0.031082153f, -0.738372803f, 1.120223999f, 0.404083252f,
+ 0.139450073f, 0.045837402f, 0.031387329f, 0.002334595f, 0.002685547f, 0.000244141f,
+ -0.000030518f, -0.000808716f, 0.003463745f, -0.014022827f, 0.023422241f, -0.115921021f,
+ 0.016510010f, -0.765029907f, 1.111373901f, 0.376800537f, 0.143264771f, 0.040634155f,
+ 0.031005859f, 0.001693726f, 0.002578735f, 0.000213623f, -0.000030518f, -0.000885010f,
+ 0.003417969f, -0.015121460f, 0.021575928f, -0.120697021f, 0.001068115f, -0.791213989f,
+ 1.101211548f, 0.349868774f, 0.146362305f, 0.035552979f, 0.030532837f, 0.001098633f,
+ 0.002456665f, 0.000198364f, -0.000030518f, -0.000961304f, 0.003372192f, -0.016235352f,
+ 0.019531250f, -0.125259399f, -0.015228271f, -0.816864014f, 1.089782715f, 0.323318481f,
+ 0.148773193f, 0.030609131f, 0.029937744f, 0.000549316f, 0.002349854f, 0.000167847f,
+ -0.000030518f, -0.001037598f, 0.003280640f, -0.017349243f, 0.017257690f, -0.129562378f,
+ -0.032379150f, -0.841949463f, 1.077117920f, 0.297210693f, 0.150497437f, 0.025817871f,
+ 0.029281616f, 0.000030518f, 0.002243042f, 0.000152588f, -0.000045776f, -0.001113892f,
+ 0.003173828f, -0.018463135f, 0.014801025f, -0.133590698f, -0.050354004f, -0.866363525f,
+ 1.063217163f, 0.271591187f, 0.151596069f, 0.021179199f, 0.028533936f, -0.000442505f,
+ 0.002120972f, 0.000137329f, -0.000045776f, -0.001205444f, 0.003051758f, -0.019577026f,
+ 0.012115479f, -0.137298584f, -0.069168091f, -0.890090942f, 1.048156738f, 0.246505737f,
+ 0.152069092f, 0.016708374f, 0.027725220f, -0.000869751f, 0.002014160f, 0.000122070f,
+ -0.000061035f, -0.001296997f, 0.002883911f, -0.020690918f, 0.009231567f, -0.140670776f,
+ -0.088775635f, -0.913055420f, 1.031936646f, 0.221984863f, 0.151962280f, 0.012420654f,
+ 0.026840210f, -0.001266479f, 0.001907349f, 0.000106812f, -0.000061035f, -0.001388550f,
+ 0.002700806f, -0.021789551f, 0.006134033f, -0.143676758f, -0.109161377f, -0.935195923f,
+ 1.014617920f, 0.198059082f, 0.151306152f, 0.008316040f, 0.025909424f, -0.001617432f,
+ 0.001785278f, 0.000106812f, -0.000076294f, -0.001480103f, 0.002487183f, -0.022857666f,
+ 0.002822876f, -0.146255493f, -0.130310059f, -0.956481934f, 0.996246338f, 0.174789429f,
+ 0.150115967f, 0.004394531f, 0.024932861f, -0.001937866f, 0.001693726f, 0.000091553f,
+ -0.000076294f, -0.001586914f, 0.002227783f, -0.023910522f, -0.000686646f, -0.148422241f,
+ -0.152206421f, -0.976852417f, 0.976852417f, 0.152206421f, 0.148422241f, 0.000686646f,
+ 0.023910522f, -0.002227783f, 0.001586914f, 0.000076294f, -0.000091553f, -0.001693726f,
+ 0.001937866f, -0.024932861f, -0.004394531f, -0.150115967f, -0.174789429f, -0.996246338f,
+ 0.956481934f, 0.130310059f, 0.146255493f, -0.002822876f, 0.022857666f, -0.002487183f,
+ 0.001480103f, 0.000076294f, -0.000106812f, -0.001785278f, 0.001617432f, -0.025909424f,
+ -0.008316040f, -0.151306152f, -0.198059082f, -1.014617920f, 0.935195923f, 0.109161377f,
+ 0.143676758f, -0.006134033f, 0.021789551f, -0.002700806f, 0.001388550f, 0.000061035f,
+ -0.000106812f, -0.001907349f, 0.001266479f, -0.026840210f, -0.012420654f, -0.151962280f,
+ -0.221984863f, -1.031936646f, 0.913055420f, 0.088775635f, 0.140670776f, -0.009231567f,
+ 0.020690918f, -0.002883911f, 0.001296997f, 0.000061035f, -0.000122070f, -0.002014160f,
+ 0.000869751f, -0.027725220f, -0.016708374f, -0.152069092f, -0.246505737f, -1.048156738f,
+ 0.890090942f, 0.069168091f, 0.137298584f, -0.012115479f, 0.019577026f, -0.003051758f,
+ 0.001205444f, 0.000045776f, -0.000137329f, -0.002120972f, 0.000442505f, -0.028533936f,
+ -0.021179199f, -0.151596069f, -0.271591187f, -1.063217163f, 0.866363525f, 0.050354004f,
+ 0.133590698f, -0.014801025f, 0.018463135f, -0.003173828f, 0.001113892f, 0.000045776f,
+ -0.000152588f, -0.002243042f, -0.000030518f, -0.029281616f, -0.025817871f, -0.150497437f,
+ -0.297210693f, -1.077117920f, 0.841949463f, 0.032379150f, 0.129562378f, -0.017257690f,
+ 0.017349243f, -0.003280640f, 0.001037598f, 0.000030518f, -0.000167847f, -0.002349854f,
+ -0.000549316f, -0.029937744f, -0.030609131f, -0.148773193f, -0.323318481f, -1.089782715f,
+ 0.816864014f, 0.015228271f, 0.125259399f, -0.019531250f, 0.016235352f, -0.003372192f,
+ 0.000961304f, 0.000030518f, -0.000198364f, -0.002456665f, -0.001098633f, -0.030532837f,
+ -0.035552979f, -0.146362305f, -0.349868774f, -1.101211548f, 0.791213989f, -0.001068115f,
+ 0.120697021f, -0.021575928f, 0.015121460f, -0.003417969f, 0.000885010f, 0.000030518f,
+ -0.000213623f, -0.002578735f, -0.001693726f, -0.031005859f, -0.040634155f, -0.143264771f,
+ -0.376800537f, -1.111373901f, 0.765029907f, -0.016510010f, 0.115921021f, -0.023422241f,
+ 0.014022827f, -0.003463745f, 0.000808716f, 0.000030518f, -0.000244141f, -0.002685547f,
+ -0.002334595f, -0.031387329f, -0.045837402f, -0.139450073f, -0.404083252f, -1.120223999f,
+ 0.738372803f, -0.031082153f, 0.110946655f, -0.025085449f, 0.012939453f, -0.003479004f,
+ 0.000747681f, 0.000015259f, -0.000259399f, -0.002792358f, -0.003005981f, -0.031661987f,
+ -0.051132202f, -0.134887695f, -0.431655884f, -1.127746582f, 0.711318970f, -0.044784546f,
+ 0.105819702f, -0.026535034f, 0.011886597f, -0.003479004f, 0.000686646f, 0.000015259f,
+ -0.000289917f, -0.002899170f, -0.003723145f, -0.031814575f, -0.056533813f, -0.129577637f,
+ -0.459472656f, -1.133926392f, 0.683914185f, -0.057617188f, 0.100540161f, -0.027801514f,
+ 0.010848999f, -0.003463745f, 0.000625610f, 0.000015259f, -0.000320435f, -0.002990723f,
+ -0.004486084f, -0.031845093f, -0.061996460f, -0.123474121f, -0.487472534f, -1.138763428f,
+ 0.656219482f, -0.069595337f, 0.095169067f, -0.028884888f, 0.009841919f, -0.003433228f,
+ 0.000579834f, 0.000015259f, -0.000366211f, -0.003082275f, -0.005294800f, -0.031738281f,
+ -0.067520142f, -0.116577148f, -0.515609741f, -1.142211914f, 0.628295898f, -0.080688477f,
+ 0.089706421f, -0.029785156f, 0.008865356f, -0.003387451f, 0.000534058f, 0.000015259f,
+ -0.000396729f, -0.003173828f, -0.006118774f, -0.031478882f, -0.073059082f, -0.108856201f,
+ -0.543823242f, -1.144287109f, 0.600219727f, -0.090927124f, 0.084182739f, -0.030517578f,
+ 0.007919312f, -0.003326416f, 0.000473022f, 0.000015259f };
+
+}
-/*\r
- * 11/19/04 1.0 moved to LGPL.\r
- * 16/11/99 Renamed class, added javadoc, and changed table\r
- * name from String to 3 chars. mdm@techie.com\r
- * 02/15/99 Java Conversion by E.B, javalayer@javazoom.net\r
- *\r
- * 04/19/97 : Adapted from the ISO MPEG Audio Subgroup Software Simulation\r
- * Group's public c source for its MPEG audio decoder. Miscellaneous\r
- * changes by Jeff Tsay (ctsay@pasteur.eecs.berkeley.edu).\r
- *-----------------------------------------------------------------------\r
- * Copyright (c) 1991 MPEG/audio software simulation group, All Rights Reserved\r
- * MPEG/audio coding/decoding software, work in progress \r
- * NOT for public distribution until verified and approved by the \r
- * MPEG/audio committee. For further information, please contact \r
- * Davis Pan, 508-493-2241, e-mail: pan@3d.enet.dec.com \r
- * \r
- * VERSION 4.1 \r
- * changes made since last update: \r
- * date programmers comment \r
- * 27.2.92 F.O.Witte (ITT Intermetall) \r
- * 8/24/93 M. Iwadare Changed for 1 pass decoding. \r
- * 7/14/94 J. Koller useless 'typedef' before huffcodetab removed\r
- *-----------------------------------------------------------------------\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU Library General Public License as published\r
- * by the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU Library General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU Library General Public\r
- * License along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
- *----------------------------------------------------------------------\r
- */\r
-\r
-/**\r
- * Class to implements Huffman decoder.\r
- */\r
-@LATTICE("FIELD<FINAL,FIELD*")\r
-@METHODDEFAULT("OUT<V,V<SH,SH<IN,SH*,THISLOC=IN,GLOBALLOC=IN")\r
-final class huffcodetab {\r
- private static final int MXOFF = 250;\r
- private static final int HTN = 34;\r
-\r
- @LOC("FIELD")\r
- private char tablename0 = ' '; /* string, containing table_description */\r
- @LOC("FIELD")\r
- private char tablename1 = ' '; /* string, containing table_description */\r
- @LOC("FIELD")\r
- private char tablename2 = ' '; /* string, containing table_description */\r
-\r
- @LOC("FIELD")\r
- private int xlen; /* max. x-index+ */\r
- @LOC("FIELD")\r
- private int ylen; /* max. y-index+ */\r
- @LOC("FIELD")\r
- private int linbits; /* number of linbits */\r
- @LOC("FIELD")\r
- private int linmax; /* max number to be stored in linbits */\r
- @LOC("FIELD")\r
- private int ref; /* a positive value indicates a reference */\r
- @LOC("FIELD")\r
- private int[] table = null; /* pointer to array[xlen][ylen] */\r
- @LOC("FIELD")\r
- private int[] hlen = null; /* pointer to array[xlen][ylen] */\r
- @LOC("FIELD")\r
- private int[][] val = null; /* decoder tree */\r
- @LOC("FIELD")\r
- private int treelen; /* length of decoder tree */\r
-\r
- @LOC("FINAL")\r
- private static int ValTab0[][] = { { 0, 0 } // dummy\r
- };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab1[][] = { { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 2, 1 }, { 0, 1 },\r
- { 0, 17 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab2[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 },\r
- { 0, 2 }, { 0, 34 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab3[][] = { { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 1 }, { 2, 1 }, { 0, 17 },\r
- { 2, 1 }, { 0, 16 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 },\r
- { 0, 2 }, { 0, 34 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab4[][] = { { 0, 0 } }; // dummy\r
-\r
- @LOC("FINAL")\r
- private static int ValTab5[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 2, 1 }, { 0, 17 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },\r
- { 0, 18 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 }, { 0, 3 }, { 0, 19 },\r
- { 2, 1 }, { 0, 49 }, { 2, 1 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 0, 51 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab6[][] = { { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 }, { 0, 17 },\r
- { 6, 1 }, { 2, 1 }, { 0, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 6, 1 }, { 2, 1 }, { 0, 18 },\r
- { 2, 1 }, { 0, 2 }, { 0, 34 }, { 4, 1 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 },\r
- { 0, 48 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 2, 1 }, { 0, 3 }, { 0, 51 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab7[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 8, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 0, 33 }, { 18, 1 },\r
- { 6, 1 }, { 2, 1 }, { 0, 18 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 4, 1 }, { 2, 1 }, { 0, 49 },\r
- { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 3 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 0, 4 }, { 10, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 65 }, { 2, 1 }, { 0, 20 }, { 2, 1 }, { 0, 66 },\r
- { 0, 36 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 51 }, { 0, 67 }, { 0, 80 },\r
- { 4, 1 }, { 2, 1 }, { 0, 52 }, { 0, 5 }, { 0, 81 }, { 6, 1 }, { 2, 1 }, { 0, 21 }, { 2, 1 },\r
- { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 53 }, { 4, 1 }, { 2, 1 },\r
- { 0, 83 }, { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 85 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab8[][] = { { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 33 }, { 0, 18 }, { 14, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 34 }, { 4, 1 }, { 2, 1 }, { 0, 48 }, { 0, 3 }, { 2, 1 },\r
- { 0, 49 }, { 0, 19 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 50 }, { 0, 35 },\r
- { 2, 1 }, { 0, 64 }, { 0, 4 }, { 2, 1 }, { 0, 65 }, { 2, 1 }, { 0, 20 }, { 0, 66 },\r
- { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 36 }, { 2, 1 }, { 0, 51 }, { 0, 80 }, { 4, 1 }, { 2, 1 },\r
- { 0, 67 }, { 0, 52 }, { 0, 81 }, { 6, 1 }, { 2, 1 }, { 0, 21 }, { 2, 1 }, { 0, 5 },\r
- { 0, 82 }, { 6, 1 }, { 2, 1 }, { 0, 37 }, { 2, 1 }, { 0, 68 }, { 0, 53 }, { 2, 1 },\r
- { 0, 83 }, { 2, 1 }, { 0, 69 }, { 2, 1 }, { 0, 84 }, { 0, 85 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab9[][] = { { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 }, { 2, 1 },\r
- { 0, 1 }, { 0, 17 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 },\r
- { 0, 18 }, { 2, 1 }, { 0, 2 }, { 0, 34 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 48 },\r
- { 0, 3 }, { 0, 49 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 12, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 51 }, { 2, 1 },\r
- { 0, 66 }, { 0, 36 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 80 },\r
- { 0, 67 }, { 2, 1 }, { 0, 52 }, { 0, 81 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 21 },\r
- { 0, 82 }, { 2, 1 }, { 0, 37 }, { 0, 68 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 5 }, { 0, 84 },\r
- { 0, 83 }, { 2, 1 }, { 0, 53 }, { 2, 1 }, { 0, 69 }, { 0, 85 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab10[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 10, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },\r
- { 0, 18 }, { 28, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 },\r
- { 0, 49 }, { 0, 19 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 3 }, { 0, 50 }, { 2, 1 }, { 0, 35 },\r
- { 0, 64 }, { 4, 1 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 51 },\r
- { 2, 1 }, { 0, 66 }, { 0, 36 }, { 28, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 80 }, { 0, 5 }, { 0, 96 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 12, 1 }, { 6, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 67 }, { 0, 52 }, { 0, 81 }, { 2, 1 }, { 0, 21 }, { 2, 1 },\r
- { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 38 }, { 0, 54 }, { 0, 113 }, { 20, 1 },\r
- { 8, 1 }, { 2, 1 }, { 0, 23 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 0, 6 }, { 6, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 53 }, { 0, 69 }, { 0, 98 }, { 2, 1 }, { 0, 112 }, { 2, 1 },\r
- { 0, 7 }, { 0, 100 }, { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 6, 1 },\r
- { 2, 1 }, { 0, 99 }, { 2, 1 }, { 0, 84 }, { 0, 85 }, { 2, 1 }, { 0, 70 }, { 0, 115 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 55 }, { 0, 101 }, { 2, 1 }, { 0, 86 }, { 0, 116 },\r
- { 6, 1 }, { 2, 1 }, { 0, 71 }, { 2, 1 }, { 0, 102 }, { 0, 117 }, { 4, 1 }, { 2, 1 },\r
- { 0, 87 }, { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab11[][] = { { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 0, 1 },\r
- { 8, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 0, 18 }, { 24, 1 },\r
- { 8, 1 }, { 2, 1 }, { 0, 33 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 }, { 0, 3 }, { 4, 1 },\r
- { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 4, 1 }, { 2, 1 },\r
- { 0, 64 }, { 0, 4 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 30, 1 }, { 16, 1 }, { 10, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 66 }, { 0, 36 }, { 4, 1 }, { 2, 1 }, { 0, 51 }, { 0, 67 },\r
- { 0, 80 }, { 4, 1 }, { 2, 1 }, { 0, 52 }, { 0, 81 }, { 0, 97 }, { 6, 1 }, { 2, 1 },\r
- { 0, 22 }, { 2, 1 }, { 0, 6 }, { 0, 38 }, { 2, 1 }, { 0, 98 }, { 2, 1 }, { 0, 21 }, { 2, 1 },\r
- { 0, 5 }, { 0, 82 }, { 16, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 37 },\r
- { 0, 68 }, { 0, 96 }, { 2, 1 }, { 0, 99 }, { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 112 },\r
- { 0, 23 }, { 0, 113 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 7 }, { 0, 100 },\r
- { 0, 114 }, { 2, 1 }, { 0, 39 }, { 4, 1 }, { 2, 1 }, { 0, 83 }, { 0, 53 }, { 2, 1 },\r
- { 0, 84 }, { 0, 69 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 70 }, { 0, 115 }, { 2, 1 },\r
- { 0, 55 }, { 2, 1 }, { 0, 101 }, { 0, 86 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 85 }, { 0, 87 }, { 0, 116 }, { 2, 1 }, { 0, 71 }, { 0, 102 }, { 4, 1 }, { 2, 1 },\r
- { 0, 117 }, { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab12[][] = { { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 }, { 2, 1 },\r
- { 0, 17 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 16, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 33 }, { 0, 18 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 49 }, { 2, 1 }, { 0, 19 },\r
- { 2, 1 }, { 0, 48 }, { 2, 1 }, { 0, 3 }, { 0, 64 }, { 26, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 50 }, { 0, 35 }, { 2, 1 }, { 0, 65 }, { 0, 51 }, { 10, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 20 }, { 0, 66 }, { 2, 1 }, { 0, 36 }, { 2, 1 }, { 0, 4 }, { 0, 80 }, { 4, 1 }, { 2, 1 },\r
- { 0, 67 }, { 0, 52 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 28, 1 }, { 14, 1 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 2, 1 }, { 0, 83 }, { 0, 53 }, { 4, 1 }, { 2, 1 },\r
- { 0, 96 }, { 0, 22 }, { 0, 97 }, { 4, 1 }, { 2, 1 }, { 0, 98 }, { 0, 38 }, { 6, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 5 }, { 0, 6 }, { 0, 68 }, { 2, 1 }, { 0, 84 }, { 0, 69 }, { 18, 1 },\r
- { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 99 }, { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 112 },\r
- { 0, 7 }, { 0, 113 }, { 4, 1 }, { 2, 1 }, { 0, 23 }, { 0, 100 }, { 2, 1 }, { 0, 70 },\r
- { 0, 114 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 39 }, { 2, 1 }, { 0, 85 }, { 0, 115 },\r
- { 2, 1 }, { 0, 55 }, { 0, 86 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 101 }, { 0, 116 },\r
- { 2, 1 }, { 0, 71 }, { 0, 102 }, { 4, 1 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 },\r
- { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab13[][] = { { 2, 1 }, { 0, 0 }, { 6, 1 }, { 2, 1 }, { 0, 16 }, { 2, 1 },\r
- { 0, 1 }, { 0, 17 }, { 28, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 },\r
- { 0, 33 }, { 0, 18 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 }, { 0, 3 },\r
- { 0, 49 }, { 6, 1 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 4, 1 }, { 2, 1 },\r
- { 0, 64 }, { 0, 4 }, { 0, 65 }, { 70, 1 }, { 28, 1 }, { 14, 1 }, { 6, 1 }, { 2, 1 },\r
- { 0, 20 }, { 2, 1 }, { 0, 51 }, { 0, 66 }, { 4, 1 }, { 2, 1 }, { 0, 36 }, { 0, 80 },\r
- { 2, 1 }, { 0, 67 }, { 0, 52 }, { 4, 1 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 4, 1 }, { 2, 1 },\r
- { 0, 5 }, { 0, 82 }, { 2, 1 }, { 0, 37 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 14, 1 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 96 }, { 0, 6 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 4, 1 },\r
- { 2, 1 }, { 0, 128 }, { 0, 8 }, { 0, 129 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 53 }, { 0, 98 }, { 2, 1 }, { 0, 38 }, { 0, 84 }, { 4, 1 }, { 2, 1 }, { 0, 69 },\r
- { 0, 99 }, { 2, 1 }, { 0, 54 }, { 0, 112 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 7 },\r
- { 0, 85 }, { 0, 113 }, { 2, 1 }, { 0, 23 }, { 2, 1 }, { 0, 39 }, { 0, 55 }, { 72, 1 },\r
- { 24, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 24 }, { 0, 130 }, { 2, 1 }, { 0, 40 },\r
- { 4, 1 }, { 2, 1 }, { 0, 100 }, { 0, 70 }, { 0, 114 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 132 }, { 0, 72 }, { 2, 1 }, { 0, 144 }, { 0, 9 }, { 2, 1 }, { 0, 145 }, { 0, 25 },\r
- { 24, 1 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 115 }, { 0, 101 }, { 2, 1 },\r
- { 0, 86 }, { 0, 116 }, { 4, 1 }, { 2, 1 }, { 0, 71 }, { 0, 102 }, { 0, 131 }, { 6, 1 },\r
- { 2, 1 }, { 0, 56 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 146 }, { 0, 41 },\r
- { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 103 }, { 0, 133 }, { 2, 1 }, { 0, 88 },\r
- { 0, 57 }, { 2, 1 }, { 0, 147 }, { 2, 1 }, { 0, 73 }, { 0, 134 }, { 6, 1 }, { 2, 1 },\r
- { 0, 160 }, { 2, 1 }, { 0, 104 }, { 0, 10 }, { 2, 1 }, { 0, 161 }, { 0, 26 }, { 68, 1 },\r
- { 24, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 4, 1 }, { 2, 1 },\r
- { 0, 149 }, { 0, 89 }, { 2, 1 }, { 0, 163 }, { 0, 58 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 74 }, { 0, 150 }, { 2, 1 }, { 0, 176 }, { 0, 11 }, { 2, 1 }, { 0, 177 }, { 0, 27 },\r
- { 20, 1 }, { 8, 1 }, { 2, 1 }, { 0, 178 }, { 4, 1 }, { 2, 1 }, { 0, 118 }, { 0, 119 },\r
- { 0, 148 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 135 }, { 0, 120 }, { 0, 164 }, { 4, 1 },\r
- { 2, 1 }, { 0, 105 }, { 0, 165 }, { 0, 43 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 90 }, { 0, 136 }, { 0, 179 }, { 2, 1 }, { 0, 59 }, { 2, 1 }, { 0, 121 }, { 0, 166 },\r
- { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 106 }, { 0, 180 }, { 0, 192 }, { 4, 1 }, { 2, 1 },\r
- { 0, 12 }, { 0, 152 }, { 0, 193 }, { 60, 1 }, { 22, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 },\r
- { 0, 28 }, { 2, 1 }, { 0, 137 }, { 0, 181 }, { 2, 1 }, { 0, 91 }, { 0, 194 }, { 4, 1 },\r
- { 2, 1 }, { 0, 44 }, { 0, 60 }, { 4, 1 }, { 2, 1 }, { 0, 182 }, { 0, 107 }, { 2, 1 },\r
- { 0, 196 }, { 0, 76 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 168 }, { 0, 138 },\r
- { 2, 1 }, { 0, 208 }, { 0, 13 }, { 2, 1 }, { 0, 209 }, { 2, 1 }, { 0, 75 }, { 2, 1 },\r
- { 0, 151 }, { 0, 167 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 195 }, { 2, 1 }, { 0, 122 },\r
- { 0, 153 }, { 4, 1 }, { 2, 1 }, { 0, 197 }, { 0, 92 }, { 0, 183 }, { 4, 1 }, { 2, 1 },\r
- { 0, 29 }, { 0, 210 }, { 2, 1 }, { 0, 45 }, { 2, 1 }, { 0, 123 }, { 0, 211 }, { 52, 1 },\r
- { 28, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 4, 1 }, { 2, 1 },\r
- { 0, 108 }, { 0, 169 }, { 2, 1 }, { 0, 154 }, { 0, 212 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 184 }, { 0, 139 }, { 2, 1 }, { 0, 77 }, { 0, 199 }, { 4, 1 }, { 2, 1 }, { 0, 124 },\r
- { 0, 213 }, { 2, 1 }, { 0, 93 }, { 0, 224 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 225 },\r
- { 0, 30 }, { 4, 1 }, { 2, 1 }, { 0, 14 }, { 0, 46 }, { 0, 226 }, { 8, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 227 }, { 0, 109 }, { 2, 1 }, { 0, 140 }, { 0, 228 }, { 4, 1 }, { 2, 1 },\r
- { 0, 229 }, { 0, 186 }, { 0, 240 }, { 38, 1 }, { 16, 1 }, { 4, 1 }, { 2, 1 }, { 0, 241 },\r
- { 0, 31 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 170 }, { 0, 155 }, { 0, 185 }, { 2, 1 },\r
- { 0, 62 }, { 2, 1 }, { 0, 214 }, { 0, 200 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 78 },\r
- { 2, 1 }, { 0, 215 }, { 0, 125 }, { 2, 1 }, { 0, 171 }, { 2, 1 }, { 0, 94 }, { 0, 201 },\r
- { 6, 1 }, { 2, 1 }, { 0, 15 }, { 2, 1 }, { 0, 156 }, { 0, 110 }, { 2, 1 }, { 0, 242 },\r
- { 0, 47 }, { 32, 1 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 216 }, { 0, 141 },\r
- { 0, 63 }, { 6, 1 }, { 2, 1 }, { 0, 243 }, { 2, 1 }, { 0, 230 }, { 0, 202 }, { 2, 1 },\r
- { 0, 244 }, { 0, 79 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 187 }, { 0, 172 }, { 2, 1 },\r
- { 0, 231 }, { 0, 245 }, { 4, 1 }, { 2, 1 }, { 0, 217 }, { 0, 157 }, { 2, 1 }, { 0, 95 },\r
- { 0, 232 }, { 30, 1 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 111 }, { 2, 1 }, { 0, 246 },\r
- { 0, 203 }, { 4, 1 }, { 2, 1 }, { 0, 188 }, { 0, 173 }, { 0, 218 }, { 8, 1 }, { 2, 1 },\r
- { 0, 247 }, { 4, 1 }, { 2, 1 }, { 0, 126 }, { 0, 127 }, { 0, 142 }, { 6, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 158 }, { 0, 174 }, { 0, 204 }, { 2, 1 }, { 0, 248 }, { 0, 143 }, { 18, 1 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 219 }, { 0, 189 }, { 2, 1 }, { 0, 234 }, { 0, 249 },\r
- { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 235 }, { 2, 1 }, { 0, 190 }, { 2, 1 }, { 0, 205 },\r
- { 0, 250 }, { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 221 }, { 0, 236 }, { 6, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 233 }, { 0, 175 }, { 0, 220 }, { 2, 1 }, { 0, 206 }, { 0, 251 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 191 }, { 0, 222 }, { 2, 1 }, { 0, 207 }, { 0, 238 }, { 4, 1 },\r
- { 2, 1 }, { 0, 223 }, { 0, 239 }, { 2, 1 }, { 0, 255 }, { 2, 1 }, { 0, 237 }, { 2, 1 },\r
- { 0, 253 }, { 2, 1 }, { 0, 252 }, { 0, 254 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab14[][] = { { 0, 0 } // dummy\r
- };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab15[][] = { { 16, 1 }, { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 },\r
- { 0, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },\r
- { 0, 18 }, { 50, 1 }, { 16, 1 }, { 6, 1 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 },\r
- { 0, 49 }, { 6, 1 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 3 }, { 0, 64 }, { 2, 1 }, { 0, 50 },\r
- { 0, 35 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 20 }, { 0, 65 }, { 4, 1 },\r
- { 2, 1 }, { 0, 51 }, { 0, 66 }, { 2, 1 }, { 0, 36 }, { 0, 67 }, { 10, 1 }, { 6, 1 },\r
- { 2, 1 }, { 0, 52 }, { 2, 1 }, { 0, 80 }, { 0, 5 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 4, 1 },\r
- { 2, 1 }, { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 0, 97 },\r
- { 90, 1 }, { 36, 1 }, { 18, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 53 }, { 2, 1 },\r
- { 0, 96 }, { 0, 6 }, { 2, 1 }, { 0, 22 }, { 0, 98 }, { 4, 1 }, { 2, 1 }, { 0, 38 },\r
- { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 99 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 54 },\r
- { 2, 1 }, { 0, 112 }, { 0, 7 }, { 2, 1 }, { 0, 113 }, { 0, 85 }, { 4, 1 }, { 2, 1 },\r
- { 0, 23 }, { 0, 100 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 24, 1 }, { 16, 1 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 70 }, { 0, 115 }, { 2, 1 }, { 0, 55 }, { 0, 101 }, { 4, 1 },\r
- { 2, 1 }, { 0, 86 }, { 0, 128 }, { 2, 1 }, { 0, 8 }, { 0, 116 }, { 4, 1 }, { 2, 1 },\r
- { 0, 129 }, { 0, 24 }, { 2, 1 }, { 0, 130 }, { 0, 40 }, { 16, 1 }, { 8, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 71 }, { 0, 102 }, { 2, 1 }, { 0, 131 }, { 0, 56 }, { 4, 1 }, { 2, 1 },\r
- { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 132 }, { 0, 72 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 144 }, { 0, 25 }, { 0, 145 }, { 4, 1 }, { 2, 1 }, { 0, 146 }, { 0, 118 }, { 2, 1 },\r
- { 0, 103 }, { 0, 41 }, { 92, 1 }, { 36, 1 }, { 18, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 133 }, { 0, 88 }, { 4, 1 }, { 2, 1 }, { 0, 9 }, { 0, 119 }, { 0, 147 }, { 4, 1 },\r
- { 2, 1 }, { 0, 57 }, { 0, 148 }, { 2, 1 }, { 0, 73 }, { 0, 134 }, { 10, 1 }, { 6, 1 },\r
- { 2, 1 }, { 0, 104 }, { 2, 1 }, { 0, 160 }, { 0, 10 }, { 2, 1 }, { 0, 161 }, { 0, 26 },\r
- { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 2, 1 }, { 0, 149 }, { 0, 89 }, { 26, 1 },\r
- { 14, 1 }, { 6, 1 }, { 2, 1 }, { 0, 163 }, { 2, 1 }, { 0, 58 }, { 0, 135 }, { 4, 1 },\r
- { 2, 1 }, { 0, 120 }, { 0, 164 }, { 2, 1 }, { 0, 74 }, { 0, 150 }, { 6, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 105 }, { 0, 176 }, { 0, 177 }, { 4, 1 }, { 2, 1 }, { 0, 27 }, { 0, 165 },\r
- { 0, 178 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 90 }, { 0, 43 }, { 2, 1 },\r
- { 0, 136 }, { 0, 151 }, { 2, 1 }, { 0, 179 }, { 2, 1 }, { 0, 121 }, { 0, 59 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 106 }, { 0, 180 }, { 2, 1 }, { 0, 75 }, { 0, 193 }, { 4, 1 },\r
- { 2, 1 }, { 0, 152 }, { 0, 137 }, { 2, 1 }, { 0, 28 }, { 0, 181 }, { 80, 1 }, { 34, 1 },\r
- { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 91 }, { 0, 44 }, { 0, 194 }, { 6, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 11 }, { 0, 192 }, { 0, 166 }, { 2, 1 }, { 0, 167 }, { 0, 122 },\r
- { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 195 }, { 0, 60 }, { 4, 1 }, { 2, 1 }, { 0, 12 },\r
- { 0, 153 }, { 0, 182 }, { 4, 1 }, { 2, 1 }, { 0, 107 }, { 0, 196 }, { 2, 1 }, { 0, 76 },\r
- { 0, 168 }, { 20, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 138 }, { 0, 197 }, { 4, 1 },\r
- { 2, 1 }, { 0, 208 }, { 0, 92 }, { 0, 209 }, { 4, 1 }, { 2, 1 }, { 0, 183 }, { 0, 123 },\r
- { 2, 1 }, { 0, 29 }, { 2, 1 }, { 0, 13 }, { 0, 45 }, { 12, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 210 }, { 0, 211 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 2, 1 }, { 0, 108 },\r
- { 0, 169 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 154 }, { 0, 184 }, { 0, 212 }, { 4, 1 },\r
- { 2, 1 }, { 0, 139 }, { 0, 77 }, { 2, 1 }, { 0, 199 }, { 0, 124 }, { 68, 1 }, { 34, 1 },\r
- { 18, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 213 }, { 0, 93 }, { 4, 1 }, { 2, 1 },\r
- { 0, 224 }, { 0, 14 }, { 0, 225 }, { 4, 1 }, { 2, 1 }, { 0, 30 }, { 0, 226 }, { 2, 1 },\r
- { 0, 170 }, { 0, 46 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 185 }, { 0, 155 }, { 2, 1 },\r
- { 0, 227 }, { 0, 214 }, { 4, 1 }, { 2, 1 }, { 0, 109 }, { 0, 62 }, { 2, 1 }, { 0, 200 },\r
- { 0, 140 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 228 }, { 0, 78 }, { 2, 1 },\r
- { 0, 215 }, { 0, 125 }, { 4, 1 }, { 2, 1 }, { 0, 229 }, { 0, 186 }, { 2, 1 }, { 0, 171 },\r
- { 0, 94 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 201 }, { 0, 156 }, { 2, 1 }, { 0, 241 },\r
- { 0, 31 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 240 }, { 0, 110 }, { 0, 242 }, { 2, 1 },\r
- { 0, 47 }, { 0, 230 }, { 38, 1 }, { 18, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 216 },\r
- { 0, 243 }, { 2, 1 }, { 0, 63 }, { 0, 244 }, { 6, 1 }, { 2, 1 }, { 0, 79 }, { 2, 1 },\r
- { 0, 141 }, { 0, 217 }, { 2, 1 }, { 0, 187 }, { 0, 202 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 172 }, { 0, 231 }, { 2, 1 }, { 0, 126 }, { 0, 245 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 157 }, { 0, 95 }, { 2, 1 }, { 0, 232 }, { 0, 142 }, { 2, 1 }, { 0, 246 }, { 0, 203 },\r
- { 34, 1 }, { 18, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 15 }, { 0, 174 },\r
- { 0, 111 }, { 2, 1 }, { 0, 188 }, { 0, 218 }, { 4, 1 }, { 2, 1 }, { 0, 173 }, { 0, 247 },\r
- { 2, 1 }, { 0, 127 }, { 0, 233 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 158 }, { 0, 204 },\r
- { 2, 1 }, { 0, 248 }, { 0, 143 }, { 4, 1 }, { 2, 1 }, { 0, 219 }, { 0, 189 }, { 2, 1 },\r
- { 0, 234 }, { 0, 249 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 220 },\r
- { 2, 1 }, { 0, 205 }, { 0, 235 }, { 4, 1 }, { 2, 1 }, { 0, 190 }, { 0, 250 }, { 2, 1 },\r
- { 0, 175 }, { 0, 221 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 236 }, { 0, 206 },\r
- { 0, 251 }, { 4, 1 }, { 2, 1 }, { 0, 191 }, { 0, 237 }, { 2, 1 }, { 0, 222 }, { 0, 252 },\r
- { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 207 }, { 0, 253 }, { 0, 238 }, { 4, 1 }, { 2, 1 },\r
- { 0, 223 }, { 0, 254 }, { 2, 1 }, { 0, 239 }, { 0, 255 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab16[][] = { { 2, 1 }, { 0, 0 }, { 6, 1 }, { 2, 1 }, { 0, 16 }, { 2, 1 },\r
- { 0, 1 }, { 0, 17 }, { 42, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 },\r
- { 0, 33 }, { 0, 18 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 },\r
- { 0, 3 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 50 },\r
- { 0, 35 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 4 }, { 0, 65 }, { 6, 1 }, { 2, 1 }, { 0, 20 },\r
- { 2, 1 }, { 0, 51 }, { 0, 66 }, { 4, 1 }, { 2, 1 }, { 0, 36 }, { 0, 80 }, { 2, 1 },\r
- { 0, 67 }, { 0, 52 }, { 138, 1 }, { 40, 1 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 5 }, { 0, 21 }, { 0, 81 }, { 4, 1 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 },\r
- { 0, 68 }, { 0, 53 }, { 0, 83 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 96 },\r
- { 0, 6 }, { 0, 97 }, { 2, 1 }, { 0, 22 }, { 0, 98 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 38 },\r
- { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 99 }, { 4, 1 }, { 2, 1 }, { 0, 54 }, { 0, 112 },\r
- { 0, 113 }, { 40, 1 }, { 18, 1 }, { 8, 1 }, { 2, 1 }, { 0, 23 }, { 2, 1 }, { 0, 7 },\r
- { 2, 1 }, { 0, 85 }, { 0, 100 }, { 4, 1 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 4, 1 },\r
- { 2, 1 }, { 0, 70 }, { 0, 101 }, { 0, 115 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 55 },\r
- { 2, 1 }, { 0, 86 }, { 0, 8 }, { 2, 1 }, { 0, 128 }, { 0, 129 }, { 6, 1 }, { 2, 1 },\r
- { 0, 24 }, { 2, 1 }, { 0, 116 }, { 0, 71 }, { 2, 1 }, { 0, 130 }, { 2, 1 }, { 0, 40 },\r
- { 0, 102 }, { 24, 1 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 131 }, { 0, 56 },\r
- { 2, 1 }, { 0, 117 }, { 0, 132 }, { 4, 1 }, { 2, 1 }, { 0, 72 }, { 0, 144 }, { 0, 145 },\r
- { 6, 1 }, { 2, 1 }, { 0, 25 }, { 2, 1 }, { 0, 9 }, { 0, 118 }, { 2, 1 }, { 0, 146 },\r
- { 0, 41 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 133 }, { 0, 88 }, { 2, 1 },\r
- { 0, 147 }, { 0, 57 }, { 4, 1 }, { 2, 1 }, { 0, 160 }, { 0, 10 }, { 0, 26 }, { 8, 1 },\r
- { 2, 1 }, { 0, 162 }, { 2, 1 }, { 0, 103 }, { 2, 1 }, { 0, 87 }, { 0, 73 }, { 6, 1 },\r
- { 2, 1 }, { 0, 148 }, { 2, 1 }, { 0, 119 }, { 0, 134 }, { 2, 1 }, { 0, 161 }, { 2, 1 },\r
- { 0, 104 }, { 0, 149 }, { 220, 1 }, { 126, 1 }, { 50, 1 }, { 26, 1 }, { 12, 1 }, { 6, 1 },\r
- { 2, 1 }, { 0, 42 }, { 2, 1 }, { 0, 89 }, { 0, 58 }, { 2, 1 }, { 0, 163 }, { 2, 1 },\r
- { 0, 135 }, { 0, 120 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 164 }, { 0, 74 }, { 2, 1 },\r
- { 0, 150 }, { 0, 105 }, { 4, 1 }, { 2, 1 }, { 0, 176 }, { 0, 11 }, { 0, 177 }, { 10, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 27 }, { 0, 178 }, { 2, 1 }, { 0, 43 }, { 2, 1 }, { 0, 165 },\r
- { 0, 90 }, { 6, 1 }, { 2, 1 }, { 0, 179 }, { 2, 1 }, { 0, 166 }, { 0, 106 }, { 4, 1 },\r
- { 2, 1 }, { 0, 180 }, { 0, 75 }, { 2, 1 }, { 0, 12 }, { 0, 193 }, { 30, 1 }, { 14, 1 },\r
- { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 181 }, { 0, 194 }, { 0, 44 }, { 4, 1 }, { 2, 1 },\r
- { 0, 167 }, { 0, 195 }, { 2, 1 }, { 0, 107 }, { 0, 196 }, { 8, 1 }, { 2, 1 }, { 0, 29 },\r
- { 4, 1 }, { 2, 1 }, { 0, 136 }, { 0, 151 }, { 0, 59 }, { 4, 1 }, { 2, 1 }, { 0, 209 },\r
- { 0, 210 }, { 2, 1 }, { 0, 45 }, { 0, 211 }, { 18, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 30 }, { 0, 46 }, { 0, 226 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 121 }, { 0, 152 },\r
- { 0, 192 }, { 2, 1 }, { 0, 28 }, { 2, 1 }, { 0, 137 }, { 0, 91 }, { 14, 1 }, { 6, 1 },\r
- { 2, 1 }, { 0, 60 }, { 2, 1 }, { 0, 122 }, { 0, 182 }, { 4, 1 }, { 2, 1 }, { 0, 76 },\r
- { 0, 153 }, { 2, 1 }, { 0, 168 }, { 0, 138 }, { 6, 1 }, { 2, 1 }, { 0, 13 }, { 2, 1 },\r
- { 0, 197 }, { 0, 92 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 2, 1 }, { 0, 108 },\r
- { 0, 154 }, { 88, 1 }, { 86, 1 }, { 36, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 139 }, { 0, 77 }, { 2, 1 }, { 0, 199 }, { 0, 124 }, { 4, 1 }, { 2, 1 }, { 0, 213 },\r
- { 0, 93 }, { 2, 1 }, { 0, 224 }, { 0, 14 }, { 8, 1 }, { 2, 1 }, { 0, 227 }, { 4, 1 },\r
- { 2, 1 }, { 0, 208 }, { 0, 183 }, { 0, 123 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 169 },\r
- { 0, 184 }, { 0, 212 }, { 2, 1 }, { 0, 225 }, { 2, 1 }, { 0, 170 }, { 0, 185 }, { 24, 1 },\r
- { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 155 }, { 0, 214 }, { 0, 109 }, { 2, 1 },\r
- { 0, 62 }, { 0, 200 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 140 }, { 0, 228 }, { 0, 78 },\r
- { 4, 1 }, { 2, 1 }, { 0, 215 }, { 0, 229 }, { 2, 1 }, { 0, 186 }, { 0, 171 }, { 12, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 156 }, { 0, 230 }, { 4, 1 }, { 2, 1 }, { 0, 110 }, { 0, 216 },\r
- { 2, 1 }, { 0, 141 }, { 0, 187 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 231 }, { 0, 157 },\r
- { 2, 1 }, { 0, 232 }, { 0, 142 }, { 4, 1 }, { 2, 1 }, { 0, 203 }, { 0, 188 }, { 0, 158 },\r
- { 0, 241 }, { 2, 1 }, { 0, 31 }, { 2, 1 }, { 0, 15 }, { 0, 47 }, { 66, 1 }, { 56, 1 },\r
- { 2, 1 }, { 0, 242 }, { 52, 1 }, { 50, 1 }, { 20, 1 }, { 8, 1 }, { 2, 1 }, { 0, 189 },\r
- { 2, 1 }, { 0, 94 }, { 2, 1 }, { 0, 125 }, { 0, 201 }, { 6, 1 }, { 2, 1 }, { 0, 202 },\r
- { 2, 1 }, { 0, 172 }, { 0, 126 }, { 4, 1 }, { 2, 1 }, { 0, 218 }, { 0, 173 }, { 0, 204 },\r
- { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 174 }, { 2, 1 }, { 0, 219 }, { 0, 220 }, { 2, 1 },\r
- { 0, 205 }, { 0, 190 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 235 }, { 0, 237 }, { 0, 238 },\r
- { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 217 }, { 0, 234 }, { 0, 233 }, { 2, 1 }, { 0, 222 },\r
- { 4, 1 }, { 2, 1 }, { 0, 221 }, { 0, 236 }, { 0, 206 }, { 0, 63 }, { 0, 240 }, { 4, 1 },\r
- { 2, 1 }, { 0, 243 }, { 0, 244 }, { 2, 1 }, { 0, 79 }, { 2, 1 }, { 0, 245 }, { 0, 95 },\r
- { 10, 1 }, { 2, 1 }, { 0, 255 }, { 4, 1 }, { 2, 1 }, { 0, 246 }, { 0, 111 }, { 2, 1 },\r
- { 0, 247 }, { 0, 127 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 143 }, { 2, 1 }, { 0, 248 },\r
- { 0, 249 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 250 }, { 0, 175 }, { 8, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 251 }, { 0, 191 }, { 2, 1 }, { 0, 252 }, { 0, 207 }, { 4, 1 }, { 2, 1 },\r
- { 0, 253 }, { 0, 223 }, { 2, 1 }, { 0, 254 }, { 0, 239 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab24[][] = { { 60, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 },\r
- { 2, 1 }, { 0, 1 }, { 0, 17 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 },\r
- { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 }, { 0, 3 },\r
- { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 50 },\r
- { 0, 35 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 4 }, { 0, 65 }, { 8, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 20 }, { 0, 51 }, { 2, 1 }, { 0, 66 }, { 0, 36 }, { 6, 1 }, { 4, 1 }, { 2, 1 },\r
- { 0, 67 }, { 0, 52 }, { 0, 81 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 80 }, { 0, 5 },\r
- { 0, 21 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 250, 1 }, { 98, 1 }, { 34, 1 }, { 18, 1 },\r
- { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 2, 1 }, { 0, 53 }, { 2, 1 },\r
- { 0, 96 }, { 0, 6 }, { 4, 1 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 2, 1 }, { 0, 98 },\r
- { 0, 38 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 84 }, { 0, 69 }, { 2, 1 }, { 0, 99 },\r
- { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 113 }, { 0, 85 }, { 2, 1 }, { 0, 100 }, { 0, 70 },\r
- { 32, 1 }, { 14, 1 }, { 6, 1 }, { 2, 1 }, { 0, 114 }, { 2, 1 }, { 0, 39 }, { 0, 55 },\r
- { 2, 1 }, { 0, 115 }, { 4, 1 }, { 2, 1 }, { 0, 112 }, { 0, 7 }, { 0, 23 }, { 10, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 101 }, { 0, 86 }, { 4, 1 }, { 2, 1 }, { 0, 128 }, { 0, 8 },\r
- { 0, 129 }, { 4, 1 }, { 2, 1 }, { 0, 116 }, { 0, 71 }, { 2, 1 }, { 0, 24 }, { 0, 130 },\r
- { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 40 }, { 0, 102 }, { 2, 1 }, { 0, 131 },\r
- { 0, 56 }, { 4, 1 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 132 }, { 0, 72 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 145 }, { 0, 25 }, { 2, 1 }, { 0, 146 }, { 0, 118 },\r
- { 4, 1 }, { 2, 1 }, { 0, 103 }, { 0, 41 }, { 2, 1 }, { 0, 133 }, { 0, 88 }, { 92, 1 },\r
- { 34, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 147 }, { 0, 57 }, { 2, 1 },\r
- { 0, 148 }, { 0, 73 }, { 4, 1 }, { 2, 1 }, { 0, 119 }, { 0, 134 }, { 2, 1 }, { 0, 104 },\r
- { 0, 161 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 2, 1 }, { 0, 149 },\r
- { 0, 89 }, { 4, 1 }, { 2, 1 }, { 0, 163 }, { 0, 58 }, { 2, 1 }, { 0, 135 }, { 2, 1 },\r
- { 0, 120 }, { 0, 74 }, { 22, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 164 }, { 0, 150 },\r
- { 4, 1 }, { 2, 1 }, { 0, 105 }, { 0, 177 }, { 2, 1 }, { 0, 27 }, { 0, 165 }, { 6, 1 },\r
- { 2, 1 }, { 0, 178 }, { 2, 1 }, { 0, 90 }, { 0, 43 }, { 2, 1 }, { 0, 136 }, { 0, 179 },\r
- { 16, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 144 }, { 2, 1 }, { 0, 9 }, { 0, 160 },\r
- { 2, 1 }, { 0, 151 }, { 0, 121 }, { 4, 1 }, { 2, 1 }, { 0, 166 }, { 0, 106 }, { 0, 180 },\r
- { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 26 }, { 2, 1 }, { 0, 10 }, { 0, 176 }, { 2, 1 },\r
- { 0, 59 }, { 2, 1 }, { 0, 11 }, { 0, 192 }, { 4, 1 }, { 2, 1 }, { 0, 75 }, { 0, 193 },\r
- { 2, 1 }, { 0, 152 }, { 0, 137 }, { 67, 1 }, { 34, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 28 }, { 0, 181 }, { 2, 1 }, { 0, 91 }, { 0, 194 }, { 4, 1 }, { 2, 1 },\r
- { 0, 44 }, { 0, 167 }, { 2, 1 }, { 0, 122 }, { 0, 195 }, { 10, 1 }, { 6, 1 }, { 2, 1 },\r
- { 0, 60 }, { 2, 1 }, { 0, 12 }, { 0, 208 }, { 2, 1 }, { 0, 182 }, { 0, 107 }, { 4, 1 },\r
- { 2, 1 }, { 0, 196 }, { 0, 76 }, { 2, 1 }, { 0, 153 }, { 0, 168 }, { 16, 1 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 138 }, { 0, 197 }, { 2, 1 }, { 0, 92 }, { 0, 209 }, { 4, 1 },\r
- { 2, 1 }, { 0, 183 }, { 0, 123 }, { 2, 1 }, { 0, 29 }, { 0, 210 }, { 9, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 45 }, { 0, 211 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 85, 250 }, { 4, 1 },\r
- { 2, 1 }, { 0, 108 }, { 0, 169 }, { 2, 1 }, { 0, 154 }, { 0, 212 }, { 32, 1 }, { 16, 1 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 184 }, { 0, 139 }, { 2, 1 }, { 0, 77 }, { 0, 199 },\r
- { 4, 1 }, { 2, 1 }, { 0, 124 }, { 0, 213 }, { 2, 1 }, { 0, 93 }, { 0, 225 }, { 8, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 30 }, { 0, 226 }, { 2, 1 }, { 0, 170 }, { 0, 185 }, { 4, 1 },\r
- { 2, 1 }, { 0, 155 }, { 0, 227 }, { 2, 1 }, { 0, 214 }, { 0, 109 }, { 20, 1 }, { 10, 1 },\r
- { 6, 1 }, { 2, 1 }, { 0, 62 }, { 2, 1 }, { 0, 46 }, { 0, 78 }, { 2, 1 }, { 0, 200 },\r
- { 0, 140 }, { 4, 1 }, { 2, 1 }, { 0, 228 }, { 0, 215 }, { 4, 1 }, { 2, 1 }, { 0, 125 },\r
- { 0, 171 }, { 0, 229 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 186 }, { 0, 94 }, { 2, 1 },\r
- { 0, 201 }, { 2, 1 }, { 0, 156 }, { 0, 110 }, { 8, 1 }, { 2, 1 }, { 0, 230 }, { 2, 1 },\r
- { 0, 13 }, { 2, 1 }, { 0, 224 }, { 0, 14 }, { 4, 1 }, { 2, 1 }, { 0, 216 }, { 0, 141 },\r
- { 2, 1 }, { 0, 187 }, { 0, 202 }, { 74, 1 }, { 2, 1 }, { 0, 255 }, { 64, 1 }, { 58, 1 },\r
- { 32, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 172 }, { 0, 231 }, { 2, 1 },\r
- { 0, 126 }, { 0, 217 }, { 4, 1 }, { 2, 1 }, { 0, 157 }, { 0, 232 }, { 2, 1 }, { 0, 142 },\r
- { 0, 203 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 188 }, { 0, 218 }, { 2, 1 }, { 0, 173 },\r
- { 0, 233 }, { 4, 1 }, { 2, 1 }, { 0, 158 }, { 0, 204 }, { 2, 1 }, { 0, 219 }, { 0, 189 },\r
- { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 234 }, { 0, 174 }, { 2, 1 }, { 0, 220 },\r
- { 0, 205 }, { 4, 1 }, { 2, 1 }, { 0, 235 }, { 0, 190 }, { 2, 1 }, { 0, 221 }, { 0, 236 },\r
- { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 206 }, { 0, 237 }, { 2, 1 }, { 0, 222 }, { 0, 238 },\r
- { 0, 15 }, { 4, 1 }, { 2, 1 }, { 0, 240 }, { 0, 31 }, { 0, 241 }, { 4, 1 }, { 2, 1 },\r
- { 0, 242 }, { 0, 47 }, { 2, 1 }, { 0, 243 }, { 0, 63 }, { 18, 1 }, { 8, 1 }, { 4, 1 },\r
- { 2, 1 }, { 0, 244 }, { 0, 79 }, { 2, 1 }, { 0, 245 }, { 0, 95 }, { 4, 1 }, { 2, 1 },\r
- { 0, 246 }, { 0, 111 }, { 2, 1 }, { 0, 247 }, { 2, 1 }, { 0, 127 }, { 0, 143 }, { 10, 1 },\r
- { 4, 1 }, { 2, 1 }, { 0, 248 }, { 0, 249 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 175 },\r
- { 0, 250 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 251 }, { 0, 191 }, { 2, 1 }, { 0, 252 },\r
- { 0, 207 }, { 4, 1 }, { 2, 1 }, { 0, 253 }, { 0, 223 }, { 2, 1 }, { 0, 254 }, { 0, 239 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab32[][] = { { 2, 1 }, { 0, 0 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 8 },\r
- { 0, 4 }, { 2, 1 }, { 0, 1 }, { 0, 2 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 12 }, { 0, 10 },\r
- { 2, 1 }, { 0, 3 }, { 0, 6 }, { 6, 1 }, { 2, 1 }, { 0, 9 }, { 2, 1 }, { 0, 5 }, { 0, 7 },\r
- { 4, 1 }, { 2, 1 }, { 0, 14 }, { 0, 13 }, { 2, 1 }, { 0, 15 }, { 0, 11 }, };\r
-\r
- @LOC("FINAL")\r
- private static int ValTab33[][] = { { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 1 },\r
- { 2, 1 }, { 0, 2 }, { 0, 3 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 5 }, { 2, 1 }, { 0, 6 },\r
- { 0, 7 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 8 }, { 0, 9 }, { 2, 1 }, { 0, 10 }, { 0, 11 },\r
- { 4, 1 }, { 2, 1 }, { 0, 12 }, { 0, 13 }, { 2, 1 }, { 0, 14 }, { 0, 15 }, };\r
-\r
- @LOC("FINAL")\r
- public static huffcodetab[] ht = null; /* Simulate extern struct */\r
-\r
- @LOC("FINAL")\r
- private static int[] bitbuf = new int[32];\r
-\r
- /**\r
- * Big Constructor : Computes all Huffman Tables.\r
- */\r
- private huffcodetab(@LOC("V") String S, @LOC("V") int XLEN, @LOC("V") int YLEN,\r
- @LOC("V") int LINBITS, @LOC("V") int LINMAX, @LOC("V") int REF,\r
- @DELEGATE @LOC("V") int[] TABLE, @DELEGATE @LOC("V") int[] HLEN,\r
- @DELEGATE @LOC("V") int[][] VAL, @LOC("V") int TREELEN) {\r
- tablename0 = S.charAt(0);\r
- tablename1 = S.charAt(1);\r
- tablename2 = S.charAt(2);\r
- xlen = XLEN;\r
- ylen = YLEN;\r
- linbits = LINBITS;\r
- linmax = LINMAX;\r
- ref = REF;\r
- table = TABLE;\r
- TABLE = null;\r
- hlen = HLEN;\r
- HLEN = null;\r
- val = VAL;\r
- VAL = null;\r
- treelen = TREELEN;\r
- }\r
-\r
- /**\r
- * Do the huffman-decoding. note! for counta,countb -the 4 bit value is\r
- * returned in y, discard x.\r
- */\r
-// @LATTICE("OUT<V1, THIS<V1,V1<V,V<IN,IN<C,C*,V*,THISLOC=THIS,GLOBALLOC=IN")\r
- @LATTICE("OUT<THIS, THIS<V1,V1<V,V<IN,IN<C,C*,V*,THISLOC=THIS,GLOBALLOC=IN")\r
- @RETURNLOC("OUT,BitReserve.BIT")\r
- public static int huffman_decoder(@LOC("THIS,LayerIIIDecoder.SI2") int htIdx,\r
- @LOC("OUT,BitReserve.BIT") int[] x, @LOC("OUT,BitReserve.BIT") int[] y,\r
- @LOC("OUT,BitReserve.BIT") int[] v, @LOC("OUT,BitReserve.BIT") int[] w,\r
- @LOC("THIS,LayerIIIDecoder.BR") BitReserve br) {\r
- // array of all huffcodtable headers\r
- // 0..31 Huffman code table 0..31\r
- // 32,33 count1-tables\r
-\r
- @LOC("C") int dmask = 1 << ((4 * 8) - 1);\r
- @LOC("THIS,LayerIIIDecoder.SI1") int hs = 4 * 8;\r
- @LOC("OUT,BitReserve.BIT") int level;\r
- @LOC("OUT,BitReserve.BIT") int point = 0;\r
- @LOC("OUT,BitReserve.BIT") int error = 1;\r
- level = dmask;\r
-\r
- if (ht[htIdx].val == null)\r
- return 2;\r
-\r
- /* table 0 needs no bits */\r
- if (ht[htIdx].treelen == 0) {\r
- x[0] = 0;\r
- y[0] = 0;\r
- return 0;\r
- }\r
-\r
- /* Lookup in Huffman table. */\r
-\r
- /*\r
- * int bitsAvailable = 0; int bitIndex = 0;\r
- * \r
- * int bits[] = bitbuf;\r
- */\r
- TERMINATE: do {\r
- if (ht[htIdx].val[point][0] == 0) { /* end of tree */\r
- x[0] = ht[htIdx].val[point][1] >>> 4;\r
- y[0] = ht[htIdx].val[point][1] & 0xf;\r
- error = 0;\r
- break;\r
- }\r
-\r
- // hget1bit() is called thousands of times, and so needs to be\r
- // ultra fast.\r
- /*\r
- * if (bitIndex==bitsAvailable) { bitsAvailable = br.readBits(bits, 32);\r
- * bitIndex = 0; }\r
- */\r
- // if (bits[bitIndex++]!=0)\r
- if (br.hget1bit() != 0) {\r
- TERMINATE: while (ht[htIdx].val[point][1] >= MXOFF)\r
- point += ht[htIdx].val[point][1];\r
- point += ht[htIdx].val[point][1];\r
- } else {\r
- TERMINATE: while (ht[htIdx].val[point][0] >= MXOFF)\r
- point += ht[htIdx].val[point][0];\r
- point += ht[htIdx].val[point][0];\r
- }\r
- level >>>= 1;\r
- // MDM: ht[0] is always 0;\r
- } while ((level != 0) || (point < 0 /* ht[0].treelen */));\r
-\r
- // put back any bits not consumed\r
- /*\r
- * int unread = (bitsAvailable-bitIndex); if (unread>0)\r
- * br.rewindNbits(unread);\r
- */\r
- /* Process sign encodings for quadruples tables. */\r
- // System.out.println(ht[htIdx].tablename);\r
- if (ht[htIdx].tablename0 == '3' && (ht[htIdx].tablename1 == '2' || ht[htIdx].tablename1 == '3')) {\r
- v[0] = (y[0] >> 3) & 1;\r
- w[0] = (y[0] >> 2) & 1;\r
- x[0] = (y[0] >> 1) & 1;\r
- y[0] = y[0] & 1;\r
-\r
- /*\r
- * v, w, x and y are reversed in the bitstream. switch them around to make\r
- * test bistream work.\r
- */\r
-\r
- if (v[0] != 0)\r
- if (br.hget1bit() != 0)\r
- v[0] = -v[0];\r
- if (w[0] != 0)\r
- if (br.hget1bit() != 0)\r
- w[0] = -w[0];\r
- if (x[0] != 0)\r
- if (br.hget1bit() != 0)\r
- x[0] = -x[0];\r
- if (y[0] != 0)\r
- if (br.hget1bit() != 0)\r
- y[0] = -y[0];\r
- } else {\r
- // Process sign and escape encodings for dual tables.\r
- // x and y are reversed in the test bitstream.\r
- // Reverse x and y here to make test bitstream work.\r
-\r
- if (ht[htIdx].linbits != 0)\r
- if ((ht[htIdx].xlen - 1) == x[0])\r
- x[0] += br.hgetbits(ht[htIdx].linbits);\r
- if (x[0] != 0)\r
- if (br.hget1bit() != 0)\r
- x[0] = -x[0];\r
- if (ht[htIdx].linbits != 0)\r
- if ((ht[htIdx].ylen - 1) == y[0])\r
- y[0] += br.hgetbits(ht[htIdx].linbits);\r
- if (y[0] != 0)\r
- if (br.hget1bit() != 0)\r
- y[0] = -y[0];\r
- }\r
- return error;\r
- }\r
-\r
- public static void inithuff() {\r
-\r
- if (ht != null)\r
- return;\r
-\r
- ht = new huffcodetab[HTN];\r
- ht[0] = new huffcodetab("0 ", 0, 0, 0, 0, -1, null, null, ValTab0, 0);\r
- ht[1] = new huffcodetab("1 ", 2, 2, 0, 0, -1, null, null, ValTab1, 7);\r
- ht[2] = new huffcodetab("2 ", 3, 3, 0, 0, -1, null, null, ValTab2, 17);\r
- ht[3] = new huffcodetab("3 ", 3, 3, 0, 0, -1, null, null, ValTab3, 17);\r
- ht[4] = new huffcodetab("4 ", 0, 0, 0, 0, -1, null, null, ValTab4, 0);\r
- ht[5] = new huffcodetab("5 ", 4, 4, 0, 0, -1, null, null, ValTab5, 31);\r
- ht[6] = new huffcodetab("6 ", 4, 4, 0, 0, -1, null, null, ValTab6, 31);\r
- ht[7] = new huffcodetab("7 ", 6, 6, 0, 0, -1, null, null, ValTab7, 71);\r
- ht[8] = new huffcodetab("8 ", 6, 6, 0, 0, -1, null, null, ValTab8, 71);\r
- ht[9] = new huffcodetab("9 ", 6, 6, 0, 0, -1, null, null, ValTab9, 71);\r
- ht[10] = new huffcodetab("10 ", 8, 8, 0, 0, -1, null, null, ValTab10, 127);\r
- ht[11] = new huffcodetab("11 ", 8, 8, 0, 0, -1, null, null, ValTab11, 127);\r
- ht[12] = new huffcodetab("12 ", 8, 8, 0, 0, -1, null, null, ValTab12, 127);\r
- ht[13] = new huffcodetab("13 ", 16, 16, 0, 0, -1, null, null, ValTab13, 511);\r
- ht[14] = new huffcodetab("14 ", 0, 0, 0, 0, -1, null, null, ValTab14, 0);\r
- ht[15] = new huffcodetab("15 ", 16, 16, 0, 0, -1, null, null, ValTab15, 511);\r
- ht[16] = new huffcodetab("16 ", 16, 16, 1, 1, -1, null, null, ValTab16, 511);\r
- ht[17] = new huffcodetab("17 ", 16, 16, 2, 3, 16, null, null, ValTab16, 511);\r
- ht[18] = new huffcodetab("18 ", 16, 16, 3, 7, 16, null, null, ValTab16, 511);\r
- ht[19] = new huffcodetab("19 ", 16, 16, 4, 15, 16, null, null, ValTab16, 511);\r
- ht[20] = new huffcodetab("20 ", 16, 16, 6, 63, 16, null, null, ValTab16, 511);\r
- ht[21] = new huffcodetab("21 ", 16, 16, 8, 255, 16, null, null, ValTab16, 511);\r
- ht[22] = new huffcodetab("22 ", 16, 16, 10, 1023, 16, null, null, ValTab16, 511);\r
- ht[23] = new huffcodetab("23 ", 16, 16, 13, 8191, 16, null, null, ValTab16, 511);\r
- ht[24] = new huffcodetab("24 ", 16, 16, 4, 15, -1, null, null, ValTab24, 512);\r
- ht[25] = new huffcodetab("25 ", 16, 16, 5, 31, 24, null, null, ValTab24, 512);\r
- ht[26] = new huffcodetab("26 ", 16, 16, 6, 63, 24, null, null, ValTab24, 512);\r
- ht[27] = new huffcodetab("27 ", 16, 16, 7, 127, 24, null, null, ValTab24, 512);\r
- ht[28] = new huffcodetab("28 ", 16, 16, 8, 255, 24, null, null, ValTab24, 512);\r
- ht[29] = new huffcodetab("29 ", 16, 16, 9, 511, 24, null, null, ValTab24, 512);\r
- ht[30] = new huffcodetab("30 ", 16, 16, 11, 2047, 24, null, null, ValTab24, 512);\r
- ht[31] = new huffcodetab("31 ", 16, 16, 13, 8191, 24, null, null, ValTab24, 512);\r
- ht[32] = new huffcodetab("32 ", 1, 16, 0, 0, -1, null, null, ValTab32, 31);\r
- ht[33] = new huffcodetab("33 ", 1, 16, 0, 0, -1, null, null, ValTab33, 31);\r
- }\r
-}\r
+/*
+ * 11/19/04 1.0 moved to LGPL.
+ * 16/11/99 Renamed class, added javadoc, and changed table
+ * name from String to 3 chars. mdm@techie.com
+ * 02/15/99 Java Conversion by E.B, javalayer@javazoom.net
+ *
+ * 04/19/97 : Adapted from the ISO MPEG Audio Subgroup Software Simulation
+ * Group's public c source for its MPEG audio decoder. Miscellaneous
+ * changes by Jeff Tsay (ctsay@pasteur.eecs.berkeley.edu).
+ *-----------------------------------------------------------------------
+ * Copyright (c) 1991 MPEG/audio software simulation group, All Rights Reserved
+ * MPEG/audio coding/decoding software, work in progress
+ * NOT for public distribution until verified and approved by the
+ * MPEG/audio committee. For further information, please contact
+ * Davis Pan, 508-493-2241, e-mail: pan@3d.enet.dec.com
+ *
+ * VERSION 4.1
+ * changes made since last update:
+ * date programmers comment
+ * 27.2.92 F.O.Witte (ITT Intermetall)
+ * 8/24/93 M. Iwadare Changed for 1 pass decoding.
+ * 7/14/94 J. Koller useless 'typedef' before huffcodetab removed
+ *-----------------------------------------------------------------------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library General Public License as published
+ * by the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------
+ */
+
+/**
+ * Class to implements Huffman decoder.
+ */
+@LATTICE("FIELD<FINAL,FIELD*")
+@METHODDEFAULT("OUT<V,V<SH,SH<IN,SH*,THISLOC=IN,GLOBALLOC=IN")
+final class huffcodetab {
+ private static final int MXOFF = 250;
+ private static final int HTN = 34;
+
+ @LOC("FIELD")
+ private char tablename0 = ' '; /* string, containing table_description */
+ @LOC("FIELD")
+ private char tablename1 = ' '; /* string, containing table_description */
+ @LOC("FIELD")
+ private char tablename2 = ' '; /* string, containing table_description */
+
+ @LOC("FIELD")
+ private int xlen; /* max. x-index+ */
+ @LOC("FIELD")
+ private int ylen; /* max. y-index+ */
+ @LOC("FIELD")
+ private int linbits; /* number of linbits */
+ @LOC("FIELD")
+ private int linmax; /* max number to be stored in linbits */
+ @LOC("FIELD")
+ private int ref; /* a positive value indicates a reference */
+ @LOC("FIELD")
+ private int[] table = null; /* pointer to array[xlen][ylen] */
+ @LOC("FIELD")
+ private int[] hlen = null; /* pointer to array[xlen][ylen] */
+ @LOC("FIELD")
+ private int[][] val = null; /* decoder tree */
+ @LOC("FIELD")
+ private int treelen; /* length of decoder tree */
+
+ @LOC("FINAL")
+ private static int ValTab0[][] = { { 0, 0 } // dummy
+ };
+
+ @LOC("FINAL")
+ private static int ValTab1[][] = { { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 2, 1 }, { 0, 1 },
+ { 0, 17 }, };
+
+ @LOC("FINAL")
+ private static int ValTab2[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 },
+ { 0, 2 }, { 0, 34 }, };
+
+ @LOC("FINAL")
+ private static int ValTab3[][] = { { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 1 }, { 2, 1 }, { 0, 17 },
+ { 2, 1 }, { 0, 16 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 },
+ { 0, 2 }, { 0, 34 }, };
+
+ @LOC("FINAL")
+ private static int ValTab4[][] = { { 0, 0 } }; // dummy
+
+ @LOC("FINAL")
+ private static int ValTab5[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 2, 1 }, { 0, 17 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },
+ { 0, 18 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 }, { 0, 3 }, { 0, 19 },
+ { 2, 1 }, { 0, 49 }, { 2, 1 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 0, 51 }, };
+
+ @LOC("FINAL")
+ private static int ValTab6[][] = { { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 }, { 0, 17 },
+ { 6, 1 }, { 2, 1 }, { 0, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 6, 1 }, { 2, 1 }, { 0, 18 },
+ { 2, 1 }, { 0, 2 }, { 0, 34 }, { 4, 1 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 },
+ { 0, 48 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 2, 1 }, { 0, 3 }, { 0, 51 }, };
+
+ @LOC("FINAL")
+ private static int ValTab7[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 8, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 0, 33 }, { 18, 1 },
+ { 6, 1 }, { 2, 1 }, { 0, 18 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 4, 1 }, { 2, 1 }, { 0, 49 },
+ { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 3 }, { 0, 50 }, { 2, 1 }, { 0, 35 }, { 0, 4 }, { 10, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 65 }, { 2, 1 }, { 0, 20 }, { 2, 1 }, { 0, 66 },
+ { 0, 36 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 51 }, { 0, 67 }, { 0, 80 },
+ { 4, 1 }, { 2, 1 }, { 0, 52 }, { 0, 5 }, { 0, 81 }, { 6, 1 }, { 2, 1 }, { 0, 21 }, { 2, 1 },
+ { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 53 }, { 4, 1 }, { 2, 1 },
+ { 0, 83 }, { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 85 }, };
+
+ @LOC("FINAL")
+ private static int ValTab8[][] = { { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 33 }, { 0, 18 }, { 14, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 34 }, { 4, 1 }, { 2, 1 }, { 0, 48 }, { 0, 3 }, { 2, 1 },
+ { 0, 49 }, { 0, 19 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 50 }, { 0, 35 },
+ { 2, 1 }, { 0, 64 }, { 0, 4 }, { 2, 1 }, { 0, 65 }, { 2, 1 }, { 0, 20 }, { 0, 66 },
+ { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 36 }, { 2, 1 }, { 0, 51 }, { 0, 80 }, { 4, 1 }, { 2, 1 },
+ { 0, 67 }, { 0, 52 }, { 0, 81 }, { 6, 1 }, { 2, 1 }, { 0, 21 }, { 2, 1 }, { 0, 5 },
+ { 0, 82 }, { 6, 1 }, { 2, 1 }, { 0, 37 }, { 2, 1 }, { 0, 68 }, { 0, 53 }, { 2, 1 },
+ { 0, 83 }, { 2, 1 }, { 0, 69 }, { 2, 1 }, { 0, 84 }, { 0, 85 }, };
+
+ @LOC("FINAL")
+ private static int ValTab9[][] = { { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 }, { 2, 1 },
+ { 0, 1 }, { 0, 17 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 33 }, { 2, 1 },
+ { 0, 18 }, { 2, 1 }, { 0, 2 }, { 0, 34 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 48 },
+ { 0, 3 }, { 0, 49 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 12, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 51 }, { 2, 1 },
+ { 0, 66 }, { 0, 36 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 80 },
+ { 0, 67 }, { 2, 1 }, { 0, 52 }, { 0, 81 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 21 },
+ { 0, 82 }, { 2, 1 }, { 0, 37 }, { 0, 68 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 5 }, { 0, 84 },
+ { 0, 83 }, { 2, 1 }, { 0, 53 }, { 2, 1 }, { 0, 69 }, { 0, 85 }, };
+
+ @LOC("FINAL")
+ private static int ValTab10[][] = { { 2, 1 }, { 0, 0 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 10, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },
+ { 0, 18 }, { 28, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 },
+ { 0, 49 }, { 0, 19 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 3 }, { 0, 50 }, { 2, 1 }, { 0, 35 },
+ { 0, 64 }, { 4, 1 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 51 },
+ { 2, 1 }, { 0, 66 }, { 0, 36 }, { 28, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 80 }, { 0, 5 }, { 0, 96 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 12, 1 }, { 6, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 67 }, { 0, 52 }, { 0, 81 }, { 2, 1 }, { 0, 21 }, { 2, 1 },
+ { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 38 }, { 0, 54 }, { 0, 113 }, { 20, 1 },
+ { 8, 1 }, { 2, 1 }, { 0, 23 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 0, 6 }, { 6, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 53 }, { 0, 69 }, { 0, 98 }, { 2, 1 }, { 0, 112 }, { 2, 1 },
+ { 0, 7 }, { 0, 100 }, { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 6, 1 },
+ { 2, 1 }, { 0, 99 }, { 2, 1 }, { 0, 84 }, { 0, 85 }, { 2, 1 }, { 0, 70 }, { 0, 115 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 55 }, { 0, 101 }, { 2, 1 }, { 0, 86 }, { 0, 116 },
+ { 6, 1 }, { 2, 1 }, { 0, 71 }, { 2, 1 }, { 0, 102 }, { 0, 117 }, { 4, 1 }, { 2, 1 },
+ { 0, 87 }, { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };
+
+ @LOC("FINAL")
+ private static int ValTab11[][] = { { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 }, { 0, 1 },
+ { 8, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 0, 18 }, { 24, 1 },
+ { 8, 1 }, { 2, 1 }, { 0, 33 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 }, { 0, 3 }, { 4, 1 },
+ { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 4, 1 }, { 2, 1 },
+ { 0, 64 }, { 0, 4 }, { 2, 1 }, { 0, 65 }, { 0, 20 }, { 30, 1 }, { 16, 1 }, { 10, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 66 }, { 0, 36 }, { 4, 1 }, { 2, 1 }, { 0, 51 }, { 0, 67 },
+ { 0, 80 }, { 4, 1 }, { 2, 1 }, { 0, 52 }, { 0, 81 }, { 0, 97 }, { 6, 1 }, { 2, 1 },
+ { 0, 22 }, { 2, 1 }, { 0, 6 }, { 0, 38 }, { 2, 1 }, { 0, 98 }, { 2, 1 }, { 0, 21 }, { 2, 1 },
+ { 0, 5 }, { 0, 82 }, { 16, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 37 },
+ { 0, 68 }, { 0, 96 }, { 2, 1 }, { 0, 99 }, { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 112 },
+ { 0, 23 }, { 0, 113 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 7 }, { 0, 100 },
+ { 0, 114 }, { 2, 1 }, { 0, 39 }, { 4, 1 }, { 2, 1 }, { 0, 83 }, { 0, 53 }, { 2, 1 },
+ { 0, 84 }, { 0, 69 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 70 }, { 0, 115 }, { 2, 1 },
+ { 0, 55 }, { 2, 1 }, { 0, 101 }, { 0, 86 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 85 }, { 0, 87 }, { 0, 116 }, { 2, 1 }, { 0, 71 }, { 0, 102 }, { 4, 1 }, { 2, 1 },
+ { 0, 117 }, { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };
+
+ @LOC("FINAL")
+ private static int ValTab12[][] = { { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 16 }, { 0, 1 }, { 2, 1 },
+ { 0, 17 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 16, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 33 }, { 0, 18 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 49 }, { 2, 1 }, { 0, 19 },
+ { 2, 1 }, { 0, 48 }, { 2, 1 }, { 0, 3 }, { 0, 64 }, { 26, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 50 }, { 0, 35 }, { 2, 1 }, { 0, 65 }, { 0, 51 }, { 10, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 20 }, { 0, 66 }, { 2, 1 }, { 0, 36 }, { 2, 1 }, { 0, 4 }, { 0, 80 }, { 4, 1 }, { 2, 1 },
+ { 0, 67 }, { 0, 52 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 28, 1 }, { 14, 1 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 2, 1 }, { 0, 83 }, { 0, 53 }, { 4, 1 }, { 2, 1 },
+ { 0, 96 }, { 0, 22 }, { 0, 97 }, { 4, 1 }, { 2, 1 }, { 0, 98 }, { 0, 38 }, { 6, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 5 }, { 0, 6 }, { 0, 68 }, { 2, 1 }, { 0, 84 }, { 0, 69 }, { 18, 1 },
+ { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 99 }, { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 112 },
+ { 0, 7 }, { 0, 113 }, { 4, 1 }, { 2, 1 }, { 0, 23 }, { 0, 100 }, { 2, 1 }, { 0, 70 },
+ { 0, 114 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 39 }, { 2, 1 }, { 0, 85 }, { 0, 115 },
+ { 2, 1 }, { 0, 55 }, { 0, 86 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 101 }, { 0, 116 },
+ { 2, 1 }, { 0, 71 }, { 0, 102 }, { 4, 1 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 },
+ { 0, 118 }, { 2, 1 }, { 0, 103 }, { 0, 119 }, };
+
+ @LOC("FINAL")
+ private static int ValTab13[][] = { { 2, 1 }, { 0, 0 }, { 6, 1 }, { 2, 1 }, { 0, 16 }, { 2, 1 },
+ { 0, 1 }, { 0, 17 }, { 28, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 },
+ { 0, 33 }, { 0, 18 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 34 }, { 0, 48 }, { 2, 1 }, { 0, 3 },
+ { 0, 49 }, { 6, 1 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 50 }, { 0, 35 }, { 4, 1 }, { 2, 1 },
+ { 0, 64 }, { 0, 4 }, { 0, 65 }, { 70, 1 }, { 28, 1 }, { 14, 1 }, { 6, 1 }, { 2, 1 },
+ { 0, 20 }, { 2, 1 }, { 0, 51 }, { 0, 66 }, { 4, 1 }, { 2, 1 }, { 0, 36 }, { 0, 80 },
+ { 2, 1 }, { 0, 67 }, { 0, 52 }, { 4, 1 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 4, 1 }, { 2, 1 },
+ { 0, 5 }, { 0, 82 }, { 2, 1 }, { 0, 37 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 14, 1 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 96 }, { 0, 6 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 4, 1 },
+ { 2, 1 }, { 0, 128 }, { 0, 8 }, { 0, 129 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 53 }, { 0, 98 }, { 2, 1 }, { 0, 38 }, { 0, 84 }, { 4, 1 }, { 2, 1 }, { 0, 69 },
+ { 0, 99 }, { 2, 1 }, { 0, 54 }, { 0, 112 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 7 },
+ { 0, 85 }, { 0, 113 }, { 2, 1 }, { 0, 23 }, { 2, 1 }, { 0, 39 }, { 0, 55 }, { 72, 1 },
+ { 24, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 24 }, { 0, 130 }, { 2, 1 }, { 0, 40 },
+ { 4, 1 }, { 2, 1 }, { 0, 100 }, { 0, 70 }, { 0, 114 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 132 }, { 0, 72 }, { 2, 1 }, { 0, 144 }, { 0, 9 }, { 2, 1 }, { 0, 145 }, { 0, 25 },
+ { 24, 1 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 115 }, { 0, 101 }, { 2, 1 },
+ { 0, 86 }, { 0, 116 }, { 4, 1 }, { 2, 1 }, { 0, 71 }, { 0, 102 }, { 0, 131 }, { 6, 1 },
+ { 2, 1 }, { 0, 56 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 146 }, { 0, 41 },
+ { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 103 }, { 0, 133 }, { 2, 1 }, { 0, 88 },
+ { 0, 57 }, { 2, 1 }, { 0, 147 }, { 2, 1 }, { 0, 73 }, { 0, 134 }, { 6, 1 }, { 2, 1 },
+ { 0, 160 }, { 2, 1 }, { 0, 104 }, { 0, 10 }, { 2, 1 }, { 0, 161 }, { 0, 26 }, { 68, 1 },
+ { 24, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 4, 1 }, { 2, 1 },
+ { 0, 149 }, { 0, 89 }, { 2, 1 }, { 0, 163 }, { 0, 58 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 74 }, { 0, 150 }, { 2, 1 }, { 0, 176 }, { 0, 11 }, { 2, 1 }, { 0, 177 }, { 0, 27 },
+ { 20, 1 }, { 8, 1 }, { 2, 1 }, { 0, 178 }, { 4, 1 }, { 2, 1 }, { 0, 118 }, { 0, 119 },
+ { 0, 148 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 135 }, { 0, 120 }, { 0, 164 }, { 4, 1 },
+ { 2, 1 }, { 0, 105 }, { 0, 165 }, { 0, 43 }, { 12, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 90 }, { 0, 136 }, { 0, 179 }, { 2, 1 }, { 0, 59 }, { 2, 1 }, { 0, 121 }, { 0, 166 },
+ { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 106 }, { 0, 180 }, { 0, 192 }, { 4, 1 }, { 2, 1 },
+ { 0, 12 }, { 0, 152 }, { 0, 193 }, { 60, 1 }, { 22, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 },
+ { 0, 28 }, { 2, 1 }, { 0, 137 }, { 0, 181 }, { 2, 1 }, { 0, 91 }, { 0, 194 }, { 4, 1 },
+ { 2, 1 }, { 0, 44 }, { 0, 60 }, { 4, 1 }, { 2, 1 }, { 0, 182 }, { 0, 107 }, { 2, 1 },
+ { 0, 196 }, { 0, 76 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 168 }, { 0, 138 },
+ { 2, 1 }, { 0, 208 }, { 0, 13 }, { 2, 1 }, { 0, 209 }, { 2, 1 }, { 0, 75 }, { 2, 1 },
+ { 0, 151 }, { 0, 167 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 195 }, { 2, 1 }, { 0, 122 },
+ { 0, 153 }, { 4, 1 }, { 2, 1 }, { 0, 197 }, { 0, 92 }, { 0, 183 }, { 4, 1 }, { 2, 1 },
+ { 0, 29 }, { 0, 210 }, { 2, 1 }, { 0, 45 }, { 2, 1 }, { 0, 123 }, { 0, 211 }, { 52, 1 },
+ { 28, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 4, 1 }, { 2, 1 },
+ { 0, 108 }, { 0, 169 }, { 2, 1 }, { 0, 154 }, { 0, 212 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 184 }, { 0, 139 }, { 2, 1 }, { 0, 77 }, { 0, 199 }, { 4, 1 }, { 2, 1 }, { 0, 124 },
+ { 0, 213 }, { 2, 1 }, { 0, 93 }, { 0, 224 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 225 },
+ { 0, 30 }, { 4, 1 }, { 2, 1 }, { 0, 14 }, { 0, 46 }, { 0, 226 }, { 8, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 227 }, { 0, 109 }, { 2, 1 }, { 0, 140 }, { 0, 228 }, { 4, 1 }, { 2, 1 },
+ { 0, 229 }, { 0, 186 }, { 0, 240 }, { 38, 1 }, { 16, 1 }, { 4, 1 }, { 2, 1 }, { 0, 241 },
+ { 0, 31 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 170 }, { 0, 155 }, { 0, 185 }, { 2, 1 },
+ { 0, 62 }, { 2, 1 }, { 0, 214 }, { 0, 200 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 78 },
+ { 2, 1 }, { 0, 215 }, { 0, 125 }, { 2, 1 }, { 0, 171 }, { 2, 1 }, { 0, 94 }, { 0, 201 },
+ { 6, 1 }, { 2, 1 }, { 0, 15 }, { 2, 1 }, { 0, 156 }, { 0, 110 }, { 2, 1 }, { 0, 242 },
+ { 0, 47 }, { 32, 1 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 216 }, { 0, 141 },
+ { 0, 63 }, { 6, 1 }, { 2, 1 }, { 0, 243 }, { 2, 1 }, { 0, 230 }, { 0, 202 }, { 2, 1 },
+ { 0, 244 }, { 0, 79 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 187 }, { 0, 172 }, { 2, 1 },
+ { 0, 231 }, { 0, 245 }, { 4, 1 }, { 2, 1 }, { 0, 217 }, { 0, 157 }, { 2, 1 }, { 0, 95 },
+ { 0, 232 }, { 30, 1 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 111 }, { 2, 1 }, { 0, 246 },
+ { 0, 203 }, { 4, 1 }, { 2, 1 }, { 0, 188 }, { 0, 173 }, { 0, 218 }, { 8, 1 }, { 2, 1 },
+ { 0, 247 }, { 4, 1 }, { 2, 1 }, { 0, 126 }, { 0, 127 }, { 0, 142 }, { 6, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 158 }, { 0, 174 }, { 0, 204 }, { 2, 1 }, { 0, 248 }, { 0, 143 }, { 18, 1 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 219 }, { 0, 189 }, { 2, 1 }, { 0, 234 }, { 0, 249 },
+ { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 235 }, { 2, 1 }, { 0, 190 }, { 2, 1 }, { 0, 205 },
+ { 0, 250 }, { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 221 }, { 0, 236 }, { 6, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 233 }, { 0, 175 }, { 0, 220 }, { 2, 1 }, { 0, 206 }, { 0, 251 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 191 }, { 0, 222 }, { 2, 1 }, { 0, 207 }, { 0, 238 }, { 4, 1 },
+ { 2, 1 }, { 0, 223 }, { 0, 239 }, { 2, 1 }, { 0, 255 }, { 2, 1 }, { 0, 237 }, { 2, 1 },
+ { 0, 253 }, { 2, 1 }, { 0, 252 }, { 0, 254 }, };
+
+ @LOC("FINAL")
+ private static int ValTab14[][] = { { 0, 0 } // dummy
+ };
+
+ @LOC("FINAL")
+ private static int ValTab15[][] = { { 16, 1 }, { 6, 1 }, { 2, 1 }, { 0, 0 }, { 2, 1 }, { 0, 16 },
+ { 0, 1 }, { 2, 1 }, { 0, 17 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 }, { 0, 33 },
+ { 0, 18 }, { 50, 1 }, { 16, 1 }, { 6, 1 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 },
+ { 0, 49 }, { 6, 1 }, { 2, 1 }, { 0, 19 }, { 2, 1 }, { 0, 3 }, { 0, 64 }, { 2, 1 }, { 0, 50 },
+ { 0, 35 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 20 }, { 0, 65 }, { 4, 1 },
+ { 2, 1 }, { 0, 51 }, { 0, 66 }, { 2, 1 }, { 0, 36 }, { 0, 67 }, { 10, 1 }, { 6, 1 },
+ { 2, 1 }, { 0, 52 }, { 2, 1 }, { 0, 80 }, { 0, 5 }, { 2, 1 }, { 0, 81 }, { 0, 21 }, { 4, 1 },
+ { 2, 1 }, { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 0, 97 },
+ { 90, 1 }, { 36, 1 }, { 18, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 53 }, { 2, 1 },
+ { 0, 96 }, { 0, 6 }, { 2, 1 }, { 0, 22 }, { 0, 98 }, { 4, 1 }, { 2, 1 }, { 0, 38 },
+ { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 99 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 54 },
+ { 2, 1 }, { 0, 112 }, { 0, 7 }, { 2, 1 }, { 0, 113 }, { 0, 85 }, { 4, 1 }, { 2, 1 },
+ { 0, 23 }, { 0, 100 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 24, 1 }, { 16, 1 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 70 }, { 0, 115 }, { 2, 1 }, { 0, 55 }, { 0, 101 }, { 4, 1 },
+ { 2, 1 }, { 0, 86 }, { 0, 128 }, { 2, 1 }, { 0, 8 }, { 0, 116 }, { 4, 1 }, { 2, 1 },
+ { 0, 129 }, { 0, 24 }, { 2, 1 }, { 0, 130 }, { 0, 40 }, { 16, 1 }, { 8, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 71 }, { 0, 102 }, { 2, 1 }, { 0, 131 }, { 0, 56 }, { 4, 1 }, { 2, 1 },
+ { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 132 }, { 0, 72 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 144 }, { 0, 25 }, { 0, 145 }, { 4, 1 }, { 2, 1 }, { 0, 146 }, { 0, 118 }, { 2, 1 },
+ { 0, 103 }, { 0, 41 }, { 92, 1 }, { 36, 1 }, { 18, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 133 }, { 0, 88 }, { 4, 1 }, { 2, 1 }, { 0, 9 }, { 0, 119 }, { 0, 147 }, { 4, 1 },
+ { 2, 1 }, { 0, 57 }, { 0, 148 }, { 2, 1 }, { 0, 73 }, { 0, 134 }, { 10, 1 }, { 6, 1 },
+ { 2, 1 }, { 0, 104 }, { 2, 1 }, { 0, 160 }, { 0, 10 }, { 2, 1 }, { 0, 161 }, { 0, 26 },
+ { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 2, 1 }, { 0, 149 }, { 0, 89 }, { 26, 1 },
+ { 14, 1 }, { 6, 1 }, { 2, 1 }, { 0, 163 }, { 2, 1 }, { 0, 58 }, { 0, 135 }, { 4, 1 },
+ { 2, 1 }, { 0, 120 }, { 0, 164 }, { 2, 1 }, { 0, 74 }, { 0, 150 }, { 6, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 105 }, { 0, 176 }, { 0, 177 }, { 4, 1 }, { 2, 1 }, { 0, 27 }, { 0, 165 },
+ { 0, 178 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 90 }, { 0, 43 }, { 2, 1 },
+ { 0, 136 }, { 0, 151 }, { 2, 1 }, { 0, 179 }, { 2, 1 }, { 0, 121 }, { 0, 59 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 106 }, { 0, 180 }, { 2, 1 }, { 0, 75 }, { 0, 193 }, { 4, 1 },
+ { 2, 1 }, { 0, 152 }, { 0, 137 }, { 2, 1 }, { 0, 28 }, { 0, 181 }, { 80, 1 }, { 34, 1 },
+ { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 91 }, { 0, 44 }, { 0, 194 }, { 6, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 11 }, { 0, 192 }, { 0, 166 }, { 2, 1 }, { 0, 167 }, { 0, 122 },
+ { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 195 }, { 0, 60 }, { 4, 1 }, { 2, 1 }, { 0, 12 },
+ { 0, 153 }, { 0, 182 }, { 4, 1 }, { 2, 1 }, { 0, 107 }, { 0, 196 }, { 2, 1 }, { 0, 76 },
+ { 0, 168 }, { 20, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 138 }, { 0, 197 }, { 4, 1 },
+ { 2, 1 }, { 0, 208 }, { 0, 92 }, { 0, 209 }, { 4, 1 }, { 2, 1 }, { 0, 183 }, { 0, 123 },
+ { 2, 1 }, { 0, 29 }, { 2, 1 }, { 0, 13 }, { 0, 45 }, { 12, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 210 }, { 0, 211 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 2, 1 }, { 0, 108 },
+ { 0, 169 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 154 }, { 0, 184 }, { 0, 212 }, { 4, 1 },
+ { 2, 1 }, { 0, 139 }, { 0, 77 }, { 2, 1 }, { 0, 199 }, { 0, 124 }, { 68, 1 }, { 34, 1 },
+ { 18, 1 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 213 }, { 0, 93 }, { 4, 1 }, { 2, 1 },
+ { 0, 224 }, { 0, 14 }, { 0, 225 }, { 4, 1 }, { 2, 1 }, { 0, 30 }, { 0, 226 }, { 2, 1 },
+ { 0, 170 }, { 0, 46 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 185 }, { 0, 155 }, { 2, 1 },
+ { 0, 227 }, { 0, 214 }, { 4, 1 }, { 2, 1 }, { 0, 109 }, { 0, 62 }, { 2, 1 }, { 0, 200 },
+ { 0, 140 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 228 }, { 0, 78 }, { 2, 1 },
+ { 0, 215 }, { 0, 125 }, { 4, 1 }, { 2, 1 }, { 0, 229 }, { 0, 186 }, { 2, 1 }, { 0, 171 },
+ { 0, 94 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 201 }, { 0, 156 }, { 2, 1 }, { 0, 241 },
+ { 0, 31 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 240 }, { 0, 110 }, { 0, 242 }, { 2, 1 },
+ { 0, 47 }, { 0, 230 }, { 38, 1 }, { 18, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 216 },
+ { 0, 243 }, { 2, 1 }, { 0, 63 }, { 0, 244 }, { 6, 1 }, { 2, 1 }, { 0, 79 }, { 2, 1 },
+ { 0, 141 }, { 0, 217 }, { 2, 1 }, { 0, 187 }, { 0, 202 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 172 }, { 0, 231 }, { 2, 1 }, { 0, 126 }, { 0, 245 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 157 }, { 0, 95 }, { 2, 1 }, { 0, 232 }, { 0, 142 }, { 2, 1 }, { 0, 246 }, { 0, 203 },
+ { 34, 1 }, { 18, 1 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 15 }, { 0, 174 },
+ { 0, 111 }, { 2, 1 }, { 0, 188 }, { 0, 218 }, { 4, 1 }, { 2, 1 }, { 0, 173 }, { 0, 247 },
+ { 2, 1 }, { 0, 127 }, { 0, 233 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 158 }, { 0, 204 },
+ { 2, 1 }, { 0, 248 }, { 0, 143 }, { 4, 1 }, { 2, 1 }, { 0, 219 }, { 0, 189 }, { 2, 1 },
+ { 0, 234 }, { 0, 249 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 220 },
+ { 2, 1 }, { 0, 205 }, { 0, 235 }, { 4, 1 }, { 2, 1 }, { 0, 190 }, { 0, 250 }, { 2, 1 },
+ { 0, 175 }, { 0, 221 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 236 }, { 0, 206 },
+ { 0, 251 }, { 4, 1 }, { 2, 1 }, { 0, 191 }, { 0, 237 }, { 2, 1 }, { 0, 222 }, { 0, 252 },
+ { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 207 }, { 0, 253 }, { 0, 238 }, { 4, 1 }, { 2, 1 },
+ { 0, 223 }, { 0, 254 }, { 2, 1 }, { 0, 239 }, { 0, 255 }, };
+
+ @LOC("FINAL")
+ private static int ValTab16[][] = { { 2, 1 }, { 0, 0 }, { 6, 1 }, { 2, 1 }, { 0, 16 }, { 2, 1 },
+ { 0, 1 }, { 0, 17 }, { 42, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 }, { 2, 1 },
+ { 0, 33 }, { 0, 18 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 },
+ { 0, 3 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 50 },
+ { 0, 35 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 4 }, { 0, 65 }, { 6, 1 }, { 2, 1 }, { 0, 20 },
+ { 2, 1 }, { 0, 51 }, { 0, 66 }, { 4, 1 }, { 2, 1 }, { 0, 36 }, { 0, 80 }, { 2, 1 },
+ { 0, 67 }, { 0, 52 }, { 138, 1 }, { 40, 1 }, { 16, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 5 }, { 0, 21 }, { 0, 81 }, { 4, 1 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 4, 1 }, { 2, 1 },
+ { 0, 68 }, { 0, 53 }, { 0, 83 }, { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 96 },
+ { 0, 6 }, { 0, 97 }, { 2, 1 }, { 0, 22 }, { 0, 98 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 38 },
+ { 0, 84 }, { 2, 1 }, { 0, 69 }, { 0, 99 }, { 4, 1 }, { 2, 1 }, { 0, 54 }, { 0, 112 },
+ { 0, 113 }, { 40, 1 }, { 18, 1 }, { 8, 1 }, { 2, 1 }, { 0, 23 }, { 2, 1 }, { 0, 7 },
+ { 2, 1 }, { 0, 85 }, { 0, 100 }, { 4, 1 }, { 2, 1 }, { 0, 114 }, { 0, 39 }, { 4, 1 },
+ { 2, 1 }, { 0, 70 }, { 0, 101 }, { 0, 115 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 55 },
+ { 2, 1 }, { 0, 86 }, { 0, 8 }, { 2, 1 }, { 0, 128 }, { 0, 129 }, { 6, 1 }, { 2, 1 },
+ { 0, 24 }, { 2, 1 }, { 0, 116 }, { 0, 71 }, { 2, 1 }, { 0, 130 }, { 2, 1 }, { 0, 40 },
+ { 0, 102 }, { 24, 1 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 131 }, { 0, 56 },
+ { 2, 1 }, { 0, 117 }, { 0, 132 }, { 4, 1 }, { 2, 1 }, { 0, 72 }, { 0, 144 }, { 0, 145 },
+ { 6, 1 }, { 2, 1 }, { 0, 25 }, { 2, 1 }, { 0, 9 }, { 0, 118 }, { 2, 1 }, { 0, 146 },
+ { 0, 41 }, { 14, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 133 }, { 0, 88 }, { 2, 1 },
+ { 0, 147 }, { 0, 57 }, { 4, 1 }, { 2, 1 }, { 0, 160 }, { 0, 10 }, { 0, 26 }, { 8, 1 },
+ { 2, 1 }, { 0, 162 }, { 2, 1 }, { 0, 103 }, { 2, 1 }, { 0, 87 }, { 0, 73 }, { 6, 1 },
+ { 2, 1 }, { 0, 148 }, { 2, 1 }, { 0, 119 }, { 0, 134 }, { 2, 1 }, { 0, 161 }, { 2, 1 },
+ { 0, 104 }, { 0, 149 }, { 220, 1 }, { 126, 1 }, { 50, 1 }, { 26, 1 }, { 12, 1 }, { 6, 1 },
+ { 2, 1 }, { 0, 42 }, { 2, 1 }, { 0, 89 }, { 0, 58 }, { 2, 1 }, { 0, 163 }, { 2, 1 },
+ { 0, 135 }, { 0, 120 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 164 }, { 0, 74 }, { 2, 1 },
+ { 0, 150 }, { 0, 105 }, { 4, 1 }, { 2, 1 }, { 0, 176 }, { 0, 11 }, { 0, 177 }, { 10, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 27 }, { 0, 178 }, { 2, 1 }, { 0, 43 }, { 2, 1 }, { 0, 165 },
+ { 0, 90 }, { 6, 1 }, { 2, 1 }, { 0, 179 }, { 2, 1 }, { 0, 166 }, { 0, 106 }, { 4, 1 },
+ { 2, 1 }, { 0, 180 }, { 0, 75 }, { 2, 1 }, { 0, 12 }, { 0, 193 }, { 30, 1 }, { 14, 1 },
+ { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 181 }, { 0, 194 }, { 0, 44 }, { 4, 1 }, { 2, 1 },
+ { 0, 167 }, { 0, 195 }, { 2, 1 }, { 0, 107 }, { 0, 196 }, { 8, 1 }, { 2, 1 }, { 0, 29 },
+ { 4, 1 }, { 2, 1 }, { 0, 136 }, { 0, 151 }, { 0, 59 }, { 4, 1 }, { 2, 1 }, { 0, 209 },
+ { 0, 210 }, { 2, 1 }, { 0, 45 }, { 0, 211 }, { 18, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 30 }, { 0, 46 }, { 0, 226 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 121 }, { 0, 152 },
+ { 0, 192 }, { 2, 1 }, { 0, 28 }, { 2, 1 }, { 0, 137 }, { 0, 91 }, { 14, 1 }, { 6, 1 },
+ { 2, 1 }, { 0, 60 }, { 2, 1 }, { 0, 122 }, { 0, 182 }, { 4, 1 }, { 2, 1 }, { 0, 76 },
+ { 0, 153 }, { 2, 1 }, { 0, 168 }, { 0, 138 }, { 6, 1 }, { 2, 1 }, { 0, 13 }, { 2, 1 },
+ { 0, 197 }, { 0, 92 }, { 4, 1 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 2, 1 }, { 0, 108 },
+ { 0, 154 }, { 88, 1 }, { 86, 1 }, { 36, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 139 }, { 0, 77 }, { 2, 1 }, { 0, 199 }, { 0, 124 }, { 4, 1 }, { 2, 1 }, { 0, 213 },
+ { 0, 93 }, { 2, 1 }, { 0, 224 }, { 0, 14 }, { 8, 1 }, { 2, 1 }, { 0, 227 }, { 4, 1 },
+ { 2, 1 }, { 0, 208 }, { 0, 183 }, { 0, 123 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 169 },
+ { 0, 184 }, { 0, 212 }, { 2, 1 }, { 0, 225 }, { 2, 1 }, { 0, 170 }, { 0, 185 }, { 24, 1 },
+ { 10, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 155 }, { 0, 214 }, { 0, 109 }, { 2, 1 },
+ { 0, 62 }, { 0, 200 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 140 }, { 0, 228 }, { 0, 78 },
+ { 4, 1 }, { 2, 1 }, { 0, 215 }, { 0, 229 }, { 2, 1 }, { 0, 186 }, { 0, 171 }, { 12, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 156 }, { 0, 230 }, { 4, 1 }, { 2, 1 }, { 0, 110 }, { 0, 216 },
+ { 2, 1 }, { 0, 141 }, { 0, 187 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 231 }, { 0, 157 },
+ { 2, 1 }, { 0, 232 }, { 0, 142 }, { 4, 1 }, { 2, 1 }, { 0, 203 }, { 0, 188 }, { 0, 158 },
+ { 0, 241 }, { 2, 1 }, { 0, 31 }, { 2, 1 }, { 0, 15 }, { 0, 47 }, { 66, 1 }, { 56, 1 },
+ { 2, 1 }, { 0, 242 }, { 52, 1 }, { 50, 1 }, { 20, 1 }, { 8, 1 }, { 2, 1 }, { 0, 189 },
+ { 2, 1 }, { 0, 94 }, { 2, 1 }, { 0, 125 }, { 0, 201 }, { 6, 1 }, { 2, 1 }, { 0, 202 },
+ { 2, 1 }, { 0, 172 }, { 0, 126 }, { 4, 1 }, { 2, 1 }, { 0, 218 }, { 0, 173 }, { 0, 204 },
+ { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 174 }, { 2, 1 }, { 0, 219 }, { 0, 220 }, { 2, 1 },
+ { 0, 205 }, { 0, 190 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 235 }, { 0, 237 }, { 0, 238 },
+ { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 217 }, { 0, 234 }, { 0, 233 }, { 2, 1 }, { 0, 222 },
+ { 4, 1 }, { 2, 1 }, { 0, 221 }, { 0, 236 }, { 0, 206 }, { 0, 63 }, { 0, 240 }, { 4, 1 },
+ { 2, 1 }, { 0, 243 }, { 0, 244 }, { 2, 1 }, { 0, 79 }, { 2, 1 }, { 0, 245 }, { 0, 95 },
+ { 10, 1 }, { 2, 1 }, { 0, 255 }, { 4, 1 }, { 2, 1 }, { 0, 246 }, { 0, 111 }, { 2, 1 },
+ { 0, 247 }, { 0, 127 }, { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 143 }, { 2, 1 }, { 0, 248 },
+ { 0, 249 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 250 }, { 0, 175 }, { 8, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 251 }, { 0, 191 }, { 2, 1 }, { 0, 252 }, { 0, 207 }, { 4, 1 }, { 2, 1 },
+ { 0, 253 }, { 0, 223 }, { 2, 1 }, { 0, 254 }, { 0, 239 }, };
+
+ @LOC("FINAL")
+ private static int ValTab24[][] = { { 60, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 16 },
+ { 2, 1 }, { 0, 1 }, { 0, 17 }, { 14, 1 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 32 }, { 0, 2 },
+ { 0, 33 }, { 2, 1 }, { 0, 18 }, { 2, 1 }, { 0, 34 }, { 2, 1 }, { 0, 48 }, { 0, 3 },
+ { 14, 1 }, { 4, 1 }, { 2, 1 }, { 0, 49 }, { 0, 19 }, { 4, 1 }, { 2, 1 }, { 0, 50 },
+ { 0, 35 }, { 4, 1 }, { 2, 1 }, { 0, 64 }, { 0, 4 }, { 0, 65 }, { 8, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 20 }, { 0, 51 }, { 2, 1 }, { 0, 66 }, { 0, 36 }, { 6, 1 }, { 4, 1 }, { 2, 1 },
+ { 0, 67 }, { 0, 52 }, { 0, 81 }, { 6, 1 }, { 4, 1 }, { 2, 1 }, { 0, 80 }, { 0, 5 },
+ { 0, 21 }, { 2, 1 }, { 0, 82 }, { 0, 37 }, { 250, 1 }, { 98, 1 }, { 34, 1 }, { 18, 1 },
+ { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 68 }, { 0, 83 }, { 2, 1 }, { 0, 53 }, { 2, 1 },
+ { 0, 96 }, { 0, 6 }, { 4, 1 }, { 2, 1 }, { 0, 97 }, { 0, 22 }, { 2, 1 }, { 0, 98 },
+ { 0, 38 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 84 }, { 0, 69 }, { 2, 1 }, { 0, 99 },
+ { 0, 54 }, { 4, 1 }, { 2, 1 }, { 0, 113 }, { 0, 85 }, { 2, 1 }, { 0, 100 }, { 0, 70 },
+ { 32, 1 }, { 14, 1 }, { 6, 1 }, { 2, 1 }, { 0, 114 }, { 2, 1 }, { 0, 39 }, { 0, 55 },
+ { 2, 1 }, { 0, 115 }, { 4, 1 }, { 2, 1 }, { 0, 112 }, { 0, 7 }, { 0, 23 }, { 10, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 101 }, { 0, 86 }, { 4, 1 }, { 2, 1 }, { 0, 128 }, { 0, 8 },
+ { 0, 129 }, { 4, 1 }, { 2, 1 }, { 0, 116 }, { 0, 71 }, { 2, 1 }, { 0, 24 }, { 0, 130 },
+ { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 40 }, { 0, 102 }, { 2, 1 }, { 0, 131 },
+ { 0, 56 }, { 4, 1 }, { 2, 1 }, { 0, 117 }, { 0, 87 }, { 2, 1 }, { 0, 132 }, { 0, 72 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 145 }, { 0, 25 }, { 2, 1 }, { 0, 146 }, { 0, 118 },
+ { 4, 1 }, { 2, 1 }, { 0, 103 }, { 0, 41 }, { 2, 1 }, { 0, 133 }, { 0, 88 }, { 92, 1 },
+ { 34, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 147 }, { 0, 57 }, { 2, 1 },
+ { 0, 148 }, { 0, 73 }, { 4, 1 }, { 2, 1 }, { 0, 119 }, { 0, 134 }, { 2, 1 }, { 0, 104 },
+ { 0, 161 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 162 }, { 0, 42 }, { 2, 1 }, { 0, 149 },
+ { 0, 89 }, { 4, 1 }, { 2, 1 }, { 0, 163 }, { 0, 58 }, { 2, 1 }, { 0, 135 }, { 2, 1 },
+ { 0, 120 }, { 0, 74 }, { 22, 1 }, { 12, 1 }, { 4, 1 }, { 2, 1 }, { 0, 164 }, { 0, 150 },
+ { 4, 1 }, { 2, 1 }, { 0, 105 }, { 0, 177 }, { 2, 1 }, { 0, 27 }, { 0, 165 }, { 6, 1 },
+ { 2, 1 }, { 0, 178 }, { 2, 1 }, { 0, 90 }, { 0, 43 }, { 2, 1 }, { 0, 136 }, { 0, 179 },
+ { 16, 1 }, { 10, 1 }, { 6, 1 }, { 2, 1 }, { 0, 144 }, { 2, 1 }, { 0, 9 }, { 0, 160 },
+ { 2, 1 }, { 0, 151 }, { 0, 121 }, { 4, 1 }, { 2, 1 }, { 0, 166 }, { 0, 106 }, { 0, 180 },
+ { 12, 1 }, { 6, 1 }, { 2, 1 }, { 0, 26 }, { 2, 1 }, { 0, 10 }, { 0, 176 }, { 2, 1 },
+ { 0, 59 }, { 2, 1 }, { 0, 11 }, { 0, 192 }, { 4, 1 }, { 2, 1 }, { 0, 75 }, { 0, 193 },
+ { 2, 1 }, { 0, 152 }, { 0, 137 }, { 67, 1 }, { 34, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 28 }, { 0, 181 }, { 2, 1 }, { 0, 91 }, { 0, 194 }, { 4, 1 }, { 2, 1 },
+ { 0, 44 }, { 0, 167 }, { 2, 1 }, { 0, 122 }, { 0, 195 }, { 10, 1 }, { 6, 1 }, { 2, 1 },
+ { 0, 60 }, { 2, 1 }, { 0, 12 }, { 0, 208 }, { 2, 1 }, { 0, 182 }, { 0, 107 }, { 4, 1 },
+ { 2, 1 }, { 0, 196 }, { 0, 76 }, { 2, 1 }, { 0, 153 }, { 0, 168 }, { 16, 1 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 138 }, { 0, 197 }, { 2, 1 }, { 0, 92 }, { 0, 209 }, { 4, 1 },
+ { 2, 1 }, { 0, 183 }, { 0, 123 }, { 2, 1 }, { 0, 29 }, { 0, 210 }, { 9, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 45 }, { 0, 211 }, { 2, 1 }, { 0, 61 }, { 0, 198 }, { 85, 250 }, { 4, 1 },
+ { 2, 1 }, { 0, 108 }, { 0, 169 }, { 2, 1 }, { 0, 154 }, { 0, 212 }, { 32, 1 }, { 16, 1 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 184 }, { 0, 139 }, { 2, 1 }, { 0, 77 }, { 0, 199 },
+ { 4, 1 }, { 2, 1 }, { 0, 124 }, { 0, 213 }, { 2, 1 }, { 0, 93 }, { 0, 225 }, { 8, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 30 }, { 0, 226 }, { 2, 1 }, { 0, 170 }, { 0, 185 }, { 4, 1 },
+ { 2, 1 }, { 0, 155 }, { 0, 227 }, { 2, 1 }, { 0, 214 }, { 0, 109 }, { 20, 1 }, { 10, 1 },
+ { 6, 1 }, { 2, 1 }, { 0, 62 }, { 2, 1 }, { 0, 46 }, { 0, 78 }, { 2, 1 }, { 0, 200 },
+ { 0, 140 }, { 4, 1 }, { 2, 1 }, { 0, 228 }, { 0, 215 }, { 4, 1 }, { 2, 1 }, { 0, 125 },
+ { 0, 171 }, { 0, 229 }, { 10, 1 }, { 4, 1 }, { 2, 1 }, { 0, 186 }, { 0, 94 }, { 2, 1 },
+ { 0, 201 }, { 2, 1 }, { 0, 156 }, { 0, 110 }, { 8, 1 }, { 2, 1 }, { 0, 230 }, { 2, 1 },
+ { 0, 13 }, { 2, 1 }, { 0, 224 }, { 0, 14 }, { 4, 1 }, { 2, 1 }, { 0, 216 }, { 0, 141 },
+ { 2, 1 }, { 0, 187 }, { 0, 202 }, { 74, 1 }, { 2, 1 }, { 0, 255 }, { 64, 1 }, { 58, 1 },
+ { 32, 1 }, { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 172 }, { 0, 231 }, { 2, 1 },
+ { 0, 126 }, { 0, 217 }, { 4, 1 }, { 2, 1 }, { 0, 157 }, { 0, 232 }, { 2, 1 }, { 0, 142 },
+ { 0, 203 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 188 }, { 0, 218 }, { 2, 1 }, { 0, 173 },
+ { 0, 233 }, { 4, 1 }, { 2, 1 }, { 0, 158 }, { 0, 204 }, { 2, 1 }, { 0, 219 }, { 0, 189 },
+ { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 234 }, { 0, 174 }, { 2, 1 }, { 0, 220 },
+ { 0, 205 }, { 4, 1 }, { 2, 1 }, { 0, 235 }, { 0, 190 }, { 2, 1 }, { 0, 221 }, { 0, 236 },
+ { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 206 }, { 0, 237 }, { 2, 1 }, { 0, 222 }, { 0, 238 },
+ { 0, 15 }, { 4, 1 }, { 2, 1 }, { 0, 240 }, { 0, 31 }, { 0, 241 }, { 4, 1 }, { 2, 1 },
+ { 0, 242 }, { 0, 47 }, { 2, 1 }, { 0, 243 }, { 0, 63 }, { 18, 1 }, { 8, 1 }, { 4, 1 },
+ { 2, 1 }, { 0, 244 }, { 0, 79 }, { 2, 1 }, { 0, 245 }, { 0, 95 }, { 4, 1 }, { 2, 1 },
+ { 0, 246 }, { 0, 111 }, { 2, 1 }, { 0, 247 }, { 2, 1 }, { 0, 127 }, { 0, 143 }, { 10, 1 },
+ { 4, 1 }, { 2, 1 }, { 0, 248 }, { 0, 249 }, { 4, 1 }, { 2, 1 }, { 0, 159 }, { 0, 175 },
+ { 0, 250 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 251 }, { 0, 191 }, { 2, 1 }, { 0, 252 },
+ { 0, 207 }, { 4, 1 }, { 2, 1 }, { 0, 253 }, { 0, 223 }, { 2, 1 }, { 0, 254 }, { 0, 239 }, };
+
+ @LOC("FINAL")
+ private static int ValTab32[][] = { { 2, 1 }, { 0, 0 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 8 },
+ { 0, 4 }, { 2, 1 }, { 0, 1 }, { 0, 2 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 12 }, { 0, 10 },
+ { 2, 1 }, { 0, 3 }, { 0, 6 }, { 6, 1 }, { 2, 1 }, { 0, 9 }, { 2, 1 }, { 0, 5 }, { 0, 7 },
+ { 4, 1 }, { 2, 1 }, { 0, 14 }, { 0, 13 }, { 2, 1 }, { 0, 15 }, { 0, 11 }, };
+
+ @LOC("FINAL")
+ private static int ValTab33[][] = { { 16, 1 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 0 }, { 0, 1 },
+ { 2, 1 }, { 0, 2 }, { 0, 3 }, { 4, 1 }, { 2, 1 }, { 0, 4 }, { 0, 5 }, { 2, 1 }, { 0, 6 },
+ { 0, 7 }, { 8, 1 }, { 4, 1 }, { 2, 1 }, { 0, 8 }, { 0, 9 }, { 2, 1 }, { 0, 10 }, { 0, 11 },
+ { 4, 1 }, { 2, 1 }, { 0, 12 }, { 0, 13 }, { 2, 1 }, { 0, 14 }, { 0, 15 }, };
+
+ @LOC("FINAL")
+ public static huffcodetab[] ht = null; /* Simulate extern struct */
+
+ @LOC("FINAL")
+ private static int[] bitbuf = new int[32];
+
+ /**
+ * Big Constructor : Computes all Huffman Tables.
+ */
+ private huffcodetab(@LOC("V") String S, @LOC("V") int XLEN, @LOC("V") int YLEN,
+ @LOC("V") int LINBITS, @LOC("V") int LINMAX, @LOC("V") int REF,
+ @DELEGATE @LOC("V") int[] TABLE, @DELEGATE @LOC("V") int[] HLEN,
+ @DELEGATE @LOC("V") int[][] VAL, @LOC("V") int TREELEN) {
+ tablename0 = S.charAt(0);
+ tablename1 = S.charAt(1);
+ tablename2 = S.charAt(2);
+ xlen = XLEN;
+ ylen = YLEN;
+ linbits = LINBITS;
+ linmax = LINMAX;
+ ref = REF;
+ table = TABLE;
+ TABLE = null;
+ hlen = HLEN;
+ HLEN = null;
+ val = VAL;
+ VAL = null;
+ treelen = TREELEN;
+ }
+
+ /**
+ * Do the huffman-decoding. note! for counta,countb -the 4 bit value is
+ * returned in y, discard x.
+ */
+// @LATTICE("OUT<V1, THIS<V1,V1<V,V<IN,IN<C,C*,V*,THISLOC=THIS,GLOBALLOC=IN")
+ @LATTICE("OUT<THIS, THIS<V1,V1<V,V<IN,IN<C,C*,V*,THISLOC=THIS,GLOBALLOC=IN")
+ @RETURNLOC("OUT,BitReserve.BIT")
+ public static int huffman_decoder(@LOC("THIS,LayerIIIDecoder.SI2") int htIdx,
+ @LOC("OUT,BitReserve.BIT") int[] x, @LOC("OUT,BitReserve.BIT") int[] y,
+ @LOC("OUT,BitReserve.BIT") int[] v, @LOC("OUT,BitReserve.BIT") int[] w,
+ @LOC("THIS,LayerIIIDecoder.BR") BitReserve br) {
+ // array of all huffcodtable headers
+ // 0..31 Huffman code table 0..31
+ // 32,33 count1-tables
+
+ @LOC("C") int dmask = 1 << ((4 * 8) - 1);
+ @LOC("THIS,LayerIIIDecoder.SI1") int hs = 4 * 8;
+ @LOC("OUT,BitReserve.BIT") int level;
+ @LOC("OUT,BitReserve.BIT") int point = 0;
+ @LOC("OUT,BitReserve.BIT") int error = 1;
+ level = dmask;
+
+ if (ht[htIdx].val == null)
+ return 2;
+
+ /* table 0 needs no bits */
+ if (ht[htIdx].treelen == 0) {
+ x[0] = 0;
+ y[0] = 0;
+ return 0;
+ }
+
+ /* Lookup in Huffman table. */
+
+ /*
+ * int bitsAvailable = 0; int bitIndex = 0;
+ *
+ * int bits[] = bitbuf;
+ */
+ TERMINATE: do {
+ if (ht[htIdx].val[point][0] == 0) { /* end of tree */
+ x[0] = ht[htIdx].val[point][1] >>> 4;
+ y[0] = ht[htIdx].val[point][1] & 0xf;
+ error = 0;
+ break;
+ }
+
+ // hget1bit() is called thousands of times, and so needs to be
+ // ultra fast.
+ /*
+ * if (bitIndex==bitsAvailable) { bitsAvailable = br.readBits(bits, 32);
+ * bitIndex = 0; }
+ */
+ // if (bits[bitIndex++]!=0)
+ if (br.hget1bit() != 0) {
+ TERMINATE: while (ht[htIdx].val[point][1] >= MXOFF)
+ point += ht[htIdx].val[point][1];
+ point += ht[htIdx].val[point][1];
+ } else {
+ TERMINATE: while (ht[htIdx].val[point][0] >= MXOFF)
+ point += ht[htIdx].val[point][0];
+ point += ht[htIdx].val[point][0];
+ }
+ level >>>= 1;
+ // MDM: ht[0] is always 0;
+ } while ((level != 0) || (point < 0 /* ht[0].treelen */));
+
+ // put back any bits not consumed
+ /*
+ * int unread = (bitsAvailable-bitIndex); if (unread>0)
+ * br.rewindNbits(unread);
+ */
+ /* Process sign encodings for quadruples tables. */
+ // System.out.println(ht[htIdx].tablename);
+ if (ht[htIdx].tablename0 == '3' && (ht[htIdx].tablename1 == '2' || ht[htIdx].tablename1 == '3')) {
+ v[0] = (y[0] >> 3) & 1;
+ w[0] = (y[0] >> 2) & 1;
+ x[0] = (y[0] >> 1) & 1;
+ y[0] = y[0] & 1;
+
+ /*
+ * v, w, x and y are reversed in the bitstream. switch them around to make
+ * test bistream work.
+ */
+
+ if (v[0] != 0)
+ if (br.hget1bit() != 0)
+ v[0] = -v[0];
+ if (w[0] != 0)
+ if (br.hget1bit() != 0)
+ w[0] = -w[0];
+ if (x[0] != 0)
+ if (br.hget1bit() != 0)
+ x[0] = -x[0];
+ if (y[0] != 0)
+ if (br.hget1bit() != 0)
+ y[0] = -y[0];
+ } else {
+ // Process sign and escape encodings for dual tables.
+ // x and y are reversed in the test bitstream.
+ // Reverse x and y here to make test bitstream work.
+
+ if (ht[htIdx].linbits != 0)
+ if ((ht[htIdx].xlen - 1) == x[0])
+ x[0] += br.hgetbits(ht[htIdx].linbits);
+ if (x[0] != 0)
+ if (br.hget1bit() != 0)
+ x[0] = -x[0];
+ if (ht[htIdx].linbits != 0)
+ if ((ht[htIdx].ylen - 1) == y[0])
+ y[0] += br.hgetbits(ht[htIdx].linbits);
+ if (y[0] != 0)
+ if (br.hget1bit() != 0)
+ y[0] = -y[0];
+ }
+ return error;
+ }
+
+ public static void inithuff() {
+
+ if (ht != null)
+ return;
+
+ ht = new huffcodetab[HTN];
+ ht[0] = new huffcodetab("0 ", 0, 0, 0, 0, -1, null, null, ValTab0, 0);
+ ht[1] = new huffcodetab("1 ", 2, 2, 0, 0, -1, null, null, ValTab1, 7);
+ ht[2] = new huffcodetab("2 ", 3, 3, 0, 0, -1, null, null, ValTab2, 17);
+ ht[3] = new huffcodetab("3 ", 3, 3, 0, 0, -1, null, null, ValTab3, 17);
+ ht[4] = new huffcodetab("4 ", 0, 0, 0, 0, -1, null, null, ValTab4, 0);
+ ht[5] = new huffcodetab("5 ", 4, 4, 0, 0, -1, null, null, ValTab5, 31);
+ ht[6] = new huffcodetab("6 ", 4, 4, 0, 0, -1, null, null, ValTab6, 31);
+ ht[7] = new huffcodetab("7 ", 6, 6, 0, 0, -1, null, null, ValTab7, 71);
+ ht[8] = new huffcodetab("8 ", 6, 6, 0, 0, -1, null, null, ValTab8, 71);
+ ht[9] = new huffcodetab("9 ", 6, 6, 0, 0, -1, null, null, ValTab9, 71);
+ ht[10] = new huffcodetab("10 ", 8, 8, 0, 0, -1, null, null, ValTab10, 127);
+ ht[11] = new huffcodetab("11 ", 8, 8, 0, 0, -1, null, null, ValTab11, 127);
+ ht[12] = new huffcodetab("12 ", 8, 8, 0, 0, -1, null, null, ValTab12, 127);
+ ht[13] = new huffcodetab("13 ", 16, 16, 0, 0, -1, null, null, ValTab13, 511);
+ ht[14] = new huffcodetab("14 ", 0, 0, 0, 0, -1, null, null, ValTab14, 0);
+ ht[15] = new huffcodetab("15 ", 16, 16, 0, 0, -1, null, null, ValTab15, 511);
+ ht[16] = new huffcodetab("16 ", 16, 16, 1, 1, -1, null, null, ValTab16, 511);
+ ht[17] = new huffcodetab("17 ", 16, 16, 2, 3, 16, null, null, ValTab16, 511);
+ ht[18] = new huffcodetab("18 ", 16, 16, 3, 7, 16, null, null, ValTab16, 511);
+ ht[19] = new huffcodetab("19 ", 16, 16, 4, 15, 16, null, null, ValTab16, 511);
+ ht[20] = new huffcodetab("20 ", 16, 16, 6, 63, 16, null, null, ValTab16, 511);
+ ht[21] = new huffcodetab("21 ", 16, 16, 8, 255, 16, null, null, ValTab16, 511);
+ ht[22] = new huffcodetab("22 ", 16, 16, 10, 1023, 16, null, null, ValTab16, 511);
+ ht[23] = new huffcodetab("23 ", 16, 16, 13, 8191, 16, null, null, ValTab16, 511);
+ ht[24] = new huffcodetab("24 ", 16, 16, 4, 15, -1, null, null, ValTab24, 512);
+ ht[25] = new huffcodetab("25 ", 16, 16, 5, 31, 24, null, null, ValTab24, 512);
+ ht[26] = new huffcodetab("26 ", 16, 16, 6, 63, 24, null, null, ValTab24, 512);
+ ht[27] = new huffcodetab("27 ", 16, 16, 7, 127, 24, null, null, ValTab24, 512);
+ ht[28] = new huffcodetab("28 ", 16, 16, 8, 255, 24, null, null, ValTab24, 512);
+ ht[29] = new huffcodetab("29 ", 16, 16, 9, 511, 24, null, null, ValTab24, 512);
+ ht[30] = new huffcodetab("30 ", 16, 16, 11, 2047, 24, null, null, ValTab24, 512);
+ ht[31] = new huffcodetab("31 ", 16, 16, 13, 8191, 24, null, null, ValTab24, 512);
+ ht[32] = new huffcodetab("32 ", 1, 16, 0, 0, -1, null, null, ValTab32, 31);
+ ht[33] = new huffcodetab("33 ", 1, 16, 0, 0, -1, null, null, ValTab33, 31);
+ }
+}