102 lines
4.3 KiB
C#
102 lines
4.3 KiB
C#
|
|
/*
|
|||
|
|
* cvs identifier:
|
|||
|
|
*
|
|||
|
|
* $Id: FileFormatBoxes.java,v 1.10 2001/02/14 12:22:20 qtxjoas Exp $
|
|||
|
|
*
|
|||
|
|
* Class: FileFormatMarkers
|
|||
|
|
*
|
|||
|
|
* Description: Contains definitions of boxes used in jp2 files
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
* COPYRIGHT:
|
|||
|
|
*
|
|||
|
|
* This software module was originally developed by Rapha<EFBFBD>l Grosbois and
|
|||
|
|
* Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel
|
|||
|
|
* Askel<EFBFBD>f (Ericsson Radio Systems AB); and Bertrand Berthelot, David
|
|||
|
|
* Bouchard, F<EFBFBD>lix Henry, Gerard Mozelle and Patrice Onno (Canon Research
|
|||
|
|
* Centre France S.A) in the course of development of the JPEG2000
|
|||
|
|
* standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This
|
|||
|
|
* software module is an implementation of a part of the JPEG 2000
|
|||
|
|
* Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio
|
|||
|
|
* Systems AB and Canon Research Centre France S.A (collectively JJ2000
|
|||
|
|
* Partners) agree not to assert against ISO/IEC and users of the JPEG
|
|||
|
|
* 2000 Standard (Users) any of their rights under the copyright, not
|
|||
|
|
* including other intellectual property rights, for this software module
|
|||
|
|
* with respect to the usage by ISO/IEC and Users of this software module
|
|||
|
|
* or modifications thereof for use in hardware or software products
|
|||
|
|
* claiming conformance to the JPEG 2000 Standard. Those intending to use
|
|||
|
|
* this software module in hardware or software products are advised that
|
|||
|
|
* their use may infringe existing patents. The original developers of
|
|||
|
|
* this software module, JJ2000 Partners and ISO/IEC assume no liability
|
|||
|
|
* for use of this software module or modifications thereof. No license
|
|||
|
|
* or right to this software module is granted for non JPEG 2000 Standard
|
|||
|
|
* conforming products. JJ2000 Partners have full right to use this
|
|||
|
|
* software module for his/her own purpose, assign or donate this
|
|||
|
|
* software module to any third party and to inhibit third parties from
|
|||
|
|
* using this software module for non JPEG 2000 Standard conforming
|
|||
|
|
* products. This copyright notice must be included in all copies or
|
|||
|
|
* derivative works of this software module.
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 1999/2000 JJ2000 Partners.
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*
|
|||
|
|
*/
|
|||
|
|
using System;
|
|||
|
|
namespace CSJ2K.j2k.fileformat
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary> This class contains all the markers used in the JPEG 2000 Part I file format
|
|||
|
|
///
|
|||
|
|
/// </summary>
|
|||
|
|
/// <seealso cref="jj2000.j2k.fileformat.writer.FileFormatWriter">
|
|||
|
|
///
|
|||
|
|
/// </seealso>
|
|||
|
|
/// <seealso cref="jj2000.j2k.fileformat.reader.FileFormatReader">
|
|||
|
|
///
|
|||
|
|
/// </seealso>
|
|||
|
|
public struct FileFormatBoxes {
|
|||
|
|
/// <summary>* Main boxes ***</summary>
|
|||
|
|
|
|||
|
|
public const int READER_REQUIREMENTS_BOX = 0x72726571;
|
|||
|
|
public const int JP2_SIGNATURE_BOX = 0x6a502020;
|
|||
|
|
public const int FILE_TYPE_BOX = 0x66747970;
|
|||
|
|
public const int JP2_HEADER_BOX = 0x6a703268;
|
|||
|
|
public const int CONTIGUOUS_CODESTREAM_BOX = 0x6a703263;
|
|||
|
|
public const int INTELLECTUAL_PROPERTY_BOX = 0x64703269;
|
|||
|
|
public const int XML_BOX = 0x786d6c20;
|
|||
|
|
public const int UUID_BOX = 0x75756964;
|
|||
|
|
public const int UUID_INFO_BOX = 0x75696e66;
|
|||
|
|
/// <summary>JP2 Header boxes </summary>
|
|||
|
|
public const int IMAGE_HEADER_BOX = 0x69686472;
|
|||
|
|
public const int BITS_PER_COMPONENT_BOX = 0x62706363;
|
|||
|
|
public const int COLOUR_SPECIFICATION_BOX = 0x636f6c72;
|
|||
|
|
public const int PALETTE_BOX = 0x70636c72;
|
|||
|
|
public const int COMPONENT_MAPPING_BOX = 0x636d6170;
|
|||
|
|
public const int CHANNEL_DEFINITION_BOX = 0x63646566;
|
|||
|
|
public const int RESOLUTION_BOX = 0x72657320;
|
|||
|
|
public const int CAPTURE_RESOLUTION_BOX = 0x72657363;
|
|||
|
|
public const int DEFAULT_DISPLAY_RESOLUTION_BOX = 0x72657364;
|
|||
|
|
/// <summary>UUID Info Boxes </summary>
|
|||
|
|
public const int UUID_LIST_BOX = 0x75637374;
|
|||
|
|
public const int URL_BOX = 0x75726c20;
|
|||
|
|
/// <summary>end of UUID Info boxes </summary>
|
|||
|
|
/// <summary>Image Header Box Fields </summary>
|
|||
|
|
public const int IMB_VERS = 0x0100;
|
|||
|
|
public const int IMB_C = 7;
|
|||
|
|
public const int IMB_UnkC = 1;
|
|||
|
|
public const int IMB_IPR = 0;
|
|||
|
|
/// <summary>end of Image Header Box Fields</summary>
|
|||
|
|
/// <summary>Colour Specification Box Fields </summary>
|
|||
|
|
public const int CSB_METH = 1;
|
|||
|
|
public const int CSB_PREC = 0;
|
|||
|
|
public const int CSB_APPROX = 0;
|
|||
|
|
public const int CSB_ENUM_SRGB = 16;
|
|||
|
|
public const int CSB_ENUM_GREY = 17;
|
|||
|
|
/// <summary>en of Colour Specification Box Fields </summary>
|
|||
|
|
/// <summary>File Type Fields </summary>
|
|||
|
|
public const int FT_BR = 0x6a703220;
|
|||
|
|
}
|
|||
|
|
}
|