]> granicus.if.org Git - imagemagick/commitdiff
Fixed build for when there is no HEIC support.
authorDirk Lemstra <dirk@git.imagemagick.org>
Thu, 11 Jan 2018 22:44:18 +0000 (23:44 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Thu, 11 Jan 2018 22:44:18 +0000 (23:44 +0100)
coders/heic.c

index 34616c6ac4a5db0ad7302b55cdc4fcb5e3687472..24242affd70c3e705c16804828bbe328eff2a8b2 100644 (file)
@@ -275,41 +275,6 @@ inline static void DBSkip(DataBuffer *db, size_t skip)
   }
 }
 
-
-/*
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%                                                                             %
-%                                                                             %
-%                                                                             %
-%   I s H E I C                                                               %
-%                                                                             %
-%                                                                             %
-%                                                                             %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-%  IsHEIC() returns MagickTrue if the image format type, identified by the
-%  magick string, is Heic.
-%
-%  The format of the IsHEIC method is:
-%
-%      MagickBooleanType IsHEIC(const unsigned char *magick,const size_t length)
-%
-%  A description of each parameter follows:
-%
-%    o magick: compare image format pattern against these bytes.
-%
-%    o length: Specifies the length of the magick string.
-%
-*/
-static MagickBooleanType IsHEIC(const unsigned char *magick,const size_t length)
-{
-  if (length < 12)
-    return(MagickFalse);
-  if (LocaleNCompare((const char *) magick+8,"heic",4) == 0)
-    return(MagickTrue);
-  return(MagickFalse);
-}
-
 static MagickBooleanType ParseAtom(Image *image, DataBuffer *db,
     HEICImageContext *ctx, ExceptionInfo *exception);
 
@@ -1318,6 +1283,40 @@ cleanup:
 }
 #endif
 
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%   I s H E I C                                                               %
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%  IsHEIC() returns MagickTrue if the image format type, identified by the
+%  magick string, is Heic.
+%
+%  The format of the IsHEIC method is:
+%
+%      MagickBooleanType IsHEIC(const unsigned char *magick,const size_t length)
+%
+%  A description of each parameter follows:
+%
+%    o magick: compare image format pattern against these bytes.
+%
+%    o length: Specifies the length of the magick string.
+%
+*/
+static MagickBooleanType IsHEIC(const unsigned char *magick,const size_t length)
+{
+  if (length < 12)
+    return(MagickFalse);
+  if (LocaleNCompare((const char *) magick+8,"heic",4) == 0)
+    return(MagickTrue);
+  return(MagickFalse);
+}
+
 /*
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %                                                                             %