cfitsio  3390
Macros | Functions
zcompress.c File Reference
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
Include dependency graph for zcompress.c:

Macros

#define GZBUFSIZE   115200 /* 40 FITS blocks */
 
#define BUFFINCR   28800 /* 10 FITS blocks */
 

Functions

int uncompress2mem (char *filename, FILE *diskfile, char **buffptr, size_t *buffsize, void *(*mem_realloc)(void *p, size_t newsize), size_t *filesize, int *status)
 
int uncompress2mem_from_mem (char *inmemptr, size_t inmemsize, char **buffptr, size_t *buffsize, void *(*mem_realloc)(void *p, size_t newsize), size_t *filesize, int *status)
 
int uncompress2file (char *filename, FILE *indiskfile, FILE *outdiskfile, int *status)
 
int compress2mem_from_mem (char *inmemptr, size_t inmemsize, char **buffptr, size_t *buffsize, void *(*mem_realloc)(void *p, size_t newsize), size_t *filesize, int *status)
 
int compress2file_from_mem (char *inmemptr, size_t inmemsize, FILE *outdiskfile, size_t *filesize, int *status)
 

Macro Definition Documentation

#define BUFFINCR   28800 /* 10 FITS blocks */
#define GZBUFSIZE   115200 /* 40 FITS blocks */

Function Documentation

int compress2file_from_mem ( char *  inmemptr,
size_t  inmemsize,
FILE *  outdiskfile,
size_t *  filesize,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int compress2mem_from_mem ( char *  inmemptr,
size_t  inmemsize,
char **  buffptr,
size_t *  buffsize,
void *(*)(void *p, size_t newsize)  mem_realloc,
size_t *  filesize,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int uncompress2file ( char *  filename,
FILE *  indiskfile,
FILE *  outdiskfile,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int uncompress2mem ( char *  filename,
FILE *  diskfile,
char **  buffptr,
size_t *  buffsize,
void *(*)(void *p, size_t newsize)  mem_realloc,
size_t *  filesize,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int uncompress2mem_from_mem ( char *  inmemptr,
size_t  inmemsize,
char **  buffptr,
size_t *  buffsize,
void *(*)(void *p, size_t newsize)  mem_realloc,
size_t *  filesize,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function: