|
NCEPLIBS-g2
3.4.5
|
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "jasper/jasper.h"Go to the source code of this file.
Macros | |
| #define | JAS_1_700_2 |
| Define jasper type. More... | |
| #define | MAXOPTSSIZE 1024 |
| This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard. More... | |
Typedefs | |
| typedef long | g2int |
| Long Integer type. More... | |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard.
Definition in file enc_jpeg2000.c.
| #define JAS_1_700_2 |
Define jasper type.
Definition at line 12 of file enc_jpeg2000.c.
| int MAXOPTSSIZE 1024 |
This Function encodes a grayscale image into a JPEG2000 code stream specified in the JPEG2000 Part-1 standard.
It uses JasPer Software version 1.500.4 (or 1.700.2 ) written by the University of British Columbia, Image Power Inc, and others. JasPer is available at http: * www.ece.uvic.ca/~mdadams/jasper/.
PROGRAM HISTORY LOG:
| [in] | cin | Packed matrix of Grayscale image values to encode. |
| [in] | pwidth | Pointer to width of image |
| [in] | pheight | Pointer to height of image |
| [in] | pnbits | Pointer to depth (in bits) of image. i.e number of bits used to hold each data value |
| [in] | ltype | Pointer to indicator of lossless or lossy compression
|
| [in] | ratio | Pointer to target compression ratio. (ratio:1) Used only when *ltype == 1. |
| [in] | retry | - Pointer to option type. 1 = try increasing number of guard bits otherwise, no additional options |
| [in] | jpclen | - Number of bytes allocated for new JPEG2000 code stream in outjpc. |
| [in] | outjpc | - Output encoded JPEG2000 code stream |
| typedef long g2int |
Long Integer type.
Definition at line 17 of file enc_jpeg2000.c.