ImagingTypes.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. {
  2. $Id$
  3. Vampyre Imaging Library
  4. by Marek Mauder
  5. http://imaginglib.sourceforge.net
  6. The contents of this file are used with permission, subject to the Mozilla
  7. Public License Version 1.1 (the "License"); you may not use this file except
  8. in compliance with the License. You may obtain a copy of the License at
  9. http://www.mozilla.org/MPL/MPL-1.1.html
  10. Software distributed under the License is distributed on an "AS IS" basis,
  11. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  12. the specific language governing rights and limitations under the License.
  13. Alternatively, the contents of this file may be used under the terms of the
  14. GNU Lesser General Public License (the "LGPL License"), in which case the
  15. provisions of the LGPL License are applicable instead of those above.
  16. If you wish to allow use of your version of this file only under the terms
  17. of the LGPL License and not to allow others to use your version of this file
  18. under the MPL, indicate your decision by deleting the provisions above and
  19. replace them with the notice and other provisions required by the LGPL
  20. License. If you do not delete the provisions above, a recipient may use
  21. your version of this file under either the MPL or the LGPL License.
  22. For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html
  23. }
  24. { This unit contains basic types and constants used by Imaging library.}
  25. unit ImagingTypes;
  26. {$I ImagingOptions.inc}
  27. interface
  28. const
  29. { Current Major version of Imaging.}
  30. ImagingVersionMajor = 0;
  31. { Current Minor version of Imaging.}
  32. ImagingVersionMinor = 26;
  33. { Current patch of Imaging.}
  34. ImagingVersionPatch = 4;
  35. { Imaging Option Ids whose values can be set/get by SetOption/
  36. GetOption functions.}
  37. { Defines Jpeg compression quality, ranges from 1 (ugly/small) to 100 (nice/large).
  38. Default value is 90.}
  39. ImagingJpegQuality = 10;
  40. { Specifies whether Jpeg images are saved in progressive format,
  41. can be 0 or 1. Default value is 0.}
  42. ImagingJpegProgressive = 11;
  43. { Specifies whether Windows Bitmaps are saved using RLE compression
  44. (only for 1/4/8 bit images), can be 0 or 1. Default value is 1.}
  45. ImagingBitmapRLE = 12;
  46. { Specifies whether Targa images are saved using RLE compression,
  47. can be 0 or 1. Default value is 0.}
  48. ImagingTargaRLE = 13;
  49. { Value of this option is non-zero if last loaded DDS file was cube map.}
  50. ImagingDDSLoadedCubeMap = 14;
  51. { Value of this option is non-zero if last loaded DDS file was volume texture.}
  52. ImagingDDSLoadedVolume = 15;
  53. { Value of this option is number of mipmap levels of last loaded DDS image.}
  54. ImagingDDSLoadedMipMapCount = 16;
  55. { Value of this option is depth (slices of volume texture or faces of
  56. cube map) of last loaded DDS image.}
  57. ImagingDDSLoadedDepth = 17;
  58. { If it is non-zero next saved DDS file should be stored as cube map.}
  59. ImagingDDSSaveCubeMap = 18;
  60. { If it is non-zero next saved DDS file should be stored as volume texture.}
  61. ImagingDDSSaveVolume = 19;
  62. { Sets the number of mipmaps which should be stored in the next saved DDS file.
  63. Only applies to cube maps and volumes, ordinary 2D textures save all
  64. levels present in input.}
  65. ImagingDDSSaveMipMapCount = 20;
  66. { Sets the depth (slices of volume texture or faces of cube map)
  67. of the next saved DDS file.}
  68. ImagingDDSSaveDepth = 21;
  69. { Sets precompression filter used when saving PNG images. Allowed values
  70. are: 0 (none), 1 (sub), 2 (up), 3 (average), 4 (paeth),
  71. 5 (use 0 for indexed/gray images and 4 for RGB/ARGB images),
  72. 6 (adaptive filtering - use best filter for each scanline - very slow).
  73. Note that filters 3 and 4 are much slower than filters 1 and 2.
  74. Default value is 5.}
  75. ImagingPNGPreFilter = 25;
  76. { Sets ZLib compression level used when saving PNG images.
  77. Allowed values are in range 0 (no compresstion) to 9 (best compression).
  78. Default value is 5.}
  79. ImagingPNGCompressLevel = 26;
  80. { Boolean option that specifies whether PNG images with more frames (APNG format)
  81. are animated by Imaging (according to frame disposal/blend methods) or just
  82. raw frames are loaded and sent to user (if you want to animate APNG yourself).
  83. Default value is 1.}
  84. ImagingPNGLoadAnimated = 27;
  85. { Specifies whether MNG animation frames are saved with lossy or lossless
  86. compression. Lossless frames are saved as PNG images and lossy frames are
  87. saved as JNG images. Allowed values are 0 (False) and 1 (True).
  88. Default value is 0.}
  89. ImagingMNGLossyCompression = 28;
  90. { Defines whether alpha channel of lossy compressed MNG frames
  91. (when ImagingMNGLossyCompression is 1) is lossy compressed too.
  92. Allowed values are 0 (False) and 1 (True). Default value is 0.}
  93. ImagingMNGLossyAlpha = 29;
  94. { Sets precompression filter used when saving MNG frames as PNG images.
  95. For details look at ImagingPNGPreFilter.}
  96. ImagingMNGPreFilter = 30;
  97. { Sets ZLib compression level used when saving MNG frames as PNG images.
  98. For details look at ImagingPNGCompressLevel.}
  99. ImagingMNGCompressLevel = 31;
  100. { Specifies compression quality used when saving MNG frames as JNG images.
  101. For details look at ImagingJpegQuality.}
  102. ImagingMNGQuality = 32;
  103. { Specifies whether images are saved in progressive format when saving MNG
  104. frames as JNG images. For details look at ImagingJpegProgressive.}
  105. ImagingMNGProgressive = 33;
  106. { Specifies whether alpha channels of JNG images are lossy compressed.
  107. Allowed values are 0 (False) and 1 (True). Default value is 0.}
  108. ImagingJNGLossyAlpha = 40;
  109. { Sets precompression filter used when saving lossless alpha channels.
  110. For details look at ImagingPNGPreFilter.}
  111. ImagingJNGAlphaPreFilter = 41;
  112. { Sets ZLib compression level used when saving lossless alpha channels.
  113. For details look at ImagingPNGCompressLevel.}
  114. ImagingJNGAlphaCompressLevel = 42;
  115. { Defines compression quality used when saving JNG images (and lossy alpha channels).
  116. For details look at ImagingJpegQuality.}
  117. ImagingJNGQuality = 43;
  118. { Specifies whether JNG images are saved in progressive format.
  119. For details look at ImagingJpegProgressive.}
  120. ImagingJNGProgressive = 44;
  121. { Specifies whether PGM files are stored in text or in binary format.
  122. Allowed values are 0 (store as text - very! large files) and 1 (save binary).
  123. Default value is 1.}
  124. ImagingPGMSaveBinary = 50;
  125. { Specifies whether PPM files are stored in text or in binary format.
  126. Allowed values are 0 (store as text - very! large files) and 1 (save binary).
  127. Default value is 1.}
  128. ImagingPPMSaveBinary = 51;
  129. { Boolean option that specifies whether GIF images with more frames
  130. are animated by Imaging (according to frame disposal methods) or just
  131. raw frames are loaded and sent to user (if you want to animate GIF yourself).
  132. Default value is 1.
  133. Raw frames are 256 color indexed images (ifIndex8), whereas
  134. animated frames are always in 32bit ifA8R8G8B8 format (simplifies animating).}
  135. ImagingGIFLoadAnimated = 56;
  136. { This option is used when reducing number of colors used in
  137. image (mainly when converting from ARGB image to indexed
  138. format). Mask is 'anded' (bitwise AND) with every pixel's
  139. channel value when creating color histogram. If $FF is used
  140. all 8bits of color channels are used which can result in very
  141. slow proccessing of large images with many colors so you can
  142. use lower masks to speed it up (FC, F8 and F0 are good
  143. choices). Allowed values are in range <0, $FF> and default is
  144. $FE. }
  145. ImagingColorReductionMask = 128;
  146. { This option can be used to override image data format during image
  147. loading. If set to format different from ifUnknown all loaded images
  148. are automaticaly converted to this format. Useful when you have
  149. many files in various formats but you want them all in one format for
  150. further proccessing. Allowed values are in
  151. range <Ord(Low(TImageFormat)), Ord(High(TImageFormat))> and
  152. default value is ifUnknown.}
  153. ImagingLoadOverrideFormat = 129;
  154. { This option can be used to override image data format during image
  155. saving. If set to format different from ifUnknown all images
  156. to be saved are automaticaly internaly converted to this format.
  157. Note that image file formats support only a subset of Imaging data formats
  158. so final saved file may in different format than this override.
  159. Allowed values are in range <Ord(Low(TImageFormat)), Ord(High(TImageFormat))>
  160. and default value is ifUnknown.}
  161. ImagingSaveOverrideFormat = 130;
  162. { Specifies resampling filter used when generating mipmaps. It is used
  163. in GenerateMipMaps low level function and Direct3D and OpenGL extensions.
  164. Allowed values are in range
  165. <Ord(Low(ImagingFormats.TSamplingFilter)), Ord(High(ImagingFormats.TSamplingFilter))>
  166. and default value is 1 (linear filter).}
  167. ImagingMipMapFilter = 131;
  168. { Returned by GetOption if given Option Id is invalid.}
  169. InvalidOption = -$7FFFFFFF;
  170. { Indices that can be used to access channel values in array parts
  171. of structures like TColor32Rec. Note that this order can be
  172. used only for ARGB images. For ABGR image you must swap Red and Blue.}
  173. ChannelBlue = 0;
  174. ChannelGreen = 1;
  175. ChannelRed = 2;
  176. ChannelAlpha = 3;
  177. type
  178. { Enum defining image data format. In formats with more channels,
  179. first channel after "if" is stored in the most significant bits and channel
  180. before end is stored in the least significant.}
  181. TImageFormat = (
  182. ifUnknown = 0,
  183. ifDefault = 1,
  184. { Indexed formats using palette.}
  185. ifIndex8 = 10,
  186. { Grayscale/Luminance formats.}
  187. ifGray8 = 40,
  188. ifA8Gray8 = 41,
  189. ifGray16 = 42,
  190. ifGray32 = 43,
  191. ifGray64 = 44,
  192. ifA16Gray16 = 45,
  193. { ARGB formats.}
  194. ifX5R1G1B1 = 80,
  195. ifR3G3B2 = 81,
  196. ifR5G6B5 = 82,
  197. ifA1R5G5B5 = 83,
  198. ifA4R4G4B4 = 84,
  199. ifX1R5G5B5 = 85,
  200. ifX4R4G4B4 = 86,
  201. ifR8G8B8 = 87,
  202. ifA8R8G8B8 = 88,
  203. ifX8R8G8B8 = 89,
  204. ifR16G16B16 = 90,
  205. ifA16R16G16B16 = 91,
  206. ifB16G16R16 = 92,
  207. ifA16B16G16R16 = 93,
  208. { Floating point formats.}
  209. ifR32F = 170,
  210. ifA32R32G32B32F = 171,
  211. ifA32B32G32R32F = 172,
  212. ifR16F = 173,
  213. ifA16R16G16B16F = 174,
  214. ifA16B16G16R16F = 175,
  215. { Special formats.}
  216. ifDXT1 = 220,
  217. ifDXT3 = 221,
  218. ifDXT5 = 222,
  219. ifBTC = 223,
  220. ifATI1N = 224,
  221. ifATI2N = 225);
  222. { Color value for 32 bit images.}
  223. TColor32 = LongWord;
  224. PColor32 = ^TColor32;
  225. { Color value for 64 bit images.}
  226. TColor64 = type Int64;
  227. PColor64 = ^TColor64;
  228. { Color record for 24 bit images, which allows access to individual color
  229. channels.}
  230. TColor24Rec = packed record
  231. case LongInt of
  232. 0: (B, G, R: Byte);
  233. 1: (Channels: array[0..2] of Byte);
  234. end;
  235. PColor24Rec = ^TColor24Rec;
  236. TColor24RecArray = array[0..MaxInt div SizeOf(TColor24Rec) - 1] of TColor24Rec;
  237. PColor24RecArray = ^TColor24RecArray;
  238. { Color record for 32 bit images, which allows access to individual color
  239. channels.}
  240. TColor32Rec = packed record
  241. case LongInt of
  242. 0: (Color: TColor32);
  243. 1: (B, G, R, A: Byte);
  244. 2: (Channels: array[0..3] of Byte);
  245. 3: (Color24Rec: TColor24Rec);
  246. end;
  247. PColor32Rec = ^TColor32Rec;
  248. TColor32RecArray = array[0..MaxInt div SizeOf(TColor32Rec) - 1] of TColor32Rec;
  249. PColor32RecArray = ^TColor32RecArray;
  250. { Color record for 48 bit images, which allows access to individual color
  251. channels.}
  252. TColor48Rec = packed record
  253. case LongInt of
  254. 0: (B, G, R: Word);
  255. 1: (Channels: array[0..2] of Word);
  256. end;
  257. PColor48Rec = ^TColor48Rec;
  258. TColor48RecArray = array[0..MaxInt div SizeOf(TColor48Rec) - 1] of TColor48Rec;
  259. PColor48RecArray = ^TColor48RecArray;
  260. { Color record for 64 bit images, which allows access to individual color
  261. channels.}
  262. TColor64Rec = packed record
  263. case LongInt of
  264. 0: (Color: TColor64);
  265. 1: (B, G, R, A: Word);
  266. 2: (Channels: array[0..3] of Word);
  267. 3: (Color48Rec: TColor48Rec);
  268. end;
  269. PColor64Rec = ^TColor64Rec;
  270. TColor64RecArray = array[0..MaxInt div SizeOf(TColor64Rec) - 1] of TColor64Rec;
  271. PColor64RecArray = ^TColor64RecArray;
  272. { Color record for 128 bit floating point images, which allows access to
  273. individual color channels.}
  274. TColorFPRec = packed record
  275. case LongInt of
  276. 0: (B, G, R, A: Single);
  277. 1: (Channels: array[0..3] of Single);
  278. end;
  279. PColorFPRec = ^TColorFPRec;
  280. TColorFPRecArray = array[0..MaxInt div SizeOf(TColorFPRec) - 1] of TColorFPRec;
  281. PColorFPRecArray = ^TColorFPRecArray;
  282. { 16 bit floating-point value. It has 1 sign bit, 5 exponent bits,
  283. and 10 mantissa bits.}
  284. THalfFloat = type Word;
  285. PHalfFloat = ^THalfFloat;
  286. { Color record for 64 bit floating point images, which allows access to
  287. individual color channels.}
  288. TColorHFRec = packed record
  289. case LongInt of
  290. 0: (B, G, R, A: THalfFloat);
  291. 1: (Channels: array[0..3] of THalfFloat);
  292. end;
  293. PColorHFRec = ^TColorHFRec;
  294. TColorHFRecArray = array[0..MaxInt div SizeOf(TColorHFRec) - 1] of TColorHFRec;
  295. PColorHFRecArray = ^TColorHFRecArray;
  296. { Palette for indexed mode images with 32 bit colors.}
  297. TPalette32 = TColor32RecArray;
  298. TPalette32Size256 = array[0..255] of TColor32Rec;
  299. PPalette32 = ^TPalette32;
  300. { Palette for indexd mode images with 24 bit colors.}
  301. TPalette24 = TColor24RecArray;
  302. TPalette24Size256 = array[0..255] of TColor24Rec;
  303. PPalette24 = ^TPalette24;
  304. { Record that stores single image data and information describing it.}
  305. TImageData = packed record
  306. Width: LongInt; // Width of image in pixels
  307. Height: LongInt; // Height of image in pixels
  308. Format: TImageFormat; // Data format of image
  309. Size: LongInt; // Size of image bits in Bytes
  310. Bits: Pointer; // Pointer to memory containing image bits
  311. Palette: PPalette32; // Image palette for indexed images
  312. end;
  313. PImageData = ^TImageData;
  314. { Pixel format information used in conversions to/from 16 and 8 bit ARGB
  315. image formats.}
  316. TPixelFormatInfo = packed record
  317. ABitCount, RBitCount, GBitCount, BBitCount: Byte;
  318. ABitMask, RBitMask, GBitMask, BBitMask: LongWord;
  319. AShift, RShift, GShift, BShift: Byte;
  320. ARecDiv, RRecDiv, GRecDiv, BRecDiv: Byte;
  321. end;
  322. PPixelFormatInfo = ^TPixelFormatInfo;
  323. PImageFormatInfo = ^TImageFormatInfo;
  324. { Look at TImageFormatInfo.GetPixelsSize for details.}
  325. TFormatGetPixelsSizeFunc = function(Format: TImageFormat; Width,
  326. Height: LongInt): LongInt;
  327. { Look at TImageFormatInfo.CheckDimensions for details.}
  328. TFormatCheckDimensionsProc = procedure(Format: TImageFormat; var Width,
  329. Height: LongInt);
  330. { Function for getting pixel colors. Native pixel is read from Image and
  331. then translated to 32 bit ARGB.}
  332. TGetPixel32Func = function(Bits: Pointer; Info: PImageFormatInfo;
  333. Palette: PPalette32): TColor32Rec;
  334. { Function for getting pixel colors. Native pixel is read from Image and
  335. then translated to FP ARGB.}
  336. TGetPixelFPFunc = function(Bits: Pointer; Info: PImageFormatInfo;
  337. Palette: PPalette32): TColorFPRec;
  338. { Procedure for setting pixel colors. Input 32 bit ARGB color is translated to
  339. native format and then written to Image.}
  340. TSetPixel32Proc = procedure(Bits: Pointer; Info: PImageFormatInfo;
  341. Palette: PPalette32;const Color: TColor32Rec);
  342. { Procedure for setting pixel colors. Input FP ARGB color is translated to
  343. native format and then written to Image.}
  344. TSetPixelFPProc = procedure(Bits: Pointer; Info: PImageFormatInfo;
  345. Palette: PPalette32; const Color: TColorFPRec);
  346. { Additional information for each TImageFormat value.}
  347. TImageFormatInfo = packed record
  348. Format: TImageFormat; // Format described by this record
  349. Name: array[0..15] of Char; // Symbolic name of format
  350. BytesPerPixel: LongInt; // Number of bytes per pixel (note: it is
  351. // 0 for formats where BitsPerPixel < 8 (e.g. DXT).
  352. // Use GetPixelsSize function to get size of
  353. // image data.
  354. ChannelCount: LongInt; // Number of image channels (R, G, B, A, Gray)
  355. PaletteEntries: LongInt; // Number of palette entries
  356. HasGrayChannel: Boolean; // True if image has grayscale channel
  357. HasAlphaChannel: Boolean; // True if image has alpha channel
  358. IsFloatingPoint: Boolean; // True if image has floating point pixels
  359. UsePixelFormat: Boolean; // True if image uses pixel format
  360. IsRBSwapped: Boolean; // True if Red and Blue channels are swapped
  361. // e.g. A16B16G16R16 has IsRBSwapped True
  362. RBSwapFormat: TImageFormat; // Indicates supported format with swapped
  363. // Red and Blue channels, ifUnknown if such
  364. // format does not exist
  365. IsIndexed: Boolean; // True if image uses palette
  366. IsSpecial: Boolean; // True if image is in special format
  367. PixelFormat: PPixelFormatInfo; // Pixel format structure
  368. GetPixelsSize: TFormatGetPixelsSizeFunc; // Returns size in bytes of
  369. // Width * Height pixels of image
  370. CheckDimensions: TFormatCheckDimensionsProc; // some formats have limited
  371. // values of Width and Height. This
  372. // procedure checks and changes dimensions
  373. // to be valid for given format.
  374. GetPixel32: TGetPixel32Func; // 32bit ARGB pixel get function
  375. GetPixelFP: TGetPixelFPFunc; // FP ARGB pixel get function
  376. SetPixel32: TSetPixel32Proc; // 32bit ARGB pixel set procedure
  377. SetPixelFP: TSetPixelFPProc; // FP ARGB pixel set procedure
  378. SpecialNearestFormat: TImageFormat; // Regular image format used when
  379. // compressing/decompressing special images
  380. // as source/target
  381. end;
  382. { Handle to list of image data records.}
  383. TImageDataList = Pointer;
  384. PImageDataList = ^TImageDataList;
  385. { Handle to input/output.}
  386. TImagingHandle = Pointer;
  387. { Filters used in functions that resize images or their portions.}
  388. TResizeFilter = (
  389. rfNearest = 0,
  390. rfBilinear = 1,
  391. rfBicubic = 2);
  392. { Seek origin mode for IO function Seek.}
  393. TSeekMode = (
  394. smFromBeginning = 0,
  395. smFromCurrent = 1,
  396. smFromEnd = 2);
  397. { IO functions used for reading and writing images from/to input/output.}
  398. TOpenReadProc = function(Source: PChar): TImagingHandle; cdecl;
  399. TOpenWriteProc = function(Source: PChar): TImagingHandle; cdecl;
  400. TCloseProc = procedure(Handle: TImagingHandle); cdecl;
  401. TEofProc = function(Handle: TImagingHandle): Boolean; cdecl;
  402. TSeekProc = function(Handle: TImagingHandle; Offset: LongInt; Mode: TSeekMode): LongInt; cdecl;
  403. TTellProc = function(Handle: TImagingHandle): LongInt; cdecl;
  404. TReadProc = function(Handle: TImagingHandle; Buffer: Pointer; Count: LongInt): LongInt; cdecl;
  405. TWriteProc = function(Handle: TImagingHandle; Buffer: Pointer; Count: LongInt): LongInt; cdecl;
  406. implementation
  407. {
  408. File Notes:
  409. -- TODOS ----------------------------------------------------
  410. - add lookup tables to pixel formats for fast conversions
  411. -- 0.24.3 Changes/Bug Fixes ---------------------------------
  412. - Added ifATI1N and ifATI2N image data formats.
  413. -- 0.23 Changes/Bug Fixes -----------------------------------
  414. - Added ifBTC image format and SpecialNearestFormat field
  415. to TImageFormatInfo.
  416. -- 0.21 Changes/Bug Fixes -----------------------------------
  417. - Added option constants for PGM and PPM file formats.
  418. - Added TPalette32Size256 and TPalette24Size256 types.
  419. -- 0.19 Changes/Bug Fixes -----------------------------------
  420. - added ImagingVersionPatch constant so bug fix only releases
  421. can be distinguished from ordinary major/minor releases
  422. - renamed TPixelFormat to TPixelFormatInfo to avoid name collisions
  423. with Graphics.TPixelFormat
  424. - added new image data formats: ifR16F, ifA16R16G16B16F,
  425. ifA16B16G16R16F
  426. - added pixel get/set function pointers to TImageFormatInfo
  427. - added 16bit half float type and color record
  428. - renamed TColorFRec to TColorFPRec (and related types too)
  429. -- 0.17 Changes/Bug Fixes -----------------------------------
  430. - added option ImagingMipMapFilter which now controls resampling filter
  431. used when generating mipmaps
  432. - added TResizeFilter type
  433. - added ChannelCount to TImageFormatInfo
  434. - added new option constants for MNG and JNG images
  435. -- 0.15 Changes/Bug Fixes -----------------------------------
  436. - added RBSwapFormat to TImageFormatInfo for faster conversions
  437. between swapped formats (it just calls SwapChannels now if
  438. RBSwapFormat is not ifUnknown)
  439. - moved TImageFormatInfo and required types from Imaging unit
  440. here, removed TImageFormatShortInfo
  441. - added new options: ImagingLoadOverrideFormat, ImagingSaveOverrideFormat
  442. -- 0.13 Changes/Bug Fixes -----------------------------------
  443. - new ImagingColorReductionMask option added
  444. - new image format added: ifA16Gray16
  445. }
  446. end.