Changeset 25227
- Timestamp:
- Sep 1, 2009, 2:46:09 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksio.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksio.c
r25226 r25227 1224 1224 if (SFILE_IS_IMAGE(in)) { 1225 1225 // Turn off compression (code adapted from pmFPAWrite) 1226 #ifdef SAVE_AND_RESTORE_COMPRESSION1227 1226 int bitpix = out->fits->options ? out->fits->options->bitpix : 0; // Desired bits per pixel 1228 1227 psFitsCompression *compress = psFitsCompressionGet(out->fits); // Current compression options 1229 #endif1230 1228 if (!psFitsSetCompression(out->fits, PS_FITS_COMPRESS_NONE, NULL, 0, 0, 0)) { 1231 1229 psError(PM_ERR_UNKNOWN, false, "failed to turn off compression for extension %d\n", extnum); 1232 1230 streaksExit("", PS_EXIT_UNKNOWN_ERROR); 1233 1231 } 1234 #ifdef SAVE_AND_RESTORE_COMPRESSION1235 1232 if (out->fits->options) { 1236 1233 out->fits->options->bitpix = 0; 1237 1234 } 1238 #endif1239 1235 if (!psFitsWriteImage(out->fits, in->header, in->image, 0, in->extname)) { 1240 1236 psError(PM_ERR_UNKNOWN, false, "failed to write image for extension %d\n", extnum); 1241 1237 streaksExit("", PS_EXIT_UNKNOWN_ERROR); 1242 1238 } 1243 #ifdef SAVE_AND_RESTORE_COMPRESSION1244 1239 if (out->fits->options) { 1245 1240 out->fits->options->bitpix = bitpix; … … 1249 1244 streaksExit("", PS_EXIT_UNKNOWN_ERROR); 1250 1245 } 1251 #endif1252 1246 } else { 1253 1247 copyTable(out, in, extnum);
Note:
See TracChangeset
for help on using the changeset viewer.
