OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
rice.h File Reference

Go to the source code of this file.

Macros

#define VIIRS_BLOCKS_PER_REFERENCE   128 /* RGA */
 
#define FALSE   0
 
#define TRUE   1
 
#define eq(a, b)   (!strcmp((a), (b)))
 
#define eqn(a, b, n)   (!strncmp((a), (b), (n)))
 
#define MIN(x, y)   ((x)<(y)? (x): (y))
 
#define EC_MODE   0
 
#define NN_MODE   1
 
#define DEFAULT_BITS_PER_PIXEL   8
 
#define DEFAULT_BLOCKS_PER_SCANLINE   32
 
#define DEFAULT_PIXELS_PER_BLOCK   16
 
#define DEFAULT_PIXELS_PER_SCANLINE   (DEFAULT_BLOCKS_PER_SCANLINE)*(DEFAULT_PIXELS_PER_BLOCK)
 
#define MAX_EXT2   7
 
#define MAX_EXT2_SUM   (MAX_EXT2*(MAX_EXT2+1)/2 + MAX_EXT2)
 
#define MAX_COMMAND_LINE_FILES   256
 
#define MAX_FILENAME_SIZE   256
 
#define MAX_ZERO_BLOCKS   64 /*** Must be a power of two ***/
 
#define MAX_BLOCKS_PER_SCANLINE   256
 
#define MAX_PIXELS_PER_BLOCK   32
 
#define MAX_PIXELS_PER_SCANLINE   (MAX_BLOCKS_PER_SCANLINE)*(MAX_PIXELS_PER_BLOCK)
 
#define ID_ZERO   -1
 
#define ID_LOW   0
 
#define ID_FS   1
 
#define ID_K1   2
 
#define ID_K2   3
 
#define ID_K3   4
 
#define ID_K4   5
 
#define ID_K5   6
 
#define ID_K6   7
 
#define ID_K7   8
 
#define ID_K8   9
 
#define ID_K9   10
 
#define ID_K10   11
 
#define ID_K11   12
 
#define ID_K12   13
 
#define ID_K13   14
 
#define ID_K14   15
 
#define ID_K15   16
 
#define ID_K16   17
 
#define ID_K17   18
 
#define ID_K18   19
 
#define ID_K19   20
 
#define ID_K20   21
 
#define ID_K21   22
 
#define ID_K22   23
 
#define ID_K23   24
 
#define ID_DEFAULT   31
 
#define ID_DEFAULT1   7
 
#define ID_DEFAULT2   15
 
#define ID_DEFAULT3   31
 
#define K_FACTOR   1
 
#define FILE_DATA   1
 
#define MEMORY_DATA   2
 
#define INPUT_BUFFER_SIZE   65536*2
 
#define OUTPUT_BUFFER_SIZE   65536*2
 
#define ALLOW_K13_OPTION_MASK   1
 
#define CHIP_OPTION_MASK   2
 
#define EC_OPTION_MASK   4
 
#define LSB_OPTION_MASK   8
 
#define MSB_OPTION_MASK   16
 
#define NN_OPTION_MASK   32
 
#define OVERWRITE_OPTION_MASK   64
 
#define RAW_OPTION_MASK   128
 
#define KEEP_IMAGE_OPTION_MASK   256
 
#define KEEP_COMPRESSED_OPTION_MASK   512
 
#define SZIP_PROGRAM_NAME   "szip"
 
#define SUNZIP_PROGRAM_NAME   "sunzip"
 
#define MEMORY_ERROR   (-2)
 
#define PARAM_ERROR   (-4)
 
#define NO_ENCODER_ERROR   (-5)
 

Typedefs

typedef int boolean
 

Macro Definition Documentation

◆ ALLOW_K13_OPTION_MASK

#define ALLOW_K13_OPTION_MASK   1

Definition at line 264 of file rice.h.

◆ CHIP_OPTION_MASK

#define CHIP_OPTION_MASK   2

Definition at line 265 of file rice.h.

◆ DEFAULT_BITS_PER_PIXEL

#define DEFAULT_BITS_PER_PIXEL   8

Definition at line 174 of file rice.h.

◆ DEFAULT_BLOCKS_PER_SCANLINE

#define DEFAULT_BLOCKS_PER_SCANLINE   32

Definition at line 175 of file rice.h.

◆ DEFAULT_PIXELS_PER_BLOCK

#define DEFAULT_PIXELS_PER_BLOCK   16

Definition at line 176 of file rice.h.

◆ DEFAULT_PIXELS_PER_SCANLINE

#define DEFAULT_PIXELS_PER_SCANLINE   (DEFAULT_BLOCKS_PER_SCANLINE)*(DEFAULT_PIXELS_PER_BLOCK)

Definition at line 177 of file rice.h.

◆ EC_MODE

#define EC_MODE   0

Definition at line 171 of file rice.h.

◆ EC_OPTION_MASK

#define EC_OPTION_MASK   4

Definition at line 266 of file rice.h.

◆ eq

#define eq (   a,
  b 
)    (!strcmp((a), (b)))

Definition at line 167 of file rice.h.

◆ eqn

#define eqn (   a,
  b,
 
)    (!strncmp((a), (b), (n)))

Definition at line 168 of file rice.h.

◆ FALSE

#define FALSE   0

Definition at line 164 of file rice.h.

◆ FILE_DATA

#define FILE_DATA   1

Definition at line 226 of file rice.h.

◆ ID_DEFAULT

#define ID_DEFAULT   31

Definition at line 218 of file rice.h.

◆ ID_DEFAULT1

#define ID_DEFAULT1   7

Definition at line 220 of file rice.h.

◆ ID_DEFAULT2

#define ID_DEFAULT2   15

Definition at line 221 of file rice.h.

◆ ID_DEFAULT3

#define ID_DEFAULT3   31

Definition at line 222 of file rice.h.

◆ ID_FS

#define ID_FS   1

Definition at line 194 of file rice.h.

◆ ID_K1

#define ID_K1   2

Definition at line 195 of file rice.h.

◆ ID_K10

#define ID_K10   11

Definition at line 204 of file rice.h.

◆ ID_K11

#define ID_K11   12

Definition at line 205 of file rice.h.

◆ ID_K12

#define ID_K12   13

Definition at line 206 of file rice.h.

◆ ID_K13

#define ID_K13   14

Definition at line 207 of file rice.h.

◆ ID_K14

#define ID_K14   15

Definition at line 208 of file rice.h.

◆ ID_K15

#define ID_K15   16

Definition at line 209 of file rice.h.

◆ ID_K16

#define ID_K16   17

Definition at line 210 of file rice.h.

◆ ID_K17

#define ID_K17   18

Definition at line 211 of file rice.h.

◆ ID_K18

#define ID_K18   19

Definition at line 212 of file rice.h.

◆ ID_K19

#define ID_K19   20

Definition at line 213 of file rice.h.

◆ ID_K2

#define ID_K2   3

Definition at line 196 of file rice.h.

◆ ID_K20

#define ID_K20   21

Definition at line 214 of file rice.h.

◆ ID_K21

#define ID_K21   22

Definition at line 215 of file rice.h.

◆ ID_K22

#define ID_K22   23

Definition at line 216 of file rice.h.

◆ ID_K23

#define ID_K23   24

Definition at line 217 of file rice.h.

◆ ID_K3

#define ID_K3   4

Definition at line 197 of file rice.h.

◆ ID_K4

#define ID_K4   5

Definition at line 198 of file rice.h.

◆ ID_K5

#define ID_K5   6

Definition at line 199 of file rice.h.

◆ ID_K6

#define ID_K6   7

Definition at line 200 of file rice.h.

◆ ID_K7

#define ID_K7   8

Definition at line 201 of file rice.h.

◆ ID_K8

#define ID_K8   9

Definition at line 202 of file rice.h.

◆ ID_K9

#define ID_K9   10

Definition at line 203 of file rice.h.

◆ ID_LOW

#define ID_LOW   0

Definition at line 193 of file rice.h.

◆ ID_ZERO

#define ID_ZERO   -1

Definition at line 192 of file rice.h.

◆ INPUT_BUFFER_SIZE

#define INPUT_BUFFER_SIZE   65536*2

Definition at line 236 of file rice.h.

◆ K_FACTOR

#define K_FACTOR   1

Definition at line 224 of file rice.h.

◆ KEEP_COMPRESSED_OPTION_MASK

#define KEEP_COMPRESSED_OPTION_MASK   512

Definition at line 273 of file rice.h.

◆ KEEP_IMAGE_OPTION_MASK

#define KEEP_IMAGE_OPTION_MASK   256

Definition at line 272 of file rice.h.

◆ LSB_OPTION_MASK

#define LSB_OPTION_MASK   8

Definition at line 267 of file rice.h.

◆ MAX_BLOCKS_PER_SCANLINE

#define MAX_BLOCKS_PER_SCANLINE   256

Definition at line 188 of file rice.h.

◆ MAX_COMMAND_LINE_FILES

#define MAX_COMMAND_LINE_FILES   256

Definition at line 182 of file rice.h.

◆ MAX_EXT2

#define MAX_EXT2   7

Definition at line 179 of file rice.h.

◆ MAX_EXT2_SUM

#define MAX_EXT2_SUM   (MAX_EXT2*(MAX_EXT2+1)/2 + MAX_EXT2)

Definition at line 180 of file rice.h.

◆ MAX_FILENAME_SIZE

#define MAX_FILENAME_SIZE   256

Definition at line 183 of file rice.h.

◆ MAX_PIXELS_PER_BLOCK

#define MAX_PIXELS_PER_BLOCK   32

Definition at line 189 of file rice.h.

◆ MAX_PIXELS_PER_SCANLINE

#define MAX_PIXELS_PER_SCANLINE   (MAX_BLOCKS_PER_SCANLINE)*(MAX_PIXELS_PER_BLOCK)

Definition at line 190 of file rice.h.

◆ MAX_ZERO_BLOCKS

#define MAX_ZERO_BLOCKS   64 /*** Must be a power of two ***/

Definition at line 185 of file rice.h.

◆ MEMORY_DATA

#define MEMORY_DATA   2

Definition at line 227 of file rice.h.

◆ MEMORY_ERROR

#define MEMORY_ERROR   (-2)

Definition at line 278 of file rice.h.

◆ MIN

#define MIN (   x,
 
)    ((x)<(y)? (x): (y))

Definition at line 169 of file rice.h.

◆ MSB_OPTION_MASK

#define MSB_OPTION_MASK   16

Definition at line 268 of file rice.h.

◆ NN_MODE

#define NN_MODE   1

Definition at line 172 of file rice.h.

◆ NN_OPTION_MASK

#define NN_OPTION_MASK   32

Definition at line 269 of file rice.h.

◆ NO_ENCODER_ERROR

#define NO_ENCODER_ERROR   (-5)

Definition at line 280 of file rice.h.

◆ OUTPUT_BUFFER_SIZE

#define OUTPUT_BUFFER_SIZE   65536*2

Definition at line 237 of file rice.h.

◆ OVERWRITE_OPTION_MASK

#define OVERWRITE_OPTION_MASK   64

Definition at line 270 of file rice.h.

◆ PARAM_ERROR

#define PARAM_ERROR   (-4)

Definition at line 279 of file rice.h.

◆ RAW_OPTION_MASK

#define RAW_OPTION_MASK   128

Definition at line 271 of file rice.h.

◆ SUNZIP_PROGRAM_NAME

#define SUNZIP_PROGRAM_NAME   "sunzip"

Definition at line 276 of file rice.h.

◆ SZIP_PROGRAM_NAME

#define SZIP_PROGRAM_NAME   "szip"

Definition at line 275 of file rice.h.

◆ TRUE

#define TRUE   1

Definition at line 165 of file rice.h.

◆ VIIRS_BLOCKS_PER_REFERENCE

#define VIIRS_BLOCKS_PER_REFERENCE   128 /* RGA */

Definition at line 162 of file rice.h.

Typedef Documentation

◆ boolean

typedef int boolean

Definition at line 159 of file rice.h.

Variable Documentation

◆ bits_per_pixel

int bits_per_pixel[8]

Definition at line 241 of file rice.h.

◆ pixels_per_block

int pixels_per_block[8]

Definition at line 242 of file rice.h.

◆ pixels_per_block_mult

int pixels_per_block_mult[16]

Definition at line 243 of file rice.h.

◆ scanlines_per_file

int scanlines_per_file[128]

Definition at line 244 of file rice.h.