- Timestamp:
- May 30, 2015, 7:59:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/matrix/F_uncompress_M.c
r38339 r38340 249 249 // size of a pixel in the output from the decompression routine 250 250 odata_pixsize = gfits_uncompressed_data_pixsize (cmptype, header[0].bitpix, optname, optvalue, Noptions); 251 ALLOCATE (out, char, odata_pixsize*max_tile_size); 251 252 int Nout_alloc = odata_pixsize*max_tile_size; 253 ALLOCATE (out, char, Nout_alloc); 252 254 253 255 off_t row; … … 258 260 259 261 // expected output size for this tile 260 Nout = gfits_tile_size (matrix, otile, ztile); 262 // Nout = gfits_tile_size (matrix, otile, ztile); 263 Nout = Nout_alloc; 261 264 262 265 zdata = gfits_varlength_column_pointer (ftable, &zdef, row, &Nzdata); … … 273 276 // XXX the tile must not be > 2GB 274 277 if (!gfits_uncompress_data ((char *)zdata, Nzdata, cmptype, optname, optvalue, Noptions, out, &Nout, odata_pixsize)) ESCAPE; 278 279 if (!strcasecmp(cmptype, "GZIP_1")) { 280 if (!gfits_byteswap_zdata (out, Nout, odata_pixsize)) ESCAPE; 281 } 275 282 276 283 // copy the uncompressed pixels into their correct locations … … 387 394 SETUP_INSIZE (int, 4); 388 395 break; 396 case 8: 397 SETUP_INSIZE (double, 8); 398 break; 389 399 default: 390 400 abort();
Note:
See TracChangeset
for help on using the changeset viewer.
