Diff of /filterbank/filterbankwin.m [76dce7] .. [89ea83] Maximize Restore

  Switch to side-by-side view

--- a/filterbank/filterbankwin.m
+++ b/filterbank/filterbankwin.m
@@ -67,7 +67,8 @@
 %        True if the frame generated by the window has a fast factorization.
 %
 %   See also: filterbank, filterbankdual, filterbankrealdual
-  
+
+% TO DO: Why is there a realtype flag?
 % Assert correct input.
 if nargin<2
   error('%s: Too few input parameters.',upper(mfilename));
@@ -115,6 +116,7 @@
 
 info.M=numel(g);
 info.gl=zeros(info.M,1);
+info.offset=zeros(info.M,1);
 info.ispainless=1;
 info.isfractional=0;
 info.isuniform=0;
@@ -133,6 +135,7 @@
     else
         info.ispainless=0;
         info.gl(m)=numel(g{m}.h);
+        info.offset(m)=g{m}.offset;
     end;
     
     % info.isfir==1 only if all filters are FIR
@@ -145,14 +148,15 @@
 
 info.isfac=info.isuniform || info.ispainless;
 
-info.longestfilter=max(info.gl);
-
 if info.isfractional && info.isuniform
     error('%s: The uniform algorithms cannot handle fractional downsampling.', ...
           upper(mfilename));
 end;
 
-  
-if L<info.longestfilter
-  error('%s: One of the windows is longer than the transform length= %i.',upper(mfilename),info.longestfilter);
-end;
+if info.isfir
+   info.longestfilter=max(info.gl);
+
+   if L<info.longestfilter
+     error('%s: One of the windows is longer than the transform length= %i.',upper(mfilename),info.longestfilter);
+   end;
+end