OpenJPEG  2.3.1
Functions
jp2k_decoder.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include "jp2k_decoder.h"
#include "openjpeg.h"

Functions

static void error_callback (const char *msg, void *client_data)
 sample error callback expecting a FILE* client object More...
 
static void warning_callback (const char *msg, void *client_data)
 sample warning callback expecting a FILE* client object More...
 
static void info_callback (const char *msg, void *client_data)
 sample debug callback expecting no client object More...
 
static Byte_timagetopnm (opj_image_t *image, ihdrbox_param_t **ihdrbox)
 
Byte_tj2k_to_pnm (const char *fn, ihdrbox_param_t **ihdrbox)
 

Function Documentation

◆ error_callback()

static void error_callback ( const char *  msg,
void *  client_data 
)
static

sample error callback expecting a FILE* client object

Referenced by j2k_to_pnm().

◆ imagetopnm()

static Byte_t * imagetopnm ( opj_image_t image,
ihdrbox_param_t **  ihdrbox 
)
static

◆ info_callback()

static void info_callback ( const char *  msg,
void *  client_data 
)
static

sample debug callback expecting no client object

Referenced by j2k_to_pnm().

◆ j2k_to_pnm()

Byte_t* j2k_to_pnm ( const char *  fn,
ihdrbox_param_t **  ihdrbox 
)

◆ warning_callback()

static void warning_callback ( const char *  msg,
void *  client_data 
)
static

sample warning callback expecting a FILE* client object

Referenced by j2k_to_pnm().