001/* JOrbis 002 * Copyright (C) 2000 ymnk, JCraft,Inc. 003 * 004 * Written by: 2000 ymnk<ymnk@jcaft.com> 005 * 006 * Many thanks to 007 * Monty <monty@xiph.org> and 008 * The XIPHOPHORUS Company http://www.xiph.org/ . 009 * JOrbis has been based on their awesome works, Vorbis codec. 010 * 011 * This program is free software; you can redistribute it and/or 012 * modify it under the terms of the GNU Library General Public License 013 * as published by the Free Software Foundation; either version 2 of 014 * the License, or (at your option) any later version. 015 016 * This program is distributed in the hope that it will be useful, 017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 019 * GNU Library General Public License for more details. 020 * 021 * You should have received a copy of the GNU Library General Public 022 * License along with this program; if not, write to the Free Software 023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 024 */ 025 026package com.jcraft.jorbis; 027 028import com.jcraft.jogg.*; 029 030class Residue1 extends Residue0{ 031 int forward(Block vb,Object vl, float[][] in, int ch){ 032 System.err.println("Residue0.forward: not implemented"); 033 return 0; 034 } 035 036 int inverse(Block vb, Object vl, float[][] in, int[] nonzero, int ch){ 037//System.err.println("Residue0.inverse"); 038 int used=0; 039 for(int i=0; i<ch; i++){ 040 if(nonzero[i]!=0){ 041 in[used++]=in[i]; 042 } 043 } 044 if(used!=0){ 045 return(_01inverse(vb,vl,in,used,1)); 046 } 047 else{ 048 return 0; 049 } 050 } 051}