Changeset 34088 for trunk/Ohana/src/libfits
- Timestamp:
- Jun 26, 2012, 11:46:01 AM (14 years ago)
- Location:
- trunk/Ohana/src/libfits
- Files:
-
- 5 edited
-
Makefile (modified) (1 diff)
-
extern/fits_hdecompress.c (modified) (4 diffs)
-
extern/ricecomp.c (modified) (12 diffs)
-
matrix/F_compress_M.c (modified) (3 diffs)
-
table/F_copy_T.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/Makefile
r31663 r34088 16 16 17 17 # programs may add their own internal requirements here 18 FULL_CFLAGS = $(BASE_CFLAGS) -fPIC -Wall -Werror18 FULL_CFLAGS = $(BASE_CFLAGS) -fPIC 19 19 FULL_CPPFLAGS = $(BASE_CPPFLAGS) -I$(EXT) 20 20 FULL_LDFLAGS = $(BASE_LDFLAGS) -lohana -
trunk/Ohana/src/libfits/extern/fits_hdecompress.c
r15487 r34088 1048 1048 { 1049 1049 LONGLONG sumall; 1050 int nel,stat;1050 int stat; 1051 1051 unsigned char nbitplanes[3]; 1052 1052 char tmagic[2]; … … 1071 1071 *scale=readint(infile); /* scale factor for digitization */ 1072 1072 1073 nel = (*nx) * (*ny);1073 // nel = (*nx) * (*ny); 1074 1074 1075 1075 /* sum of all pixels */ … … 1095 1095 */ 1096 1096 { 1097 int nel,stat;1097 int stat; 1098 1098 LONGLONG sumall; 1099 1099 unsigned char nbitplanes[3]; … … 1119 1119 *scale=readint(infile); /* scale factor for digitization */ 1120 1120 1121 nel = (*nx) * (*ny);1121 // nel = (*nx) * (*ny); 1122 1122 1123 1123 /* sum of all pixels */ -
trunk/Ohana/src/libfits/extern/ricecomp.c
r18269 r34088 59 59 { 60 60 Buffer bufmem, *buffer = &bufmem; 61 int bsize,i, j, thisblock;61 int i, j, thisblock; 62 62 int lastpix, nextpix, pdiff; 63 63 int v, fs, fsmask, top, fsmax, fsbits, bbits; … … 73 73 * compression of short & byte images. 74 74 */ 75 bsize = 4;75 // int bsize = 4; 76 76 77 77 /* nblock = 32; now an input parameter*/ … … 277 277 { 278 278 Buffer bufmem, *buffer = &bufmem; 279 int bsize,i, j, thisblock;279 int i, j, thisblock; 280 280 281 281 /* … … 299 299 * compression of short & byte images. 300 300 */ 301 bsize = 2;301 // bsize = 2; 302 302 303 303 /* nblock = 32; now an input parameter */ … … 501 501 { 502 502 Buffer bufmem, *buffer = &bufmem; 503 int bsize,i, j, thisblock;503 int i, j, thisblock; 504 504 505 505 /* … … 523 523 * compression of short & byte images. 524 524 */ 525 bsize = 1;525 // bsize = 1; 526 526 527 527 /* nblock = 32; now an input parameter */ … … 826 826 int nblock) /* coding block size */ 827 827 { 828 int bsize,i, k, imax;828 int i, k, imax; 829 829 int nbits, nzero, fs; 830 830 unsigned char *cend, bytevalue; … … 839 839 * compression of short & byte images. 840 840 */ 841 bsize = 4;841 // bsize = 4; 842 842 843 843 /* nblock = 32; now an input parameter */ … … 1014 1014 { 1015 1015 int i, imax; 1016 int bsize,k;1016 int k; 1017 1017 int nbits, nzero, fs; 1018 1018 unsigned char *cend, bytevalue; … … 1028 1028 */ 1029 1029 1030 bsize = 2;1030 // bsize = 2; 1031 1031 1032 1032 /* nblock = 32; now an input parameter */ … … 1200 1200 { 1201 1201 int i, imax; 1202 int bsize,k;1202 int k; 1203 1203 int nbits, nzero, fs; 1204 1204 unsigned char *cend; … … 1214 1214 */ 1215 1215 1216 bsize = 1;1216 // bsize = 1; 1217 1217 1218 1218 /* nblock = 32; now an input parameter */ -
trunk/Ohana/src/libfits/matrix/F_compress_M.c
r33648 r34088 45 45 float zscale, zzero; 46 46 47 int zdata_pixsize, odata_pixsize , idata_pixsize;47 int zdata_pixsize, odata_pixsize; 48 48 49 49 int *ztile = NULL; … … 236 236 zdata_pixsize = gfits_vartable_heap_pixsize (zdef.format); 237 237 238 // size of a pixel in the final image 239 idata_pixsize = abs(header[0].bitpix) / 8;238 // size of a pixel in the final image (not needed) 239 // idata_pixsize = abs(header[0].bitpix) / 8; 240 240 241 241 // size of a pixel in the output from the decompression routine … … 480 480 int gfits_compressed_is_primary (Header *header) { 481 481 482 int has_ztension, has_zimage;483 int ztension, zimage;484 485 has_zimage = gfits_scan_alt (header, "ZIMAGE", "%t", 1, &zimage);486 has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension);482 int zimage = FALSE; 483 // int ztension = FALSE; 484 485 int has_zimage = gfits_scan_alt (header, "ZIMAGE", "%t", 1, &zimage); 486 // int has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension); 487 487 488 488 if (has_zimage && zimage) return (TRUE); -
trunk/Ohana/src/libfits/table/F_copy_T.c
r31663 r34088 17 17 int gfits_copy_vtable (VTable *in, VTable *out) { 18 18 19 off_t i , Nx, Ny, Nrows;19 off_t i; 20 20 21 21 /* find buffer size */ 22 Nx = in[0].header[0].Naxis[0];23 Ny = in[0].header[0].Naxis[1];22 off_t Nx = in[0].header[0].Naxis[0]; 23 // off_t Ny = in[0].header[0].Naxis[1]; 24 24 25 25 // validate these two? … … 32 32 out[0].Nrow = in[0].Nrow; 33 33 34 Nrows = out[0].Nrow;34 off_t Nrows = out[0].Nrow; 35 35 36 36 ALLOCATE (out[0].row, off_t, MAX (Nrows, 1));
Note:
See TracChangeset
for help on using the changeset viewer.
