OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

286 lines
9.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pixieplus/imagemagick.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -urN pixieplus.orig/kdenonbeta/pixieplus/app/blob-private.h pixieplus/kdenonbeta/pixieplus/app/blob-private.h
  18. --- pixieplus.orig/kdenonbeta/pixieplus/app/blob-private.h 1970-01-01 01:00:00.000000000 +0100
  19. +++ pixieplus/kdenonbeta/pixieplus/app/blob-private.h 2005-03-29 14:48:11.333527424 +0200
  20. @@ -0,0 +1,102 @@
  21. +/*
  22. + Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  23. + dedicated to making software imaging solutions freely available.
  24. +
  25. + You may not use this file except in compliance with the License.
  26. + obtain a copy of the License at
  27. +
  28. + http://www.imagemagick.org/www/Copyright.html
  29. +
  30. + Unless required by applicable law or agreed to in writing, software
  31. + distributed under the License is distributed on an "AS IS" BASIS,
  32. + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  33. + See the License for the specific language governing permissions and
  34. + limitations under the License.
  35. +
  36. + ImageMagick Binary Large OBjects private methods.
  37. +*/
  38. +#ifndef _MAGICK_BLOB_PRIVATE_H
  39. +#define _MAGICK_BLOB_PRIVATE_H
  40. +
  41. +#if defined(__cplusplus) || defined(c_plusplus)
  42. +extern "C" {
  43. +#endif
  44. +
  45. +#include "magick/image.h"
  46. +#include "magick/stream.h"
  47. +
  48. +#if !defined(MagickMaxBufferSize)
  49. +#define MagickMaxBufferSize 0x3c005UL
  50. +#endif
  51. +
  52. +typedef enum
  53. +{
  54. + UndefinedBlobMode,
  55. + ReadBlobMode,
  56. + ReadBinaryBlobMode,
  57. + WriteBlobMode,
  58. + WriteBinaryBlobMode,
  59. + IOBinaryBlobMode
  60. +} BlobMode;
  61. +
  62. +typedef int
  63. + *(*BlobFifo)(const Image *,const void *,const size_t);
  64. +
  65. +typedef struct _BlobInfo
  66. + BlobInfo;
  67. +
  68. +extern MagickExport BlobInfo
  69. + *CloneBlobInfo(const BlobInfo *),
  70. + *ReferenceBlob(BlobInfo *);
  71. +
  72. +extern MagickExport char
  73. + *ReadBlobString(Image *,char *);
  74. +
  75. +extern MagickExport int
  76. + EOFBlob(const Image *),
  77. + ReadBlobByte(Image *),
  78. + SyncBlob(Image *);
  79. +
  80. +extern MagickExport MagickBooleanType
  81. + OpenBlob(const ImageInfo *,Image *,const BlobMode,ExceptionInfo *),
  82. + UnmapBlob(void *,const size_t);
  83. +
  84. +extern MagickExport MagickOffsetType
  85. + SeekBlob(Image *,const MagickOffsetType,const int),
  86. + TellBlob(const Image *image);
  87. +
  88. +extern MagickExport ssize_t
  89. + ReadBlob(Image *,const size_t,unsigned char *),
  90. + WriteBlob(Image *,const size_t,const unsigned char *),
  91. + WriteBlobByte(Image *,const unsigned char),
  92. + WriteBlobLSBLong(Image *,const unsigned long),
  93. + WriteBlobLSBShort(Image *,const unsigned short),
  94. + WriteBlobMSBLong(Image *,const unsigned long),
  95. + WriteBlobMSBShort(Image *,const unsigned short),
  96. + WriteBlobString(Image *,const char *);
  97. +
  98. +extern MagickExport unsigned char
  99. + *DetachBlob(BlobInfo *),
  100. + *ImageToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *),
  101. + *MapBlob(int,const MapMode,const MagickOffsetType,const size_t);
  102. +
  103. +extern MagickExport unsigned long
  104. + ReadBlobLSBLong(Image *),
  105. + ReadBlobMSBLong(Image *);
  106. +
  107. +extern MagickExport unsigned short
  108. + ReadBlobLSBShort(Image *),
  109. + ReadBlobMSBShort(Image *);
  110. +
  111. +extern MagickExport void
  112. + AttachBlob(BlobInfo *,const void *,const size_t),
  113. + CloseBlob(Image *),
  114. + GetBlobInfo(BlobInfo *),
  115. + MSBOrderLong(unsigned char *,const size_t),
  116. + MSBOrderShort(unsigned char *,const size_t);
  117. +
  118. +#if defined(__cplusplus) || defined(c_plusplus)
  119. +}
  120. +#endif
  121. +
  122. +#endif
  123. diff -urN pixieplus.orig/kdenonbeta/pixieplus/app/compressedgif.cpp pixieplus/kdenonbeta/pixieplus/app/compressedgif.cpp
  124. --- pixieplus.orig/kdenonbeta/pixieplus/app/compressedgif.cpp 2005-03-29 14:47:27.297221960 +0200
  125. +++ pixieplus/kdenonbeta/pixieplus/app/compressedgif.cpp 2005-03-29 14:49:30.962421992 +0200
  126. @@ -9,6 +9,10 @@
  127. #include <magick/api.h>
  128. #include <assert.h>
  129. +#include "blob-private.h"
  130. +#include "image-private.h"
  131. +#include "exception-private.h"
  132. +
  133. #ifndef False
  134. #define False 0
  135. #endif
  136. diff -urN pixieplus.orig/kdenonbeta/pixieplus/app/exception-private.h pixieplus/kdenonbeta/pixieplus/app/exception-private.h
  137. --- pixieplus.orig/kdenonbeta/pixieplus/app/exception-private.h 1970-01-01 01:00:00.000000000 +0100
  138. +++ pixieplus/kdenonbeta/pixieplus/app/exception-private.h 2005-03-29 14:48:34.611988560 +0200
  139. @@ -0,0 +1,92 @@
  140. +/*
  141. + Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  142. + dedicated to making software imaging solutions freely available.
  143. +
  144. + You may not use this file except in compliance with the License.
  145. + obtain a copy of the License at
  146. +
  147. + http://www.imagemagick.org/www/Copyright.html
  148. +
  149. + Unless required by applicable law or agreed to in writing, software
  150. + distributed under the License is distributed on an "AS IS" BASIS,
  151. + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  152. + See the License for the specific language governing permissions and
  153. + limitations under the License.
  154. +
  155. + ImageMagick private exception methods.
  156. +*/
  157. +#ifndef _MAGICK_EXCEPTION_PRIVATE_H
  158. +#define _MAGICK_EXCEPTION_PRIVATE_H
  159. +
  160. +#if defined(__cplusplus) || defined(c_plusplus)
  161. +extern "C" {
  162. +#endif
  163. +
  164. +#include "magick/log.h"
  165. +
  166. +#define ThrowBinaryException(severity,tag,context) \
  167. +{ \
  168. + if (image != (Image *) NULL) \
  169. + (void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
  170. + tag,"`%s'",context); \
  171. + return(MagickFalse); \
  172. +}
  173. +#define ThrowFileException(exception,severity,tag,context) \
  174. + (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
  175. + "`%s': %s",context,strerror(errno));
  176. +#define ThrowImageException(severity,tag) \
  177. +{ \
  178. + (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
  179. + "`%s'",image->filename); \
  180. + return((Image *) NULL); \
  181. +}
  182. +#define ThrowMagickFatalException(severity,tag,context) \
  183. +{ \
  184. + ExceptionInfo \
  185. + exception; \
  186. + \
  187. + GetExceptionInfo(&exception); \
  188. + (void) ThrowMagickException(&exception,GetMagickModule(),severity,tag, \
  189. + "`%s'",context); \
  190. + CatchException(&exception); \
  191. + DestroyExceptionInfo(&exception); \
  192. +}
  193. +#define ThrowReaderException(severity,tag) \
  194. +{ \
  195. + (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
  196. + "`%s'",image_info->filename); \
  197. + if ((image) != (Image *) NULL) \
  198. + { \
  199. + CloseBlob(image); \
  200. + image=DestroyImageList(image); \
  201. + } \
  202. + return((Image *) NULL); \
  203. +}
  204. +#define ThrowWriterException(severity,tag) \
  205. +{ \
  206. + assert(image != (Image *) NULL); \
  207. + (void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
  208. + tag,"`%s'",image->filename); \
  209. + if (image_info->adjoin != MagickFalse) \
  210. + while (image->previous != (Image *) NULL) \
  211. + image=image->previous; \
  212. + CloseBlob(image); \
  213. + return(MagickFalse); \
  214. +}
  215. +#define ThrowXWindowException(severity,tag,context) \
  216. +{ \
  217. + ExceptionInfo \
  218. + exception; \
  219. + \
  220. + GetExceptionInfo(&exception); \
  221. + (void) ThrowMagickException(&exception,GetMagickModule(),severity,tag, \
  222. + "`%s'",context); \
  223. + CatchException(&exception); \
  224. + DestroyExceptionInfo(&exception); \
  225. +}
  226. +
  227. +#if defined(__cplusplus) || defined(c_plusplus)
  228. +}
  229. +#endif
  230. +
  231. +#endif
  232. diff -urN pixieplus.orig/kdenonbeta/pixieplus/app/image-private.h pixieplus/kdenonbeta/pixieplus/app/image-private.h
  233. --- pixieplus.orig/kdenonbeta/pixieplus/app/image-private.h 1970-01-01 01:00:00.000000000 +0100
  234. +++ pixieplus/kdenonbeta/pixieplus/app/image-private.h 2005-03-29 14:48:40.193140096 +0200
  235. @@ -0,0 +1,50 @@
  236. +/*
  237. + Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  238. + dedicated to making software imaging solutions freely available.
  239. +
  240. + You may not use this file except in compliance with the License.
  241. + obtain a copy of the License at
  242. +
  243. + http://www.imagemagick.org/www/Copyright.html
  244. +
  245. + Unless required by applicable law or agreed to in writing, software
  246. + distributed under the License is distributed on an "AS IS" BASIS,
  247. + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  248. + See the License for the specific language governing permissions and
  249. + limitations under the License.
  250. +
  251. + ImageMagick private image methods.
  252. +*/
  253. +#ifndef _MAGICK_IMAGE_PRIVATE_H
  254. +#define _MAGICK_IMAGE_PRIVATE_H
  255. +
  256. +#if defined(__cplusplus) || defined(c_plusplus)
  257. +extern "C" {
  258. +#endif
  259. +
  260. +extern MagickExport const char
  261. + *BackgroundColor,
  262. + *BorderColor,
  263. + *DefaultTileFrame,
  264. + *DefaultTileGeometry,
  265. + *DefaultTileLabel,
  266. + *ForegroundColor,
  267. + *MatteColor,
  268. + *LoadImageTag,
  269. + *LoadImagesTag,
  270. + *PSDensityGeometry,
  271. + *PSPageGeometry,
  272. + *SaveImageTag,
  273. + *SaveImagesTag;
  274. +
  275. +extern MagickExport const double
  276. + DefaultResolution;
  277. +
  278. +extern MagickExport const unsigned long
  279. + UndefinedCompressionQuality;
  280. +
  281. +#if defined(__cplusplus) || defined(c_plusplus)
  282. +}
  283. +#endif
  284. +
  285. +#endif