Skip to content

Commit

Permalink
Add new CompressionType enum values (IM 6.5.5-4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Sep 5, 2009
1 parent 53a15d8 commit 080cedc
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,11 @@
RMagick 2.11.1
o Applied Alexey Borzenkov's mingw patches to extconf.rb.
o Fixed a bug in Magick.trace_proc that could cause a segv at program exit
with Ruby 1.9.1 (bug report by Larry Young)
o Added new CompressionType enum values ZipSCompression, PixCompression,
Pxr24Compression, B44Compression, B44ACompression (available in
ImageMagick 6.5.5-4)

RMagick 2.11.0 RMagick 2.11.0
o Fix bug #26475, dissolve and watermark don't work with new versions of o Fix bug #26475, dissolve and watermark don't work with new versions of
ImageMagick (reported by Jim Crate) ImageMagick (reported by Jim Crate)
Expand Down
8 changes: 7 additions & 1 deletion ext/RMagick/extconf.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -276,7 +276,13 @@ def check_multiple_imagemagick_versions()
"VividLightCompositeOp"], headers) # 6.5.4-3 "VividLightCompositeOp"], headers) # 6.5.4-3
have_enum_values("CompressionType", ["DXT1Compression", # 6.3.9-3 have_enum_values("CompressionType", ["DXT1Compression", # 6.3.9-3
"DXT3Compression", # 6.3.9-3 "DXT3Compression", # 6.3.9-3
"DXT5Compression"], headers) # 6.3.9-3 "DXT5Compression", # 6.3.9-3
"ZipSCompression", # 6.5.5-4
"PizCompression", # 6.5.5-4
"Pxr24Compression", # 6.5.5-4
"B44Compression", # 6.5.5-4
"B44ACompression"], headers) # 6.5.5-4

have_enum_values("DistortImageMethod", ["BarrelDistortion", # 6.4.2-5 have_enum_values("DistortImageMethod", ["BarrelDistortion", # 6.4.2-5
"BarrelInverseDistortion", # 6.4.3-8 "BarrelInverseDistortion", # 6.4.3-8
"BilinearForwardDistortion", # 6.5.1-2 "BilinearForwardDistortion", # 6.5.1-2
Expand Down
19 changes: 17 additions & 2 deletions ext/RMagick/rmenum.c
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: rmenum.c,v 1.7 2009/07/21 23:12:43 rmagick Exp $ */ /* $Id: rmenum.c,v 1.8 2009/09/05 20:01:08 rmagick Exp $ */
/*============================================================================\ /*============================================================================\
| Copyright (C) 2009 by Timothy P. Hunter | Copyright (C) 2009 by Timothy P. Hunter
| Name: rmenum.c | Name: rmenum.c
Expand Down Expand Up @@ -480,6 +480,12 @@ CompressionType_name(CompressionType ct)
{ {
ENUM_TO_NAME(UndefinedCompression) ENUM_TO_NAME(UndefinedCompression)
ENUM_TO_NAME(NoCompression) ENUM_TO_NAME(NoCompression)
#if defined(HAVE_ENUM_B44COMPRESSION)
ENUM_TO_NAME(B44Compression)
#endif
#if defined(HAVE_ENUM_B44ACOMPRESSION)
ENUM_TO_NAME(B44ACompression)
#endif
ENUM_TO_NAME(BZipCompression) ENUM_TO_NAME(BZipCompression)
#if defined(HAVE_ENUM_DXT1COMPRESSION) #if defined(HAVE_ENUM_DXT1COMPRESSION)
ENUM_TO_NAME(DXT1Compression) ENUM_TO_NAME(DXT1Compression)
Expand All @@ -496,9 +502,18 @@ CompressionType_name(CompressionType ct)
ENUM_TO_NAME(JPEG2000Compression) ENUM_TO_NAME(JPEG2000Compression)
ENUM_TO_NAME(LosslessJPEGCompression) ENUM_TO_NAME(LosslessJPEGCompression)
ENUM_TO_NAME(LZWCompression) ENUM_TO_NAME(LZWCompression)
#if defined(HAVE_ENUM_PIZCOMPRESSION)
ENUM_TO_NAME(PizCompression)
#endif
#if defined(HAVE_ENUM_PXR24COMPRESSION)
ENUM_TO_NAME(Pxr24Compression)
#endif
ENUM_TO_NAME(RLECompression) ENUM_TO_NAME(RLECompression)
ENUM_TO_NAME(ZipCompression) ENUM_TO_NAME(ZipCompression)
} #if defined(HAVE_ENUM_ZIPSCOMPRESSION)
ENUM_TO_NAME(ZipSCompression)
#endif
}


return "UndefinedCompression"; return "UndefinedCompression";
} }
Expand Down
19 changes: 17 additions & 2 deletions ext/RMagick/rmmain.c
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: rmmain.c,v 1.298 2009/07/23 22:55:57 rmagick Exp $ */ /* $Id: rmmain.c,v 1.299 2009/09/05 20:01:08 rmagick Exp $ */
/*============================================================================\ /*============================================================================\
| Copyright (C) 2009 by Timothy P. Hunter | Copyright (C) 2009 by Timothy P. Hunter
| Name: rmmain.c | Name: rmmain.c
Expand Down Expand Up @@ -1021,6 +1021,12 @@ Init_RMagick2(void)
DEF_ENUM(CompressionType) DEF_ENUM(CompressionType)
ENUMERATOR(UndefinedCompression) ENUMERATOR(UndefinedCompression)
ENUMERATOR(NoCompression) ENUMERATOR(NoCompression)
#if defined(HAVE_ENUM_B44COMPRESSION)
ENUMERATOR(B44Compression)
#endif
#if defined(HAVE_ENUM_B44ACOMPRESSION)
ENUMERATOR(B44ACompression)
#endif
ENUMERATOR(BZipCompression) ENUMERATOR(BZipCompression)
#if defined(HAVE_ENUM_DXT1COMPRESSION) #if defined(HAVE_ENUM_DXT1COMPRESSION)
ENUMERATOR(DXT1Compression) ENUMERATOR(DXT1Compression)
Expand All @@ -1037,8 +1043,17 @@ Init_RMagick2(void)
ENUMERATOR(JPEG2000Compression) ENUMERATOR(JPEG2000Compression)
ENUMERATOR(LosslessJPEGCompression) ENUMERATOR(LosslessJPEGCompression)
ENUMERATOR(LZWCompression) ENUMERATOR(LZWCompression)
#if defined(HAVE_ENUM_PIZCOMPRESSION)
ENUMERATOR(PizCompression)
#endif
#if defined(HAVE_ENUM_PXR24COMPRESSION)
ENUMERATOR(Pxr24Compression)
#endif
ENUMERATOR(RLECompression) ENUMERATOR(RLECompression)
ENUMERATOR(ZipCompression) ENUMERATOR(ZipCompression)
#if defined(HAVE_ENUM_ZIPSCOMPRESSION)
ENUMERATOR(ZipSCompression)
#endif
END_ENUM END_ENUM


// DecorationType constants // DecorationType constants
Expand Down Expand Up @@ -1623,7 +1638,7 @@ version_constants(void)
rb_define_const(Module_Magick, "Version", str); rb_define_const(Module_Magick, "Version", str);


sprintf(long_version, sprintf(long_version,
"This is %s ($Date: 2009/07/23 22:55:57 $) Copyright (C) 2009 by Timothy P. Hunter\n" "This is %s ($Date: 2009/09/05 20:01:08 $) Copyright (C) 2009 by Timothy P. Hunter\n"
"Built with %s\n" "Built with %s\n"
"Built for %s\n" "Built for %s\n"
"Web page: http://rmagick.rubyforge.org\n" "Web page: http://rmagick.rubyforge.org\n"
Expand Down

0 comments on commit 080cedc

Please sign in to comment.