158 #if !defined(__MWERKS__)
162 #define VIIRS_BLOCKS_PER_REFERENCE 128
167 #define eq(a, b) (!strcmp((a), (b)))
168 #define eqn(a, b, n) (!strncmp((a), (b), (n)))
169 #define MIN(x,y) ((x)<(y)? (x): (y))
174 #define DEFAULT_BITS_PER_PIXEL 8
175 #define DEFAULT_BLOCKS_PER_SCANLINE 32
176 #define DEFAULT_PIXELS_PER_BLOCK 16
177 #define DEFAULT_PIXELS_PER_SCANLINE (DEFAULT_BLOCKS_PER_SCANLINE)*(DEFAULT_PIXELS_PER_BLOCK)
180 #define MAX_EXT2_SUM (MAX_EXT2*(MAX_EXT2+1)/2 + MAX_EXT2)
182 #define MAX_COMMAND_LINE_FILES 256
183 #define MAX_FILENAME_SIZE 256
185 #define MAX_ZERO_BLOCKS 64
188 #define MAX_BLOCKS_PER_SCANLINE 256
189 #define MAX_PIXELS_PER_BLOCK 32
190 #define MAX_PIXELS_PER_SCANLINE (MAX_BLOCKS_PER_SCANLINE)*(MAX_PIXELS_PER_BLOCK)
218 #define ID_DEFAULT 31
220 #define ID_DEFAULT1 7
221 #define ID_DEFAULT2 15
222 #define ID_DEFAULT3 31
227 #define MEMORY_DATA 2
236 #define INPUT_BUFFER_SIZE 65536*2
237 #define OUTPUT_BUFFER_SIZE 65536*2
247 {7, 8, 9, 10, 12, 14, 15, 16},
248 {8, 10, 12, 16, 18, 20, 24, 32},
249 {1, 2, 4, 6, 8, 10, 12, 16, 18, 20, 24, 32, 34, 36, 40, 48},
250 { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096,
251 3, 6, 12, 24, 48, 96, 192, 384, 768, 1536, 3072,
252 5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560,
253 9, 18, 36, 72, 144, 288, 576, 1152, 2304,
254 17, 34, 68, 136, 272, 544, 1088, 2176,
255 25, 50, 75, 100, 125, 150, 175, 200, 225, 250,
256 275, 300, 325, 350, 375, 400, 425, 450, 475, 500,
257 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000,
258 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1500,
259 1550, 1600, 1650, 1700, 1750, 1800, 1850, 1900, 1950, 2000,
260 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000,
261 3100, 3200, 3300, 3400, 3500, 3600, 3700, 3800, 3900, 4000}
264 #define ALLOW_K13_OPTION_MASK 1
265 #define CHIP_OPTION_MASK 2
266 #define EC_OPTION_MASK 4
267 #define LSB_OPTION_MASK 8
268 #define MSB_OPTION_MASK 16
269 #define NN_OPTION_MASK 32
270 #define OVERWRITE_OPTION_MASK 64
271 #define RAW_OPTION_MASK 128
272 #define KEEP_IMAGE_OPTION_MASK 256
273 #define KEEP_COMPRESSED_OPTION_MASK 512
275 #define SZIP_PROGRAM_NAME "szip"
276 #define SUNZIP_PROGRAM_NAME "sunzip"
278 #define MEMORY_ERROR (-2)
279 #define PARAM_ERROR (-4)
280 #define NO_ENCODER_ERROR (-5)