NCEPLIBS-g2c
1.7.0
|
Unpack a data field that was packed into a JPEG2000 code stream. More...
Go to the source code of this file.
Functions | |
g2int | jpcunpack (unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, float *fld) |
Unpack JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. More... | |
static g2int | jpcunpack_int (unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, void *fld, int fld_is_double) |
Unpack JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. More... | |
g2int | jpcunpackd (unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, double *fld) |
Unpack JPEG2000 compressed data into an array of doubles, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. More... | |
Unpack a data field that was packed into a JPEG2000 code stream.
Definition in file jpcunpack.c.
Unpack JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000.
cpack | The packed data. |
len | The length of the packed data. |
idrstmpl | Pointer to array of values for Data Representation Template 5.40 or 5.40000. |
ndpts | The number of data values to unpack. |
fld | A pointer that gets the unpacked data values as an array of float. |
Definition at line 108 of file jpcunpack.c.
References jpcunpack_int().
Referenced by g2_unpack7().
|
static |
Unpack JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000.
cpack | The packed data. |
len | The length of the packed data. |
idrstmpl | Pointer to array of values for Data Representation Template 5.40 or 5.40000. |
ndpts | The number of data values to unpack. |
fld | A pointer that gets the unpacked data values. |
fld_is_double | Non-zero if the data are to be unpacked into a double array, otherwise data will be unpacked into a float array. |
Definition at line 33 of file jpcunpack.c.
References dec_jpeg2000(), G2_JPCUNPACK_MEM, G2_NO_ERROR, int_power(), and rdieee().
Referenced by jpcunpack(), and jpcunpackd().
Unpack JPEG2000 compressed data into an array of doubles, using info from the GRIB2 Data Representation Template 5.40 or 5.40000.
cpack | The packed data. |
len | The length of the packed data. |
idrstmpl | Pointer to array of values for Data Representation Template 5.40 or 5.40000. |
ndpts | The number of data values to unpack. |
fld | A pointer that gets the unpacked data values as an array of double. |
Definition at line 135 of file jpcunpack.c.
References jpcunpack_int().