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.

285 lines
9.0 KiB

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