NCEPLIBS-g2  3.4.5
dec_jpeg2000.c File Reference

This Function decodes 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.

Typedefs

typedef long g2int
 Long Integer type. More...
 

Functions

int SUB_NAME (char *injpc, g2int *bufsize, g2int *outfld)
 This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard. More...
 

Detailed Description

This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard.

Author
Stephen Gilbert
Date
2002-12-02

Definition in file dec_jpeg2000.c.

Typedef Documentation

◆ g2int

typedef long g2int

Long Integer type.

Definition at line 18 of file dec_jpeg2000.c.

Function Documentation

◆ SUB_NAME()

int SUB_NAME ( char *  injpc,
g2int bufsize,
g2int outfld 
)

This Function decodes a JPEG2000 code stream specified in the JPEG2000 Part-1 standard.

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
[in]injpcInput JPEG2000 code stream.
[in]bufsizeLength (in bytes) of the input JPEG2000 code stream.
[in]outfldOutput matrix of grayscale image values. Only grayscale is expected.
Returns
- 0 = Successful decode
  • -3 = Error decode jpeg2000 code stream.
  • -5 = decoded image had multiple color components.
Note
Requires JasPer Software version 1.500.4 or 1.700.2
Author
Stephen Gilbert
Date
2002-12-02

Definition at line 52 of file dec_jpeg2000.c.