From: Dirk Lemstra Date: Thu, 11 Jan 2018 22:44:18 +0000 (+0100) Subject: Fixed build for when there is no HEIC support. X-Git-Tag: 7.0.7-22~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be756978837c511fd2fc18d078e48c932feb78ce;p=imagemagick Fixed build for when there is no HEIC support. --- diff --git a/coders/heic.c b/coders/heic.c index 34616c6ac..24242affd 100644 --- a/coders/heic.c +++ b/coders/heic.c @@ -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); +} + /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %