ImagingExtras.pas 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 is helper unit that registers all image file formats in Extras package
  25. to Imaging core loading and saving functions. Just put this unit in your uses
  26. clause instead of adding every unit that provides new file format support.
  27. Also new constants for SetOption/GetOption functions for new file formats
  28. are located here.}
  29. unit ImagingExtras;
  30. {$I ImagingOptions.inc}
  31. {$DEFINE LINK_JPEG2000} // link support for JPEG2000 images
  32. {$DEFINE LINK_PCX} // link support for PCX images
  33. {$DEFINE LINK_ELDER} // link support for Elder Imagery images
  34. {$IF not (Defined(MSWINDOWS) or (Defined(UNIX) and Defined(FPC) and Defined(CPU86)))}
  35. // JPEG2000 only for Windows and for Linux/Unix with FPC
  36. {$UNDEF LINK_JPEG2000}
  37. {$IFEND}
  38. interface
  39. const
  40. { Those are new options for GetOption/SetOption interface. }
  41. { Controls JPEG 2000 lossy compression quality. It is number in range 1..100.
  42. 1 means small/ugly file, 100 means large/nice file. Default is 80.}
  43. ImagingJpeg2000Quality = 55;
  44. { Controls whether JPEG 2000 image is saved with full file headers or just
  45. as code stream. Default value is False (0).}
  46. ImagingJpeg2000CodeStreamOnly = 56;
  47. { Specifies JPEG 2000 image compression type. If True (1), saved JPEG 2000 files
  48. will be losslessly compressed. Otherwise lossy compression is used.
  49. Default value is False (0).}
  50. ImagingJpeg2000LosslessCompression = 57;
  51. implementation
  52. uses
  53. {$IFDEF LINK_JPEG2000}
  54. ImagingJpeg2000,
  55. {$ENDIF}
  56. {$IFDEF LINK_PCX}
  57. ImagingPcx,
  58. {$ENDIF}
  59. {$IFDEF LINK_ELDER}
  60. ElderImagery,
  61. {$ENDIF}
  62. Imaging;
  63. end.