NCEPLIBS-g2  3.5.0
jpeg.h File Reference

Header for JPEG C code. More...

Go to the source code of this file.

Macros

#define G2_JASPER_DECODE   -3
 In dec_jpeg2000() error decoding image with jasper. More...
 
#define G2_JASPER_DECODE_COLOR   -5
 In dec_jpeg2000() decoded image had multiple color components. More...
 
#define G2_JASPER_ENCODE   -3
 In enc_jpeg2000() error encoding image with jasper. More...
 
#define G2_JASPER_INIT   -2
 In enc_jpeg2000()/dec_jpeg2000() error initializing jasper library. More...
 
#define G2C_JASPER_JPEG_FORMAT_NAME   "jpc"
 Name of JPEG codec in Jasper. More...
 
#define G2C_JASPER_MAX_MEMORY   1073741824
 Max memory size setting for Jasper. More...
 

Typedefs

typedef float g2float
 Float type. More...
 
typedef int64_t g2int
 Long integer type. More...
 
typedef uint64_t g2intu
 Unsigned long integer type. More...
 

Detailed Description

Header for JPEG C code.

Author
Ed Hartnett
Date
12/23/22

Definition in file jpeg.h.

Macro Definition Documentation

◆ G2_JASPER_DECODE

#define G2_JASPER_DECODE   -3

In dec_jpeg2000() error decoding image with jasper.

Definition at line 21 of file jpeg.h.

◆ G2_JASPER_DECODE_COLOR

#define G2_JASPER_DECODE_COLOR   -5

In dec_jpeg2000() decoded image had multiple color components.

Definition at line 22 of file jpeg.h.

◆ G2_JASPER_ENCODE

#define G2_JASPER_ENCODE   -3

In enc_jpeg2000() error encoding image with jasper.

Definition at line 20 of file jpeg.h.

◆ G2_JASPER_INIT

#define G2_JASPER_INIT   -2

In enc_jpeg2000()/dec_jpeg2000() error initializing jasper library.

Definition at line 19 of file jpeg.h.

◆ G2C_JASPER_JPEG_FORMAT_NAME

#define G2C_JASPER_JPEG_FORMAT_NAME   "jpc"

Name of JPEG codec in Jasper.

Definition at line 25 of file jpeg.h.

◆ G2C_JASPER_MAX_MEMORY

#define G2C_JASPER_MAX_MEMORY   1073741824

Max memory size setting for Jasper.

This can be over-ridden at run-time by setting environment variable G2_JASPER_MAXMEM.

Definition at line 29 of file jpeg.h.

Typedef Documentation

◆ g2float

typedef float g2float

Float type.

This typedef is provided for backward compatibility and is not used by the library any more. Use float in new code.

Definition at line 17 of file jpeg.h.

◆ g2int

typedef int64_t g2int

Long integer type.

Definition at line 9 of file jpeg.h.

◆ g2intu

typedef uint64_t g2intu

Unsigned long integer type.

This typedef is provided for backward compatibility and is not used by the library any more.

Definition at line 13 of file jpeg.h.