/usr/include/astrometry/qfits_convert.h is in astrometry.net 0.46-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /** Copyright 2009 Dustin Lang.
*/
/**
Converts a single pixel from C to FITS format.
"ctype" = PTYPE_FLOAT, PTYPE_INT, etc.
"fitstype" = BPP_8_UNSIGNED, BPP_16_SIGNED, etc.
"cval": pointer to C value (input)
"fitsval": pointer to FITS value (output)
Does byte-swapping, if necessary.
*/
int qfits_pixel_ctofits(int ctype, int fitstype,
const void* cval, void* fitsval);
/**
Returns the size in bytes of the given C pixel type.
*/
int qfits_pixel_ctype_size(int ctype);
/**
Returns the size in bytes of the given FITS pixel type.
*/
int qfits_pixel_fitstype_size(int fitstype);
|