Lines Matching full:magic

13 %                      MagickCore Image Magic Methods                         %
50 #include "MagickCore/magic.h"
51 #include "MagickCore/magic-private.h"
65 #define MagicFilename "magic.xml"
66 #define MagicPattern(magic) (const unsigned char *) (magic), sizeof(magic)-1 argument
80 *magic; member
231 % AcquireMagicCache() caches one or more magic configurations which provides a
232 % mapping between magic attributes and a magic name.
274 Load external magic map. in AcquireMagicCache()
305 Load built-in magic map. in AcquireMagicCache()
327 magic_info->target=(char *) p->magic; in AcquireMagicCache()
328 magic_info->magic=(unsigned char *) p->magic; in AcquireMagicCache()
352 % GetMagicInfo() searches the magic list for the specified name and if found
353 % returns attributes for that magic.
357 % const MagicInfo *GetMagicInfo(const unsigned char *magic,
362 % o magic: A binary string generally representing the first few characters
370 MagickExport const MagicInfo *GetMagicInfo(const unsigned char *magic, in GetMagicInfo() argument
380 Search for magic tag. in GetMagicInfo()
385 if (magic == (const unsigned char *) NULL) in GetMagicInfo()
394 (memcmp(magic+p->offset,p->magic,p->length) == 0)) in GetMagicInfo()
473 % The magic of the GetMagicInfoList function is:
522 Allocate magic list. in GetMagicInfoList()
536 Generate magic list. in GetMagicInfoList()
658 % GetMagicName() returns the name associated with the magic.
666 % o magic_info: The magic info.
688 % IsMagicCacheInstantiated() determines if the magic list is instantiated.
725 % ListMagicInfo() lists the magic info to a file.
812 % LoadMagicCache() loads the magic configurations which provides a mapping
813 % between magic attributes and a magic name.
822 % o xml: The magic list in XML format.
824 % o filename: The magic list filename.
851 Load the magic map file. in LoadMagicCache()
854 "Loading magic configure file \"%s\" ...",filename); in LoadMagicCache()
931 if (LocaleCompare(keyword,"<magic") == 0) in LoadMagicCache()
934 Magic element. in LoadMagicCache()
1011 magic_info->magic=(unsigned char *) ConstantString(token); in LoadMagicCache()
1012 q=magic_info->magic; in LoadMagicCache()
1074 % MagicComponentGenesis() instantiates the magic component.
1099 % MagicComponentTerminus() destroys the magic component.
1121 if (p->magic != (unsigned char *) NULL) in DestroyMagicElement()
1122 p->magic=(unsigned char *) RelinquishMagickMemory(p->magic); in DestroyMagicElement()