Changeset 13811
- Timestamp:
- 02/17/08 15:47:16 (5 months ago)
- Files:
-
- trunk/gdal/frmts/gff/gff_dataset.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/gff/gff_dataset.cpp
r12779 r13811 69 69 long nOffsetMantissa; 70 70 public: 71 GFFDataset(); 72 ~GFFDataset(); 73 71 74 static GDALDataset *Open( GDALOpenInfo * ); 72 75 static int Identify( GDALOpenInfo * poOpenInfo ); 73 76 }; 77 78 GFFDataset::GFFDataset() 79 { 80 fp = NULL; 81 } 82 83 GFFDataset::~GFFDataset() 84 { 85 if (fp != NULL) 86 VSIFClose(fp); 87 } 74 88 75 89 /********************************************************************* … … 190 204 VSIFSeek(poDS->fp,56,SEEK_SET); 191 205 192 VSIFRead(&poDS->nBPP,4,1,poDS->fp); 206 /* By looking at the Matlab code, one should write something like the following test */ 207 /* but the results don't seem to be the ones really expected */ 208 /*if ((poDS->nVersionMajor == 1 && poDS->nVersionMinor > 7) || (poDS->nVersionMajor > 1)) 209 { 210 float fBPP; 211 VSIFRead(&fBPP,4,1,poDS->fp); 212 poDS->nBPP = fBPP; 213 } 214 else*/ 215 { 216 VSIFRead(&poDS->nBPP,4,1,poDS->fp); 217 } 193 218 VSIFRead(&poDS->nFrameCnt,4,1,poDS->fp); 194 219 VSIFRead(&poDS->nImageType,4,1,poDS->fp);
