table of contents
jpcunpack.c(3) | NCEPLIBS-g2c | jpcunpack.c(3) |
NAME¶
jpcunpack.c - Unpack a data field that was packed into a JPEG2000 code stream.
SYNOPSIS¶
#include <stdio.h>
#include <stdlib.h>
#include 'grib2.h'
Functions¶
int dec_jpeg2000 (char *, g2int, g2int *)
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1
standard (i.e., ISO/IEC 15444-1) using JasPer Software version 1.500.4 (or
1.700.2) written by the University of British Columbia and Image Power Inc,
and others. g2int jpcunpack (unsigned char *cpack,
g2int len, g2int *idrstmpl, g2int ndpts, g2float
*fld)
This subroutine unpacks a data field that was packed into a JPEG2000 code
stream using info from the GRIB2 Data Representation Template 5.40 or
5.40000.
Detailed Description¶
Unpack a data field that was packed into a JPEG2000 code stream.
Author
Date
Definition in file jpcunpack.c.
Function Documentation¶
int dec_jpeg2000 (char * injpc, g2int bufsize, g2int * outfld)¶
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software version 1.500.4 (or 1.700.2) written by the University of British Columbia and Image Power Inc, and others. JasPer is available at http://www.ece.uvic.ca/~mdadams/jasper/.
Parameters
bufsize Length (in bytes) of the input JPEG2000 code stream.
outfld Output matrix of grayscale image values.
Returns
- 0 Successful decode
- -3 Error decode jpeg2000 code stream.
- -5 decoded image had multiple color components. Only grayscale is expected.
Note
Author
Date
Definition at line 43 of file dec_jpeg2000.c.
Referenced by jpcunpack().
g2int jpcunpack (unsigned char * cpack, g2int len, g2int * idrstmpl, g2int ndpts, g2float * fld)¶
This subroutine unpacks a data field that was packed into a JPEG2000 code stream using info from the GRIB2 Data Representation Template 5.40 or 5.40000.
Parameters
len length of packed field cpack.
idrstmpl Pointer to array of values for Data Representation Template 5.40 or 5.40000.
ndpts The number of data values to unpack.
fld Contains the unpacked data values.
Returns
Author
Date
Definition at line 29 of file jpcunpack.c.
References dec_jpeg2000(), int_power(), and rdieee().
Referenced by g2_unpack7().
Author¶
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Tue May 3 2022 | Version 1.6.4 |