NCEPLIBS-g2c
1.8.0
|
Encodes JPEG2000 code stream. More...
Go to the source code of this file.
Macros | |
#define | MAXOPTSSIZE 1024 |
Maximum size of options. More... | |
Functions | |
int | enc_jpeg2000 (unsigned char *cin, g2int width, g2int height, g2int nbits, g2int ltype, g2int ratio, g2int retry, char *outjpc, g2int jpclen) |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software. More... | |
int | g2c_enc_jpeg2000 (unsigned char *cin, int width, int height, int nbits, int ltype, int ratio, int retry, char *outjpc, size_t jpclen) |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software. More... | |
#define MAXOPTSSIZE 1024 |
Maximum size of options.
Definition at line 11 of file enc_jpeg2000.c.
int enc_jpeg2000 | ( | unsigned char * | cin, |
g2int | width, | ||
g2int | height, | ||
g2int | nbits, | ||
g2int | ltype, | ||
g2int | ratio, | ||
g2int | retry, | ||
char * | outjpc, | ||
g2int | jpclen | ||
) |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software.
Date | Programmer | Comments |
---|---|---|
2002-12-02 | Gilbert | Initial |
2004-12-16 | Gilbert | Added retry argument allowing increased guard bits. |
2022-04-15 | Hartnett | Converted to use jas_ instead of jpc_ functions. |
cin | Packed matrix of Grayscale image values to encode. |
width | width of image. |
height | height of image. |
nbits | depth (in bits) of image. i.e number of bits used to hold each data value. |
ltype | indicator of lossless or lossy compression.
|
ratio | target compression ratio. (ratio:1) Used only when ltype == 1. |
retry | If 1 try increasing number of guard bits. |
outjpc | Output encoded JPEG2000 code stream. |
jpclen | Number of bytes allocated for the output JPEG2000 code stream in outjpc. |
Definition at line 100 of file enc_jpeg2000.c.
References G2_JASPER_ENCODE, G2_JASPER_INIT, G2C_JASPER_JPEG_FORMAT_NAME, LOG, and MAXOPTSSIZE.
Referenced by g2c_enc_jpeg2000(), and jpcpack_int().
int g2c_enc_jpeg2000 | ( | unsigned char * | cin, |
int | width, | ||
int | height, | ||
int | nbits, | ||
int | ltype, | ||
int | ratio, | ||
int | retry, | ||
char * | outjpc, | ||
size_t | jpclen | ||
) |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software.
Date | Programmer | Comments |
---|---|---|
2002-12-02 | Gilbert | Initial |
2004-12-16 | Gilbert | Added retry argument allowing increased guard bits. |
2022-04-15 | Hartnett | Converted to use jas_ instead of jpc_ functions. |
cin | Packed matrix of Grayscale image values to encode. |
width | width of image. |
height | height of image. |
nbits | depth (in bits) of image. i.e number of bits used to hold each data value. |
ltype | indicator of lossless or lossy compression.
|
ratio | target compression ratio. (ratio:1) Used only when ltype == 1. |
retry | If 1 try increasing number of guard bits. |
outjpc | Output encoded JPEG2000 code stream. |
jpclen | Number of bytes allocated for the output JPEG2000 code stream in outjpc. |
Definition at line 51 of file enc_jpeg2000.c.
References enc_jpeg2000().