Sha256: 350293d85f9edb2620aeee090aee928eaacb92b2ab6cdde75b722f6dbcc9c331

Contents?: true

Size: 886 Bytes

Versions: 11

Compression:

Stored size: 886 Bytes

Contents

#ifndef J2K_HELPER_H
#define J2K_HELPER_H

// ==========================================================
// Helper functions (see J2KHelper.cpp)
// ==========================================================

/** 
FreeImageIO wrapper
*/
typedef struct tagJ2KFIO_t {
	FreeImageIO *io;		//! FreeImage IO
    fi_handle handle;		//! FreeImage handle
	opj_stream_t *stream;	//! OpenJPEG stream
} J2KFIO_t;

/**
Stream constructor
*/
J2KFIO_t* opj_freeimage_stream_create(FreeImageIO *io, fi_handle handle, BOOL bRead);

/**
Stream destructor
*/
void opj_freeimage_stream_destroy(J2KFIO_t* fio);

/**
Conversion opj_image_t => FIBITMAP
*/
FIBITMAP* J2KImageToFIBITMAP(int format_id, const opj_image_t *image, BOOL header_only);
/**
Conversion FIBITMAP => opj_image_t
*/
opj_image_t* FIBITMAPToJ2KImage(int format_id, FIBITMAP *dib, const opj_cparameters_t *parameters);

#endif // J2K_HELPER_H

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rfreeimage-0.2.1 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.2.4 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.2.0 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.9 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.8 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.7 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.6 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.5 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.3 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.1 vendor/FreeImage/Source/FreeImage/J2KHelper.h
rfreeimage-0.1.0 vendor/FreeImage/Source/FreeImage/J2KHelper.h