NCEPLIBS-g2c
1.8.0
|
Decodes JPEG2000 code stream. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "grib2_int.h"
#include "jasper/jasper.h"
Go to the source code of this file.
Functions | |
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. More... | |
int | g2c_dec_jpeg2000 (char *injpc, size_t bufsize, int *outfld) |
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software. More... | |
static int | int_dec_jpeg2000 (char *injpc, g2int bufsize, void *outfld, int out_is_g2int) |
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software. More... | |
Decodes JPEG2000 code stream.
Date | Programmer | Comments |
---|---|---|
2002-12-02 | Gilbert | Initial |
2022-04-15 | Hartnett | Converted to use jas_ instead of jpc_ functions. |
Definition in file dec_jpeg2000.c.
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software.
injpc | Pointer to buffer that holds the input JPEG2000 code stream. |
bufsize | Length (in bytes) of the buffer that holds the input JPEG2000 code stream. |
outfld | Pointer to g2int array, already allocated, that gets the unpacked data. |
Definition at line 201 of file dec_jpeg2000.c.
References int_dec_jpeg2000().
Referenced by jpcunpack_int().
int g2c_dec_jpeg2000 | ( | char * | injpc, |
size_t | bufsize, | ||
int * | outfld | ||
) |
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software.
injpc | Pointer to buffer that holds the input JPEG2000 code stream. |
bufsize | Length (in bytes) of the buffer that holds the input JPEG2000 code stream. |
outfld | Pointer to int array, already allocated, that gets the unpacked data. |
Definition at line 174 of file dec_jpeg2000.c.
References int_dec_jpeg2000().
|
static |
This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard (i.e., ISO/IEC 15444-1) using JasPer Software.
injpc | Pointer to buffer that holds the input JPEG2000 code stream. |
bufsize | Length (in bytes) of the buffer that holds the input JPEG2000 code stream. |
outfld | Pointer to either int or g2int array, already allocated, that gets the unpacked data. |
out_is_g2int | Non-zero if the output array is of type g2int (i.e. 64-bit ints), zero if output is an int array (32-bits). |
Definition at line 44 of file dec_jpeg2000.c.
References G2_JASPER_DECODE, G2_JASPER_DECODE_COLOR, G2_JASPER_INIT, G2C_JASPER_JPEG_FORMAT_NAME, G2C_JASPER_MAX_MEM, and LOG.
Referenced by dec_jpeg2000(), and g2c_dec_jpeg2000().