Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
ricehdf.h File Reference

Go to the source code of this file.

Macros

#define SZ_ALLOW_K13_OPTION_MASK   1
 
#define SZ_CHIP_OPTION_MASK   2
 
#define SZ_EC_OPTION_MASK   4
 
#define SZ_LSB_OPTION_MASK   8
 
#define SZ_MSB_OPTION_MASK   16
 
#define SZ_NN_OPTION_MASK   32
 
#define SZ_RAW_OPTION_MASK   128
 
#define SZ_STREAM_ERROR   (-1)
 
#define SZ_MEM_ERROR   (-2)
 
#define SZ_INIT_ERROR   (-3)
 
#define SZ_PARAM_ERROR   (-4)
 
#define SZ_NO_ENCODER_ERROR   (-5)
 
#define SZ_MAX_BLOCKS_PER_SCANLINE   256
 
#define SZ_MAX_PIXELS_PER_BLOCK   32
 
#define SZ_MAX_PIXELS_PER_SCANLINE   (SZ_MAX_BLOCKS_PER_SCANLINE)*(SZ_MAX_PIXELS_PER_BLOCK)
 

Functions

long szip_compress_memory (int options_mask, int bits_per_pixel, int pixels_per_block, int pixels_per_scanline, const void *in, long pixels, char *out)
 
long szip_uncompress_memory (int new_options_mask, int new_bits_per_pixel, int new_pixels_per_block, int new_pixels_per_scanline, const char *in, long in_bytes, void *out, long out_pixels)
 
int szip_check_params (int bits_per_pixel, int pixels_per_block, int pixels_per_scanline, long image_pixels, char **msg)
 

Variables

int szip_allow_encoding
 

Macro Definition Documentation

◆ SZ_ALLOW_K13_OPTION_MASK

#define SZ_ALLOW_K13_OPTION_MASK   1

Definition at line 165 of file ricehdf.h.

◆ SZ_CHIP_OPTION_MASK

#define SZ_CHIP_OPTION_MASK   2

Definition at line 166 of file ricehdf.h.

◆ SZ_EC_OPTION_MASK

#define SZ_EC_OPTION_MASK   4

Definition at line 167 of file ricehdf.h.

◆ SZ_INIT_ERROR

#define SZ_INIT_ERROR   (-3)

Definition at line 175 of file ricehdf.h.

◆ SZ_LSB_OPTION_MASK

#define SZ_LSB_OPTION_MASK   8

Definition at line 168 of file ricehdf.h.

◆ SZ_MAX_BLOCKS_PER_SCANLINE

#define SZ_MAX_BLOCKS_PER_SCANLINE   256

Definition at line 179 of file ricehdf.h.

◆ SZ_MAX_PIXELS_PER_BLOCK

#define SZ_MAX_PIXELS_PER_BLOCK   32

Definition at line 180 of file ricehdf.h.

◆ SZ_MAX_PIXELS_PER_SCANLINE

#define SZ_MAX_PIXELS_PER_SCANLINE   (SZ_MAX_BLOCKS_PER_SCANLINE)*(SZ_MAX_PIXELS_PER_BLOCK)

Definition at line 181 of file ricehdf.h.

◆ SZ_MEM_ERROR

#define SZ_MEM_ERROR   (-2)

Definition at line 174 of file ricehdf.h.

◆ SZ_MSB_OPTION_MASK

#define SZ_MSB_OPTION_MASK   16

Definition at line 169 of file ricehdf.h.

◆ SZ_NN_OPTION_MASK

#define SZ_NN_OPTION_MASK   32

Definition at line 170 of file ricehdf.h.

◆ SZ_NO_ENCODER_ERROR

#define SZ_NO_ENCODER_ERROR   (-5)

Definition at line 177 of file ricehdf.h.

◆ SZ_PARAM_ERROR

#define SZ_PARAM_ERROR   (-4)

Definition at line 176 of file ricehdf.h.

◆ SZ_RAW_OPTION_MASK

#define SZ_RAW_OPTION_MASK   128

Definition at line 171 of file ricehdf.h.

◆ SZ_STREAM_ERROR

#define SZ_STREAM_ERROR   (-1)

Definition at line 173 of file ricehdf.h.

Function Documentation

◆ szip_check_params()

int szip_check_params ( int  bits_per_pixel,
int  pixels_per_block,
int  pixels_per_scanline,
long  image_pixels,
char **  msg 
)

◆ szip_compress_memory()

long szip_compress_memory ( int  options_mask,
int  bits_per_pixel,
int  pixels_per_block,
int  pixels_per_scanline,
const void *  in,
long  pixels,
char *  out 
)

◆ szip_uncompress_memory()

long szip_uncompress_memory ( int  new_options_mask,
int  new_bits_per_pixel,
int  new_pixels_per_block,
int  new_pixels_per_scanline,
const char *  in,
long  in_bytes,
void *  out,
long  out_pixels 
)

Variable Documentation

◆ szip_allow_encoding

int szip_allow_encoding