/[libvob]/libvob/org/nongnu/libvob/gl/MipzipLoader.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/gl/MipzipLoader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Wed Mar 26 18:13:25 2003 UTC revision 1.2 by tjl, Wed Apr 23 01:27:48 2003 UTC
# Line 88  public class MipzipLoader { Line 88  public class MipzipLoader {
88    
89      private final Level[] levels;      private final Level[] levels;
90    
91        public final float origWidth, origHeight;
92    
93      /** Open (if not already open) and return the ZipFile.      /** Open (if not already open) and return the ZipFile.
94       */       */
95      synchronized private ZipFile getZipFile() throws IOException {      synchronized private ZipFile getZipFile() throws IOException {
# Line 471  public class MipzipLoader { Line 473  public class MipzipLoader {
473              if(e == null) throw new IOException("Invalid format: no texformat in mipzip");              if(e == null) throw new IOException("Invalid format: no texformat in mipzip");
474              this.texFormat = e.getComment();              this.texFormat = e.getComment();
475              this.compressedFormat = texFormat.indexOf("COMPRESS") != -1;              this.compressedFormat = texFormat.indexOf("COMPRESS") != -1;
476    
477                e = f.getEntry("origsize");
478                if(e == null) throw new IOException("Invalid format: no origsize in mipzip");
479                String origSize = e.getComment();
480    
481                {
482                    int i = origSize.indexOf('x');
483                    if(i < 0) throw new IOException("Invalid size string");
484                    origWidth = Float.parseFloat(origSize.substring(0,i));
485                    origHeight = Float.parseFloat(origSize.substring(i+1));
486                }
487    
488    
489              ArrayList l = new ArrayList();              ArrayList l = new ArrayList();
490              for(int i=0; i<100; i++) {              for(int i=0; i<100; i++) {
491                  e = f.getEntry(""+i);                  e = f.getEntry(""+i);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26