runk] fix the documentation of the API
This commit is contained in:
parent
ba1682c120
commit
ce297bfa9e
|
@ -119,7 +119,7 @@ typedef uint64_t OPJ_UINT64;
|
||||||
#define OPJ_J2K_MCC_DEFAULT_NB_RECORDS 10
|
#define OPJ_J2K_MCC_DEFAULT_NB_RECORDS 10
|
||||||
#define OPJ_J2K_MCT_DEFAULT_NB_RECORDS 10
|
#define OPJ_J2K_MCT_DEFAULT_NB_RECORDS 10
|
||||||
|
|
||||||
/* UniPG>> */
|
/* UniPG>> */ /* NOT YET USED IN THE V2 VERSION OF OPENJPEG */
|
||||||
#define JPWL_MAX_NO_TILESPECS 16 /**< Maximum number of tile parts expected by JPWL: increase at your will */
|
#define JPWL_MAX_NO_TILESPECS 16 /**< Maximum number of tile parts expected by JPWL: increase at your will */
|
||||||
#define JPWL_MAX_NO_PACKSPECS 16 /**< Maximum number of packet parts expected by JPWL: increase at your will */
|
#define JPWL_MAX_NO_PACKSPECS 16 /**< Maximum number of packet parts expected by JPWL: increase at your will */
|
||||||
#define JPWL_MAX_NO_MARKERS 512 /**< Maximum number of JPWL markers: increase at your will */
|
#define JPWL_MAX_NO_MARKERS 512 /**< Maximum number of JPWL markers: increase at your will */
|
||||||
|
@ -131,8 +131,8 @@ typedef uint64_t OPJ_UINT64;
|
||||||
/* <<UniPG */
|
/* <<UniPG */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FIXME EXPERIMENTAL FOR THE MOMENT
|
* EXPERIMENTAL FOR THE MOMENT
|
||||||
* Supported options about file information
|
* Supported options about file information used only in j2k_dump
|
||||||
*/
|
*/
|
||||||
#define OPJ_IMG_INFO 1 /**< Basic image information provided to the user */
|
#define OPJ_IMG_INFO 1 /**< Basic image information provided to the user */
|
||||||
#define OPJ_J2K_MH_INFO 2 /**< Codestream information based only on the main header */
|
#define OPJ_J2K_MH_INFO 2 /**< Codestream information based only on the main header */
|
||||||
|
@ -213,7 +213,7 @@ typedef enum CODEC_FORMAT {
|
||||||
/**
|
/**
|
||||||
* Callback function prototype for events
|
* Callback function prototype for events
|
||||||
* @param msg Event message
|
* @param msg Event message
|
||||||
* @param client_data FIXME DOC
|
* @param client_data Client object where will be return the event message
|
||||||
* */
|
* */
|
||||||
typedef void (*opj_msg_callback) (const char *msg, void *client_data);
|
typedef void (*opj_msg_callback) (const char *msg, void *client_data);
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ typedef struct opj_cparameters {
|
||||||
int cod_format;
|
int cod_format;
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
/* UniPG>> */
|
/* UniPG>> */ /* NOT YET USED IN THE V2 VERSION OF OPENJPEG */
|
||||||
/**@name JPWL encoding parameters */
|
/**@name JPWL encoding parameters */
|
||||||
/*@{*/
|
/*@{*/
|
||||||
/** enables writing of EPC in MH, thus activating JPWL */
|
/** enables writing of EPC in MH, thus activating JPWL */
|
||||||
|
@ -436,7 +436,7 @@ typedef struct opj_dparameters {
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
/* UniPG>> */
|
/* UniPG>> */ /* NOT YET USED IN THE V2 VERSION OF OPENJPEG */
|
||||||
/**@name JPWL decoding parameters */
|
/**@name JPWL decoding parameters */
|
||||||
/*@{*/
|
/*@{*/
|
||||||
/** activates the JPWL correction capabilities */
|
/** activates the JPWL correction capabilities */
|
||||||
|
@ -466,9 +466,9 @@ typedef void * opj_codec_t;
|
||||||
==========================================================
|
==========================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Stream open flags.
|
* Stream open flags.
|
||||||
*/
|
* */
|
||||||
/** The stream was opened for reading. */
|
/** The stream was opened for reading. */
|
||||||
#define OPJ_STREAM_READ OPJ_TRUE
|
#define OPJ_STREAM_READ OPJ_TRUE
|
||||||
/** The stream was opened for writing. */
|
/** The stream was opened for writing. */
|
||||||
|
@ -476,25 +476,21 @@ typedef void * opj_codec_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function prototype for read function
|
* Callback function prototype for read function
|
||||||
* FIXME DOC
|
|
||||||
*/
|
*/
|
||||||
typedef OPJ_SIZE_T (* opj_stream_read_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
|
typedef OPJ_SIZE_T (* opj_stream_read_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function prototype for write function
|
* Callback function prototype for write function
|
||||||
* FIXME DOC
|
|
||||||
*/
|
*/
|
||||||
typedef OPJ_SIZE_T (* opj_stream_write_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
|
typedef OPJ_SIZE_T (* opj_stream_write_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function prototype for skip function
|
* Callback function prototype for skip function
|
||||||
* FIXME DOC
|
|
||||||
*/
|
*/
|
||||||
typedef OPJ_OFF_T (* opj_stream_skip_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
|
typedef OPJ_OFF_T (* opj_stream_skip_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function prototype for seek function
|
* Callback function prototype for seek function
|
||||||
* FIXME DOC
|
|
||||||
*/
|
*/
|
||||||
typedef OPJ_BOOL (* opj_stream_seek_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
|
typedef OPJ_BOOL (* opj_stream_seek_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
|
||||||
|
|
||||||
|
@ -594,6 +590,7 @@ typedef struct opj_image_comptparm {
|
||||||
Information on the JPEG 2000 codestream
|
Information on the JPEG 2000 codestream
|
||||||
==========================================================
|
==========================================================
|
||||||
*/
|
*/
|
||||||
|
/* QUITE EXPERIMENTAL FOR THE MOMENT */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index structure : Information concerning a packet inside tile
|
* Index structure : Information concerning a packet inside tile
|
||||||
|
@ -851,7 +848,7 @@ typedef struct opj_tile_index {
|
||||||
/** information concerning tile parts */
|
/** information concerning tile parts */
|
||||||
opj_tp_index_t *tp_index;
|
opj_tp_index_t *tp_index;
|
||||||
|
|
||||||
/* UniPG>> */
|
/* UniPG>> */ /* NOT USED FOR THE MOMENT IN THE V2 VERSION */
|
||||||
/** number of markers */
|
/** number of markers */
|
||||||
OPJ_UINT32 marknum;
|
OPJ_UINT32 marknum;
|
||||||
/** list of markers */
|
/** list of markers */
|
||||||
|
@ -879,7 +876,7 @@ typedef struct opj_codestream_index {
|
||||||
/** codestream's size */
|
/** codestream's size */
|
||||||
OPJ_UINT64 codestream_size;
|
OPJ_UINT64 codestream_size;
|
||||||
|
|
||||||
/* UniPG>> */
|
/* UniPG>> */ /* NOT USED FOR THE MOMENT IN THE V2 VERSION */
|
||||||
/** number of markers */
|
/** number of markers */
|
||||||
OPJ_UINT32 marknum;
|
OPJ_UINT32 marknum;
|
||||||
/** list of markers */
|
/** list of markers */
|
||||||
|
@ -904,7 +901,7 @@ typedef struct opj_codestream_index {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Info structure of the JP2 file
|
* Info structure of the JP2 file
|
||||||
* FIXME
|
* EXPERIMENTAL FOR THE MOMENT
|
||||||
*/
|
*/
|
||||||
typedef struct opj_jp2_metadata {
|
typedef struct opj_jp2_metadata {
|
||||||
/** */
|
/** */
|
||||||
|
@ -914,7 +911,7 @@ typedef struct opj_jp2_metadata {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index structure of the JP2 file
|
* Index structure of the JP2 file
|
||||||
* FIXME
|
* EXPERIMENTAL FOR THE MOMENT
|
||||||
*/
|
*/
|
||||||
typedef struct opj_jp2_index {
|
typedef struct opj_jp2_index {
|
||||||
/** */
|
/** */
|
||||||
|
@ -934,6 +931,7 @@ extern "C" {
|
||||||
==========================================================
|
==========================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Get the version of the openjpeg library*/
|
||||||
OPJ_API const char * OPJ_CALLCONV opj_version(void);
|
OPJ_API const char * OPJ_CALLCONV opj_version(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -944,6 +942,7 @@ OPJ_API const char * OPJ_CALLCONV opj_version(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an image
|
* Create an image
|
||||||
|
*
|
||||||
* @param numcmpts number of components
|
* @param numcmpts number of components
|
||||||
* @param cmptparms components parameters
|
* @param cmptparms components parameters
|
||||||
* @param clrspc image color space
|
* @param clrspc image color space
|
||||||
|
@ -953,11 +952,11 @@ OPJ_API opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts, opj_imag
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deallocate any resources associated with an image
|
* Deallocate any resources associated with an image
|
||||||
|
*
|
||||||
* @param image image to be destroyed
|
* @param image image to be destroyed
|
||||||
*/
|
*/
|
||||||
OPJ_API void OPJ_CALLCONV opj_image_destroy(opj_image_t *image);
|
OPJ_API void OPJ_CALLCONV opj_image_destroy(opj_image_t *image);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an image without allocating memory for the image (used in the new version of the library).
|
* Creates an image without allocating memory for the image (used in the new version of the library).
|
||||||
*
|
*
|
||||||
|
@ -969,7 +968,6 @@ OPJ_API void OPJ_CALLCONV opj_image_destroy(opj_image_t *image);
|
||||||
*/
|
*/
|
||||||
OPJ_API opj_image_t* OPJ_CALLCONV opj_image_tile_create(OPJ_UINT32 numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc);
|
OPJ_API opj_image_t* OPJ_CALLCONV opj_image_tile_create(OPJ_UINT32 numcmpts, opj_image_cmptparm_t *cmptparms, OPJ_COLOR_SPACE clrspc);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==========================================================
|
==========================================================
|
||||||
stream functions definitions
|
stream functions definitions
|
||||||
|
@ -1057,8 +1055,8 @@ OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_default_file_stream (FILE *
|
||||||
/**
|
/**
|
||||||
* FIXME DOC
|
* FIXME DOC
|
||||||
* @param p_file the file stream to operate on
|
* @param p_file the file stream to operate on
|
||||||
* @param p_buffer_size FIXME DOC
|
* @param p_buffer_size size of the chunk used to stream
|
||||||
* @param p_is_read_stream FIXME DOC
|
* @param p_is_read_stream whether the stream is a read stream (true) or not (false)
|
||||||
*/
|
*/
|
||||||
OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_file_stream (FILE * p_file, OPJ_SIZE_T p_buffer_size, OPJ_BOOL p_is_read_stream);
|
OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_file_stream (FILE * p_file, OPJ_SIZE_T p_buffer_size, OPJ_BOOL p_is_read_stream);
|
||||||
|
|
||||||
|
@ -1071,7 +1069,7 @@ OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create_file_stream (FILE * p_file,
|
||||||
* Set the info handler use by openjpeg.
|
* Set the info handler use by openjpeg.
|
||||||
* @param p_codec the codec previously initialise
|
* @param p_codec the codec previously initialise
|
||||||
* @param p_callback the callback function which will be used
|
* @param p_callback the callback function which will be used
|
||||||
* @param p_user_data FIXME DOC
|
* @param p_user_data client object where will be returned the message
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_info_handler(opj_codec_t * p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_info_handler(opj_codec_t * p_codec,
|
||||||
opj_msg_callback p_callback,
|
opj_msg_callback p_callback,
|
||||||
|
@ -1080,7 +1078,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_info_handler(opj_codec_t * p_codec,
|
||||||
* Set the warning handler use by openjpeg.
|
* Set the warning handler use by openjpeg.
|
||||||
* @param p_codec the codec previously initialise
|
* @param p_codec the codec previously initialise
|
||||||
* @param p_callback the callback function which will be used
|
* @param p_callback the callback function which will be used
|
||||||
* @param p_user_data FIXME DOC
|
* @param p_user_data client object where will be returned the message
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_warning_handler(opj_codec_t * p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_warning_handler(opj_codec_t * p_codec,
|
||||||
opj_msg_callback p_callback,
|
opj_msg_callback p_callback,
|
||||||
|
@ -1089,7 +1087,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_warning_handler(opj_codec_t * p_codec,
|
||||||
* Set the error handler use by openjpeg.
|
* Set the error handler use by openjpeg.
|
||||||
* @param p_codec the codec previously initialise
|
* @param p_codec the codec previously initialise
|
||||||
* @param p_callback the callback function which will be used
|
* @param p_callback the callback function which will be used
|
||||||
* @param p_user_data FIXME DOC
|
* @param p_user_data client object where will be returned the message
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_error_handler(opj_codec_t * p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_error_handler(opj_codec_t * p_codec,
|
||||||
opj_msg_callback p_callback,
|
opj_msg_callback p_callback,
|
||||||
|
@ -1160,7 +1158,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_read_header ( opj_stream_t *p_stream,
|
||||||
* Sets the given area to be decoded. This function should be called right after opj_read_header and before any tile header reading.
|
* Sets the given area to be decoded. This function should be called right after opj_read_header and before any tile header reading.
|
||||||
*
|
*
|
||||||
* @param p_codec the jpeg2000 codec.
|
* @param p_codec the jpeg2000 codec.
|
||||||
* @param p_image FIXME DOC
|
* @param p_image the decoded image previously setted by opj_read_header
|
||||||
* @param p_start_x the left position of the rectangle to decode (in image coordinates).
|
* @param p_start_x the left position of the rectangle to decode (in image coordinates).
|
||||||
* @param p_end_x the right position of the rectangle to decode (in image coordinates).
|
* @param p_end_x the right position of the rectangle to decode (in image coordinates).
|
||||||
* @param p_start_y the up position of the rectangle to decode (in image coordinates).
|
* @param p_start_y the up position of the rectangle to decode (in image coordinates).
|
||||||
|
@ -1175,6 +1173,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_decode_area( opj_codec_t *p_codec,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decode an image from a JPEG-2000 codestream
|
* Decode an image from a JPEG-2000 codestream
|
||||||
|
*
|
||||||
* @param p_decompressor decompressor handle
|
* @param p_decompressor decompressor handle
|
||||||
* @param p_stream Input buffer stream
|
* @param p_stream Input buffer stream
|
||||||
* @param p_image the decoded image
|
* @param p_image the decoded image
|
||||||
|
@ -1186,6 +1185,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_decode( opj_codec_t *p_decompressor,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the decoded tile from the codec
|
* Get the decoded tile from the codec
|
||||||
|
*
|
||||||
* @param p_codec the jpeg2000 codec.
|
* @param p_codec the jpeg2000 codec.
|
||||||
* @param p_stream input streamm
|
* @param p_stream input streamm
|
||||||
* @param p_image output image
|
* @param p_image output image
|
||||||
|
@ -1315,12 +1315,19 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec,
|
||||||
opj_image_t *image);
|
opj_image_t *image);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Start to compress the current image.
|
||||||
|
* @param p_codec Compressor handle
|
||||||
|
* @param image Input filled image
|
||||||
|
* @param p_stream Input stgream
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_start_compress ( opj_codec_t *p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_start_compress ( opj_codec_t *p_codec,
|
||||||
opj_image_t * p_image,
|
opj_image_t * p_image,
|
||||||
opj_stream_t *p_cio);
|
opj_stream_t *p_stream);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* End to compress the current image.
|
||||||
|
* @param p_codec Compressor handle
|
||||||
|
* @param p_stream Input stgream
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_end_compress (opj_codec_t *p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_end_compress (opj_codec_t *p_codec,
|
||||||
opj_stream_t *p_stream);
|
opj_stream_t *p_stream);
|
||||||
|
@ -1334,7 +1341,12 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_end_compress (opj_codec_t *p_codec,
|
||||||
*/
|
*/
|
||||||
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
|
OPJ_API OPJ_BOOL OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
|
||||||
opj_stream_t *p_stream);
|
opj_stream_t *p_stream);
|
||||||
|
/*
|
||||||
|
==========================================================
|
||||||
|
codec output functions definitions
|
||||||
|
==========================================================
|
||||||
|
*/
|
||||||
|
/* EXPERIMENTAL FUNCTIONS FOR NOW, USED ONLY IN J2K_DUMP*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy Codestream information after compression or decompression
|
Destroy Codestream information after compression or decompression
|
||||||
|
@ -1343,13 +1355,6 @@ Destroy Codestream information after compression or decompression
|
||||||
OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_v2_t **cstr_info);
|
OPJ_API void OPJ_CALLCONV opj_destroy_cstr_info(opj_codestream_info_v2_t **cstr_info);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
==========================================================
|
|
||||||
codec output functions definitions
|
|
||||||
==========================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dump the codec information into the output stream
|
* Dump the codec information into the output stream
|
||||||
*
|
*
|
||||||
|
@ -1408,7 +1413,7 @@ OPJ_API opj_jp2_index_t* OPJ_CALLCONV opj_get_jp2_index(opj_codec_t *p_codec);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==========================================================
|
==========================================================
|
||||||
new functions
|
MCT functions
|
||||||
==========================================================
|
==========================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue