|
ocssw
1.0
|
Go to the source code of this file.
Functions | |
| int | endianess (void) |
| determine endianess | |
| void | parse_file_name (char *inpath, char *outpath) |
| int | swapc_bytes (char *in, int nbyte, int ntime) |
| int | swapc_bytes2 (const char *in, char *out, int nbyte, int ntime) |
| int | isleap (int year) |
| size_t | fread_swap (int little_endian, void *ptr, size_t size, size_t nmemb, FILE *stream) |
| size_t | fwrite_swap (int little_endian, const void *ptr, size_t size, size_t nmemb, FILE *stream) |
| void | spline (float[], float[], int, float, float, float[]) |
| void | splint (float[], float[], float[], int, float, float *) |
| void | lspline (float xin[], float yin[], int32_t nin, float xout[], float yout[], int32_t nout) |
| float | linterp (float xin[], float yin[], int32_t nin, float xout) |
| int32_t | filesize_ (const char *filename) |
| int32_t | filesize (const char *filename) |
| int | getlut_file (char *lut_file, short *rlut, short *glut, short *blut) |
| char * | lowcase (char *instr) |
| char * | upcase (char *instr) |
Variables | |
| int | want_verbose |
This is a bunch of useful general utilities.
Definition in file genutils.h.
| int endianess | ( | void | ) |
determine endianess
Is this machine little endian
Determines if the host calling this routine is a big or little endian machine.
Definition at line 27 of file b128_msk_get.c.
Definition at line 92 of file swl0_utils.c.
Definition at line 20 of file filesize.c.
| size_t fread_swap | ( | int | little_endian, |
| void * | ptr, | ||
| size_t | size, | ||
| size_t | nmemb, | ||
| FILE * | stream | ||
| ) |
read a binary file and swap bytes if necessary
| little_endian | set to 0 for big endian files, 1 for little endian files |
| ptr | memory to read into |
| size | size of object to read in bytes |
| nmemb | number of objects to read |
| stream | file to read from |
Definition at line 3 of file fread_swap.c.
| size_t fwrite_swap | ( | int | little_endian, |
| const void * | ptr, | ||
| size_t | size, | ||
| size_t | nmemb, | ||
| FILE * | stream | ||
| ) |
write a binary file and swap bytes if necessary
| little_endian | set to 0 for big endian files, 1 for little endian files |
| ptr | memory to write |
| size | size of object to write in bytes |
| nmemb | number of objects to write |
| stream | file to write to |
Definition at line 16 of file fread_swap.c.
| int getlut_file | ( | char * | lut_file, |
| short * | rlut, | ||
| short * | glut, | ||
| short * | blut | ||
| ) |
Definition at line 8 of file getlut_file.c.
| float linterp | ( | float | xin[], |
| float | yin[], | ||
| int32_t | nin, | ||
| float | xout | ||
| ) |
| void lspline | ( | float | xin[], |
| float | yin[], | ||
| int32_t | nin, | ||
| float | xout[], | ||
| float | yout[], | ||
| int32_t | nout | ||
| ) |
| void parse_file_name | ( | char * | inpath, |
| char * | outpath | ||
| ) |
Definition at line 18 of file parse_file_name.c.
| void spline | ( | float | [], |
| float | [], | ||
| int | , | ||
| float | , | ||
| float | , | ||
| float | [] | ||
| ) |
Definition at line 34 of file nr_spline.c.
| void splint | ( | float | [], |
| float | [], | ||
| float | [], | ||
| int | , | ||
| float | , | ||
| float * | |||
| ) |
Definition at line 76 of file nr_spline.c.
| int swapc_bytes | ( | char * | in, |
| int | nbyte, | ||
| int | ntime | ||
| ) |
Swap bytes in place
| in | pointer to memory to byte swap |
| nbyte | size of object to reverse |
| ntime | number of objects to swap |
Definition at line 34 of file b128_msk_get.c.
| int swapc_bytes2 | ( | const char * | in, |
| char * | out, | ||
| int | nbyte, | ||
| int | ntime | ||
| ) |
Swap bytes from in to out. in and out should not be overlapping memory
| in | pointer to source memory to byte swap |
| out | pointer to destination memory |
| nbyte | size of object to reverse |
| ntime | number of objects to swap |
Definition at line 26 of file swapc_bytes.c.
| int want_verbose |
Do we want to print out extra info to stdout
Definition at line 3 of file genutils_globals.c.
1.7.6.1