My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
imcompress.h
1 #define MAX_COMPRESS_DIM 6
2 #define COMPRESS_NULL_VALUE -2147483647
3 
4 typedef struct {
5  char zcmptype[12]; /* compression type string */
6  int compress_type; /* type of compression algorithm */
7  int bitpix; /* FITS data type of image (BITPIX) */
8  int ndim; /* dimension of image */
9  long naxis[MAX_COMPRESS_DIM]; /* length of each axis */
10  int cn_compressed; /* column number for COMPRESSED_DATA column */
11  int cn_uncompressed; /* column number for UNCOMPRESSED_DATA column */
12  int cn_zscale; /* column number for CSCALE column */
13  int cn_zzero; /* column number for CZERO column */
14  int cn_zblank; /* column number for the CBLANK column */
15  double zscale; /* scaling value, if keyword and not column */
16  double zzero; /* zero pt, if keyword and not column */
17  int zblank; /* value for null pixels, if not a column */
18  long nrows; /* number of rows in table */
19  int ncols; /* number of columns in table */
20  int rice_blocksize; /* first compression parameter */
21  int rice_nbits; /* second compression parameter */
22  long tilesize[MAX_COMPRESS_DIM]; /* size of compression tiles */
23  long maxtilelen; /* max number of pixels in each image tile */
24  long maxelem; /* maximum length of variable length arrays */
26 
27 /* image compression routines */
28 static int imcomp_get_image_params(fitsfile *infptr, CompressImageInfo *otb,
29  int *status);
30 static int imcomp_init_table(fitsfile *outfptr,
31  CompressImageInfo *otb, int *status);
32 static int imcomp_calc_max_elem (int nx, int blocksize);
33 static int imcomp_copy_imheader(fitsfile *infptr, fitsfile *outfptr,
34  int *status);
35 static int imcomp_img_to_tbl_special (char *card);
36 static int imcomp_compress_image (fitsfile *infptr, fitsfile *outfptr,
37  CompressImageInfo *otb, int *status);
38 
39 /* image decompression routines */
40 int fits_read_compressed_img_plane(fitsfile *fptr, int datatype,
41  int bytesperpixel, long nplane, long *firstcoord, long *lastcoord,
42  long *inc, long *naxes, int nullcheck, void *nullval,
43  void *array, char *nullarray, int *anynul, int *status);
44 static int imcomp_get_table_params(fitsfile *infptr, CompressImageInfo *itb,
45  int *status);
46 static int imcomp_copy_tblheader(fitsfile *infptr, fitsfile *outfptr,
47  int *status);
48 static int imcomp_tbl_to_img_special (char *keyname);
49 static int imcomp_decompress_tile (fitsfile *infptr, CompressImageInfo *itb,
50  int nrow, int tilesize, int datatype, int nullcheck,
51  void *nulval, void *buffer, char *bnullarray, int *anynul,
52  int *status);
53 static int imcomp_copy_overlap (char *tile, int datatype, int ndim,
54  long *tfpixel, long *tlpixel, char *bnullarray, char *image,
55  long *fpixel, long *lpixel, int nullcheck, char *nullarray,
56  int *status);
Definition: imcompress.h:4
Definition: tVideoCapabilitiesEml.cc:67
Definition: fitsio.h:248