jpcunpack.c(3)

πŸ“¦
version 2.3.0 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– jpcunpack.c πŸ’– β€” a whole manual page from the Library Functions Manual, section 3 πŸŽ€

okay bestie, sit down, hydrate, and let's talk about the JPEG2000 unpacking situation, because this one is genuinely iconic ✨


🌸 NAME 🌸

jpcunpack.c β€” unpack a data field that was packed with JPEG2000. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

#include 'grib2_int.h'
#include <stdio.h>
#include <stdlib.h>

πŸ¦‹ Functions πŸ¦‹

  • int g2c_jpcunpackd (unsigned char *cpack, size_t len, int *idrstmpl, size_t ndpts, double *fld) β€” unpacks JPEG2000 compressed data into an array of doubles, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. doubles girlie πŸ’–
  • int g2c_jpcunpackf (unsigned char *cpack, size_t len, int *idrstmpl, size_t ndpts, float *fld) β€” unpacks JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. floats bestie 🫢
  • g2int jpcunpack (unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, float *fld) β€” unpacks JPEG2000 compressed data into an array of floats, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. the OG 😀
  • static int jpcunpack_int (unsigned char *cpack, g2int len, g2int *idrstmpl, g2int ndpts, void *fld, int fld_is_double, int verbose) β€” unpacks JPEG2000 compressed data into an array of floats or doubles, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. the backstage main character, lowkey runs the whole show 🧚

🌈 Detailed Description 🌈

Unpack a data field that was packed with JPEG2000.

stream

πŸ‘‘ Author πŸ‘‘

Stephem Gilbert

πŸ“… Date πŸ“…

2003-08-27

πŸ“‚ Definition in file πŸ“‚

jpcunpack.c.


πŸ’œ Function Documentation πŸ’œ

int g2c_jpcunpackd (unsigned char * cpack, size_t len, int * idrstmpl, size_t 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. This function is the V2 API version of jpcunpack() for doubles. she's the glow-up, no cap πŸ’…

Parameters

  • 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.

Returns

  • G2C_NOERROR β€” no error. we love a clean run ✨
  • G2C_ENOMEM β€” out of memory. the tragedy 😭

Author

Ed Hartnett

Date

2022-08-12

Definition at line 199 of file jpcunpack.c.

References

G2C_JPEG_DRS_TEMPLATE_LEN, jpcunpack_int(), and LOG.


int g2c_jpcunpackf (unsigned char * cpack, size_t len, int * idrstmpl, size_t 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. the float sibling, equally slay πŸ¦‹

Parameters

  • 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.

Returns

  • G2C_NOERROR β€” no error. ⭐
  • G2C_ENOMEM β€” out of memory. πŸ’€

Author

Ed Hartnett

Date

2022-09-08

Definition at line 159 of file jpcunpack.c.

References

G2C_JPEG_DRS_TEMPLATE_LEN, jpcunpack_int(), and LOG.


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. the original recipe, still serving looks since 2003 πŸŽ€

Parameters

  • 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.

Returns

  • G2C_NOERROR β€” no error. 🌸
  • G2_JPCUNPACK_MEM β€” out of memory. not the memory situation bestie πŸ™ˆ

Author

Stephem Gilbert

Date

2003-08-27

Definition at line 123 of file jpcunpack.c.

References

G2_JPCUNPACK_MEM, jpcunpack_int(), and LOG.

Referenced by

g2c_unpack7_int().


int jpcunpack_int (unsigned char * cpack, g2int len, g2int * idrstmpl, g2int ndpts, void * fld, int fld_is_double, int verbose) [static]

Unpack JPEG2000 compressed data into an array of floats or doubles, using info from the GRIB2 Data Representation Template 5.40 or 5.40000. This function is used by jpcunpack(), g2c_jpcunpackf(), and g2c_jpcunpackd(). yeah she's the one everybody calls, the main character energy is off the charts πŸ‘‘

Parameters

  • 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.
  • verbose β€” if non-zero, error messages will be printed in case of error. Otherwise, error codes will be return but no error messages printed. Calls to the original g2c API may cause error messages to be printed in case of error. For the new g2c_ API, no error messages will be printed β€” instead an error code will be returned. Call g2c_strerror() to get the error message for any error code. iykyk πŸ’…
heads up bestie: that verbose flag is a whole personality. the old g2c API might yap at you on error, but the new g2c_ API stays quiet and hands you an error code instead β€” then you go call g2c_strerror() to find out what it actually means. fr fr.

Returns

  • G2C_NOERROR β€” no error. ✨
  • G2C_ENOMEM β€” out of memory. 😭

Author

Ed Hartnett

Date

2022-09-06

Definition at line 44 of file jpcunpack.c.

References

dec_jpeg2000(), G2C_ENOMEM, G2C_NOERROR, int_power(), LOG, and rdieee().

Referenced by

g2c_jpcunpackd(), g2c_jpcunpackf(), and jpcunpack().


🫢 Author 🫢

Generated automatically by Doxygen for NCEPLIBS-g2c from the source code. a robot wrote the docs, a legend wrote the code, that's the vibe 🌈


and that's the whole page babes πŸ’– this was NCEPLIBS-g2c, Version 2.3.0, serving jpcunpack.c(3) realness β€” stay packed, stay iconic, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from