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.3 2006/05/16 13:57:17 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(1) returns jas_image_t*
00045 Handle(2) returns jas_stream_t*
00046
00047 Attributes:
00048 CompressionRatio IM_FLOAT (1) [write only, example: Ratio=7 just like 7:1]
00049
00050 Comments:
00051 We read code stream syntax and JP2, but we write always as JP2.
00052 Used definitions EXCLUDE_JPG_SUPPORT,EXCLUDE_MIF_SUPPORT,
00053 EXCLUDE_PNM_SUPPORT,EXCLUDE_RAS_SUPPORT,
00054 EXCLUDE_BMP_SUPPORT,EXCLUDE_PGX_SUPPORT
00055 Changed jas_config.h to match our needs.
00056 New file jas_binfile.c
00057 Changed jas_stream.c to export jas_stream_create and jas_stream_initbuf.
00058 Changed jp2_dec.c and jpc_cs.c to remove "uint" and "ulong" usage.
00059 \endverbatim
00060 * \ingroup format */
00061
00062 /** Register the JP2 Format
00063 * \ingroup jp2 */
00064 void imFormatRegisterJP2(void);
00065
00066
00067 #if defined(__cplusplus)
00068 }
00069 #endif
00070
00071 #endif