MagickCore  6.9.11-59
Convert, Edit, Or Compose Bitmap Images
coder.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore image coder methods.
17 */
18 #ifndef MAGICKCORE_CODER_H
19 #define MAGICKCORE_CODER_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef struct _CoderInfo
26 {
27  char
28  *path,
30  *name;
31 
35 
36  struct _CoderInfo
38  *next; /* deprecated, use GetCoderInfoList() */
39 
40  size_t
43 
44 extern MagickExport char
45  **GetCoderList(const char *,size_t *,ExceptionInfo *);
46 
47 extern MagickExport const CoderInfo
48  *GetCoderInfo(const char *,ExceptionInfo *),
49  **GetCoderInfoList(const char *,size_t *,ExceptionInfo *);
50 
53  ListCoderInfo(FILE *,ExceptionInfo *);
54 
55 MagickExport void
57 
58 #if defined(__cplusplus) || defined(c_plusplus)
59 }
60 #endif
61 
62 #endif
DirectorySeparator
#define DirectorySeparator
Definition: studio.h:274
LockSemaphoreInfo
MagickExport void LockSemaphoreInfo(SemaphoreInfo *semaphore_info)
Definition: semaphore.c:293
MagickExport
#define MagickExport
Definition: method-attribute.h:80
ListCoderInfo
MagickExport MagickBooleanType ListCoderInfo(FILE *, ExceptionInfo *)
Definition: coder.c:724
GetStringInfoPath
MagickExport const char * GetStringInfoPath(const StringInfo *string_info)
Definition: string.c:1270
_CoderInfo::next
struct _CoderInfo * next
Definition: coder.h:38
_CoderMapInfo
Definition: coder.c:71
NewSplayTree
MagickExport SplayTreeInfo * NewSplayTree(int(*compare)(const void *, const void *), void *(*relinquish_key)(void *), void *(*relinquish_value)(void *))
Definition: splay-tree.c:1140
_CoderMapInfo::magick
const char * magick
Definition: coder.c:73
HeadPath
@ HeadPath
Definition: utility.h:30
GetMagickModule
#define GetMagickModule()
Definition: log.h:29
CoderInfoCompare
static int CoderInfoCompare(const void *x, const void *y)
Definition: coder.c:519
MagickStatusType
unsigned int MagickStatusType
Definition: magick-type.h:131
_CoderInfo::signature
size_t signature
Definition: coder.h:41
_SplayTreeInfo
Definition: splay-tree.c:83
IsMagickTrue
MagickExport MagickBooleanType IsMagickTrue(const char *value)
Definition: token.c:657
MagickCoreSignature
#define MagickCoreSignature
Definition: method-attribute.h:86
GetCoderInfoList
MagickExport const CoderInfo ** GetCoderInfoList(const char *, size_t *, ExceptionInfo *)
Definition: coder.c:532
coder_cache
static SplayTreeInfo * coder_cache
Definition: coder.c:270
coder_semaphore
static SemaphoreInfo * coder_semaphore
Definition: coder.c:267
CoderInfo
struct _CoderInfo CoderInfo
DestroySplayTree
MagickExport SplayTreeInfo * DestroySplayTree(SplayTreeInfo *splay_tree)
Definition: splay-tree.c:681
ResourceLimitError
@ ResourceLimitError
Definition: exception.h:55
utility.h
CoderCompare
static int CoderCompare(const void *x, const void *y)
Definition: coder.c:606
string_.h
DestroyString
MagickExport char * DestroyString(char *string)
Definition: string.c:808
GetPathComponent
MagickExport void GetPathComponent(const char *path, PathType type, char *component)
Definition: utility.c:1218
MagickTrue
@ MagickTrue
Definition: magick-type.h:205
blob.h
semaphore.h
CoderComponentTerminus
MagickExport void CoderComponentTerminus(void)
Definition: coder.c:445
hashmap.h
_CoderMapInfo::name
const char * name
Definition: coder.c:74
AcquireCoderCache
static SplayTreeInfo * AcquireCoderCache(const char *filename, ExceptionInfo *exception)
Definition: coder.c:329
TraceEvent
@ TraceEvent
Definition: log.h:38
AcquireMagickMemory
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:552
_CoderInfo::name
char * name
Definition: coder.h:30
FormatLocaleFile
MagickExport ssize_t FormatLocaleFile(FILE *file, const char *magick_restrict format,...)
Definition: locale.c:402
GetCoderInfo
MagickExport const CoderInfo * GetCoderInfo(const char *, ExceptionInfo *)
SemaphoreInfo
Definition: semaphore.c:61
ConcatenateMagickString
MagickExport size_t ConcatenateMagickString(char *magick_restrict destination, const char *magick_restrict source, const size_t length)
Definition: string.c:425
LocaleNCompare
MagickExport int LocaleNCompare(const char *p, const char *q, const size_t length)
Definition: locale.c:1570
GetCoderInfo
MagickExport const CoderInfo * GetCoderInfo(const char *name, ExceptionInfo *exception)
Definition: coder.c:481
ListCoderInfo
MagickExport MagickBooleanType ListCoderInfo(FILE *file, ExceptionInfo *exception)
Definition: coder.c:724
CompareSplayTreeString
MagickExport int CompareSplayTreeString(const void *target, const void *source)
Definition: splay-tree.c:411
_CoderInfo::exempt
MagickBooleanType exempt
Definition: coder.h:33
_CoderInfo::path
char * path
Definition: coder.h:28
ConfigureEvent
@ ConfigureEvent
Definition: log.h:43
MagickMaxRecursionDepth
#define MagickMaxRecursionDepth
Definition: studio.h:381
LocaleCompare
MagickExport int LocaleCompare(const char *p, const char *q)
Definition: locale.c:1435
_CoderInfo::previous
struct _CoderInfo * previous
Definition: coder.h:36
splay-tree.h
GetCoderInfoList
MagickExport const CoderInfo ** GetCoderInfoList(const char *pattern, size_t *number_coders, ExceptionInfo *exception)
Definition: coder.c:532
_LinkedListInfo
Definition: hashmap.c:78
CoderComponentGenesis
MagickExport MagickBooleanType CoderComponentGenesis(void)
Definition: coder.c:420
GetCoderList
MagickExport char ** GetCoderList(const char *, size_t *, ExceptionInfo *)
Definition: coder.c:617
xml-tree-private.h
MagickFalse
@ MagickFalse
Definition: magick-type.h:204
xml-tree.h
GetValueFromSplayTree
MagickExport const void * GetValueFromSplayTree(SplayTreeInfo *splay_tree, const void *key)
Definition: splay-tree.c:920
DestroyCoderNode
static void * DestroyCoderNode(void *coder_info)
Definition: coder.c:311
CoderComponentGenesis
MagickExport MagickBooleanType CoderComponentGenesis(void)
_CoderInfo
Definition: coder.h:26
CoderComponentTerminus
MagickExport void CoderComponentTerminus(void)
Definition: coder.c:445
AllocateSemaphoreInfo
MagickExport SemaphoreInfo * AllocateSemaphoreInfo(void)
Definition: semaphore.c:192
GetNumberOfNodesInSplayTree
MagickExport size_t GetNumberOfNodesInSplayTree(const SplayTreeInfo *splay_tree)
Definition: splay-tree.c:975
ActivateSemaphoreInfo
MagickExport void ActivateSemaphoreInfo(SemaphoreInfo **semaphore_info)
Definition: semaphore.c:98
draw.h
AddValueToSplayTree
MagickExport MagickBooleanType AddValueToSplayTree(SplayTreeInfo *splay_tree, const void *key, const void *value)
Definition: splay-tree.c:153
ResetSplayTreeIterator
MagickExport void ResetSplayTreeIterator(SplayTreeInfo *splay_tree)
Definition: splay-tree.c:1473
MagickCoderFilename
#define MagickCoderFilename
Definition: coder.c:65
DestroySemaphoreInfo
MagickExport void DestroySemaphoreInfo(SemaphoreInfo **semaphore_info)
Definition: semaphore.c:351
log.h
ConstantString
MagickExport char * ConstantString(const char *source)
Definition: string.c:698
MagickBooleanType
MagickBooleanType
Definition: magick-type.h:203
_CoderInfo::magick
char * magick
Definition: coder.h:29
GetNextValueInLinkedList
MagickExport void * GetNextValueInLinkedList(LinkedListInfo *list_info)
Definition: hashmap.c:606
RelinquishMagickMemory
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1162
_ExceptionInfo
Definition: exception.h:103
studio.h
GetRootValueFromSplayTree
MagickExport const void * GetRootValueFromSplayTree(SplayTreeInfo *splay_tree)
Definition: splay-tree.c:876
LoadCoderCache
static MagickBooleanType LoadCoderCache(SplayTreeInfo *, const char *, const char *, const size_t, ExceptionInfo *)
Definition: coder.c:806
FileToXML
MagickPrivate char * FileToXML(const char *, const size_t)
Definition: xml-tree.c:597
memory_.h
GetCoderList
MagickExport char ** GetCoderList(const char *pattern, size_t *number_coders, ExceptionInfo *exception)
Definition: coder.c:617
GetStringInfoDatum
MagickExport unsigned char * GetStringInfoDatum(const StringInfo *string_info)
Definition: string.c:1183
GetNextValueInSplayTree
MagickExport const void * GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
Definition: splay-tree.c:822
CoderMap
static const CoderMapInfo CoderMap[]
Definition: coder.c:81
exception-private.h
ThrowMagickException
MagickExport MagickBooleanType ThrowMagickException(ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format,...)
Definition: exception.c:1149
ThrowFatalException
#define ThrowFatalException(severity, tag)
Definition: exception-private.h:42
UnlockSemaphoreInfo
MagickExport void UnlockSemaphoreInfo(SemaphoreInfo *semaphore_info)
Definition: semaphore.c:449
exception.h
IsCoderTreeInstantiated
static MagickBooleanType IsCoderTreeInstantiated(ExceptionInfo *)
Definition: coder.c:686
GlobExpression
MagickExport MagickBooleanType GlobExpression(const char *magick_restrict expression, const char *magick_restrict pattern, const MagickBooleanType case_insensitive)
Definition: token.c:355
option.h
GetConfigureOptions
MagickExport LinkedListInfo * GetConfigureOptions(const char *filename, ExceptionInfo *exception)
Definition: configure.c:622
CopyMagickString
MagickExport size_t CopyMagickString(char *magick_restrict destination, const char *magick_restrict source, const size_t length)
Definition: string.c:751
DestroyConfigureOptions
MagickExport LinkedListInfo * DestroyConfigureOptions(LinkedListInfo *options)
Definition: configure.c:294
LogMagickEvent
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
Definition: log.c:1420
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:89
GetNextToken
MagickExport magick_hot_spot size_t GetNextToken(const char *magick_restrict start, const char **magick_restrict end, const size_t extent, char *magick_restrict token)
Definition: token.c:174
token.h
_CoderInfo::stealth
MagickBooleanType stealth
Definition: coder.h:34
ResourceLimitFatalError
@ ResourceLimitFatalError
Definition: exception.h:78
AcquireString
MagickExport char * AcquireString(const char *source)
Definition: string.c:125
ConfigureError
@ ConfigureError
Definition: exception.h:75
client.h
coder.h
_StringInfo
Definition: string_.h:30
AcquireQuantumMemory
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
Definition: memory.c:665
configure.h
CoderMapInfo
struct _CoderMapInfo CoderMapInfo