/dmagick/c/cacheView.d

http://github.com/MikeWey/DMagick · D · 151 lines · 65 code · 35 blank · 51 comment · 3 complexity · 8d995070d3b6690480c54631ccafa642 MD5 · raw file

  1. module dmagick.c.cacheView;
  2. import dmagick.c.colorspace;
  3. import dmagick.c.exception;
  4. import dmagick.c.image;
  5. import dmagick.c.magickType;
  6. import dmagick.c.magickVersion;
  7. import dmagick.c.pixel;
  8. alias ptrdiff_t ssize_t;
  9. extern(C)
  10. {
  11. /**
  12. * Specify contents of virtual pixels.
  13. */
  14. enum VirtualPixelMethod
  15. {
  16. /** */
  17. UndefinedVirtualPixelMethod,
  18. /**
  19. * The area surrounding the image is the background color.
  20. */
  21. BackgroundVirtualPixelMethod,
  22. /** */
  23. ConstantVirtualPixelMethod,
  24. /**
  25. * Non-random 32x32 dithered pattern.
  26. */
  27. DitherVirtualPixelMethod,
  28. /**
  29. * Extend the edge pixel toward infinity.
  30. */
  31. EdgeVirtualPixelMethod,
  32. /**
  33. * Mirror tile the image.
  34. */
  35. MirrorVirtualPixelMethod,
  36. /**
  37. * Choose a random pixel from the image.
  38. */
  39. RandomVirtualPixelMethod,
  40. /**
  41. * Tile the image.
  42. */
  43. TileVirtualPixelMethod,
  44. /**
  45. * The area surrounding the image is transparent blackness.
  46. */
  47. TransparentVirtualPixelMethod,
  48. /** */
  49. MaskVirtualPixelMethod,
  50. /**
  51. * The area surrounding the image is black.
  52. */
  53. BlackVirtualPixelMethod,
  54. /**
  55. * The area surrounding the image is gray.
  56. */
  57. GrayVirtualPixelMethod,
  58. /**
  59. * The area surrounding the image is white.
  60. */
  61. WhiteVirtualPixelMethod,
  62. /**
  63. * Horizontally tile the image, background color above/below.
  64. */
  65. HorizontalTileVirtualPixelMethod,
  66. /**
  67. * Vertically tile the image, sides are background color.
  68. */
  69. VerticalTileVirtualPixelMethod,
  70. /**
  71. * Horizontally tile the image and replicate the side edge pixels.
  72. */
  73. HorizontalTileEdgeVirtualPixelMethod,
  74. /**
  75. * Vertically tile the image and replicate the side edge pixels.
  76. */
  77. VerticalTileEdgeVirtualPixelMethod,
  78. /**
  79. * Alternate squares with image and background color.
  80. */
  81. CheckerTileVirtualPixelMethod
  82. }
  83. struct CacheView {}
  84. static if ( MagickLibVersion >= 0x677 )
  85. {
  86. CacheView* AcquireAuthenticCacheView(const(Image)*, ExceptionInfo*);
  87. }
  88. CacheView* AcquireCacheView(const(Image)*);
  89. static if ( MagickLibVersion >= 0x677 )
  90. {
  91. CacheView* AcquireVirtualCacheView(const(Image)*, ExceptionInfo*);
  92. }
  93. CacheView* CloneCacheView(const(CacheView)*);
  94. CacheView* DestroyCacheView(CacheView*);
  95. ClassType GetCacheViewStorageClass(const(CacheView)*);
  96. ColorspaceType GetCacheViewColorspace(const(CacheView)*);
  97. const(IndexPacket)* GetCacheViewVirtualIndexQueue(const(CacheView)*);
  98. const(PixelPacket)* GetCacheViewVirtualPixels(const(CacheView)*, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo*);
  99. const(PixelPacket)* GetCacheViewVirtualPixelQueue(const(CacheView)*);
  100. ExceptionInfo* GetCacheViewException(const(CacheView)*);
  101. IndexPacket* GetCacheViewAuthenticIndexQueue(CacheView*);
  102. MagickBooleanType GetOneCacheViewVirtualPixel(const(CacheView)*, const ssize_t, const ssize_t, PixelPacket*, ExceptionInfo*);
  103. MagickBooleanType GetOneCacheViewVirtualMethodPixel(const(CacheView)*, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelPacket*, ExceptionInfo*);
  104. MagickBooleanType GetOneCacheViewAuthenticPixel(const(CacheView)*, const ssize_t, const ssize_t, PixelPacket*, ExceptionInfo*);
  105. MagickBooleanType SetCacheViewStorageClass(CacheView*, const ClassType);
  106. MagickBooleanType SetCacheViewVirtualPixelMethod(CacheView*, const VirtualPixelMethod);
  107. MagickBooleanType SyncCacheViewAuthenticPixels(CacheView*, ExceptionInfo*);
  108. MagickSizeType GetCacheViewExtent(const(CacheView)*);
  109. static if ( MagickLibVersion >= 0x670 )
  110. {
  111. size_t GetCacheViewChannels(const(CacheView)*);
  112. }
  113. PixelPacket* GetCacheViewAuthenticPixelQueue(CacheView*);
  114. PixelPacket* GetCacheViewAuthenticPixels(CacheView*, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo*);
  115. PixelPacket* QueueCacheViewAuthenticPixels(CacheView*, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo*);
  116. }