- Timestamp:
- May 30, 2015, 1:49:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_uncompress_M.c
r38334 r38339 261 261 262 262 zdata = gfits_varlength_column_pointer (ftable, &zdef, row, &Nzdata); 263 if (!zdata) return (FALSE);263 if (!zdata) ESCAPE; 264 264 265 265 // XXX not certain this is the correct place to do the swap (or if zdata_pixsize is … … 267 267 268 268 if (strcasecmp(cmptype, "GZIP_1")) { 269 if (!gfits_byteswap_zdata (zdata, Nzdata, zdata_pixsize)) return (FALSE);269 if (!gfits_byteswap_zdata (zdata, Nzdata, zdata_pixsize)) ESCAPE; 270 270 } 271 271 272 272 // gfits_uncompress_data uncompresses from zdata to the temporary output buffer which must be allocated 273 273 // XXX the tile must not be > 2GB 274 if (!gfits_uncompress_data ((char *)zdata, Nzdata, cmptype, optname, optvalue, Noptions, out, &Nout, odata_pixsize)) return (FALSE);274 if (!gfits_uncompress_data ((char *)zdata, Nzdata, cmptype, optname, optvalue, Noptions, out, &Nout, odata_pixsize)) ESCAPE; 275 275 276 276 // copy the uncompressed pixels into their correct locations 277 if (!gfits_distribute_data (matrix, odata_pixsize, out, Nout, otile, oblank, ztile, zblank, zscale, zzero)) return (FALSE);277 if (!gfits_distribute_data (matrix, odata_pixsize, out, Nout, otile, oblank, ztile, zblank, zscale, zzero)) ESCAPE; 278 278 279 279 // update the tile counters, carrying to the next dimension if needed … … 287 287 } 288 288 } 289 290 FREE (ztile); 291 if (optname != NULL) { 292 for (j = 0; j < Noptions; j++) { 293 FREE (optname[j]); 294 FREE (optvalue[j]); 295 } 296 FREE (optname); 297 FREE (optvalue); 298 } 299 FREE (out); 300 FREE (otile); 301 FREE (ntile); 289 302 return (TRUE); 290 303 }
Note:
See TracChangeset
for help on using the changeset viewer.
