MISR Toolkit  1.5.1
Macros | Functions | Variables
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   128
 
#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 44 of file ricehdf.h.

◆ SZ_CHIP_OPTION_MASK

#define SZ_CHIP_OPTION_MASK   2

Definition at line 45 of file ricehdf.h.

◆ SZ_EC_OPTION_MASK

#define SZ_EC_OPTION_MASK   4

Definition at line 46 of file ricehdf.h.

◆ SZ_INIT_ERROR

#define SZ_INIT_ERROR   (-3)

Definition at line 54 of file ricehdf.h.

◆ SZ_LSB_OPTION_MASK

#define SZ_LSB_OPTION_MASK   8

Definition at line 47 of file ricehdf.h.

◆ SZ_MAX_BLOCKS_PER_SCANLINE

#define SZ_MAX_BLOCKS_PER_SCANLINE   128

Definition at line 58 of file ricehdf.h.

◆ SZ_MAX_PIXELS_PER_BLOCK

#define SZ_MAX_PIXELS_PER_BLOCK   32

Definition at line 59 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 60 of file ricehdf.h.

◆ SZ_MEM_ERROR

#define SZ_MEM_ERROR   (-2)

Definition at line 53 of file ricehdf.h.

◆ SZ_MSB_OPTION_MASK

#define SZ_MSB_OPTION_MASK   16

Definition at line 48 of file ricehdf.h.

◆ SZ_NN_OPTION_MASK

#define SZ_NN_OPTION_MASK   32

Definition at line 49 of file ricehdf.h.

◆ SZ_NO_ENCODER_ERROR

#define SZ_NO_ENCODER_ERROR   (-5)

Definition at line 56 of file ricehdf.h.

◆ SZ_PARAM_ERROR

#define SZ_PARAM_ERROR   (-4)

Definition at line 55 of file ricehdf.h.

◆ SZ_RAW_OPTION_MASK

#define SZ_RAW_OPTION_MASK   128

Definition at line 50 of file ricehdf.h.

◆ SZ_STREAM_ERROR

#define SZ_STREAM_ERROR   (-1)

Definition at line 52 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

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53