Skip to content

Commit

Permalink
update ricecomp.c to CFITSIO 4.5.0 version with our mods - #496
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Oct 22, 2024
1 parent 55415b1 commit 42bc210
Show file tree
Hide file tree
Showing 4 changed files with 1,147 additions and 460 deletions.
6 changes: 2 additions & 4 deletions Libtmp/Compression/compression.pd
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ EOD
CHeader => qq{#include "ricecomp.h"\n},
Code => <<'EOD',
char *err = "error message not updated";
$len() = rcomp(&err, $P(in),
sizeof($GENERIC(in)),
$len() = fits_rcomp$TBSUL(_byte,_short,_short,)(&err, $P(in),
$SIZE(n),
(unsigned char *)($P(out)),
$SIZE(m) * sizeof($GENERIC(out)),
Expand Down Expand Up @@ -180,10 +179,9 @@ Unsquishes a PDL that has been squished by rice_compress.
EOD
CHeader => qq{#include "ricecomp.h"\n},
Code=><<'EOD',
char *err = rdecomp( (unsigned char *)($P(in)),
char *err = fits_rdecomp$TBSUL(_byte,_short,_short,)( (unsigned char *)($P(in)),
$len(),
$P(out),
sizeof($GENERIC(out)),
$SIZE(m),
$COMP(blocksize)
);
Expand Down
Loading

0 comments on commit 42bc210

Please sign in to comment.