im_format_jp2.h
Go to the documentation of this file.00001 /** \file
00002 * \brief Register the JP2 Format
00003 *
00004 * See Copyright Notice in im_lib.h
00005 * $Id: im_format_jp2.h,v 1.2 2005/04/14 19:35:39 scuri Exp $
00006 */
00007
00008 #ifndef __IM_FORMAT_JP2_H
00009 #define __IM_FORMAT_JP2_H
00010
00011 #if defined(__cplusplus)
00012 extern "C" {
00013 #endif
00014
00015
00016 /** \defgroup jp2 JP2 - JPEG-2000 JP2 File Format
00017 * \section Description
00018 *
00019 * \par
00020 * ISO/IEC 15444 (2000, 2003)\n
00021 * http://www.jpeg.org/
00022 * \par
00023 * You must link the application with "im_jp2.lib"
00024 * and you must call the function \ref imFormatRegisterJP2 once
00025 * to register the format into the IM core library. \n
00026 * \par
00027 * Access to the JPEG2000 file format uses libJasper version 1.701.0. \n
00028 * http://www.ece.uvic.ca/~mdadams/jasper \n
00029 * Copyright (c) 2001-2003 Michael David Adams.
00030 * \par
00031 * See \ref im_format_jp2.h
00032 *
00033 * \section Features
00034 *
00035 \verbatim
00036 Data Types: Byte and UShort
00037 Color Spaces: Binary, Gray, RGB, YCbCr, Lab and XYZ
00038 Compressions:
00039 JPEG-2000 - ISO JPEG 2000 [default]
00040 Only one image.
00041 Can have an alpha channel.
00042 Internally the components are always unpacked.
00043 Internally the lines are arranged from top down to bottom.
00044 Handle() returns jas_image_t*
00045
00046 Attributes:
00047 CompressionRatio IM_FLOAT (1) [write only, example: Ratio=7 just like 7:1]
00048
00049 Comments:
00050 We read code stream syntax and JP2, but we write always as JP2.
00051 Used definitions EXCLUDE_JPG_SUPPORT,EXCLUDE_MIF_SUPPORT,
00052 EXCLUDE_PNM_SUPPORT,EXCLUDE_RAS_SUPPORT,
00053 EXCLUDE_BMP_SUPPORT,EXCLUDE_PGX_SUPPORT
00054 Changed jas_config.h to match our needs.
00055 New file jas_binfile.c
00056 Changed jas_stream.c to export jas_stream_create and jas_stream_initbuf.
00057 Changed jp2_dec.c and jpc_cs.c to remove "uint" and "ulong" usage.
00058 \endverbatim
00059 * \ingroup format */
00060
00061 /** Register the JP2 Format
00062 * \ingroup jp2 */
00063 void imFormatRegisterJP2(void);
00064
00065
00066 #if defined(__cplusplus)
00067 }
00068 #endif
00069
00070 #endif