MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
coder.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 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.
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:266
LockSemaphoreInfo
MagickExport void LockSemaphoreInfo(SemaphoreInfo *semaphore_info)
Definition: semaphore.c:345
MagickExport
#define MagickExport
Definition: method-attribute.h:80
ListCoderInfo
MagickExport MagickBooleanType ListCoderInfo(FILE *, ExceptionInfo *)
Definition: coder.c:715
GetStringInfoPath
MagickExport const char * GetStringInfoPath(const StringInfo *string_info)
Definition: string.c:1362
_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:510
MagickStatusType
unsigned int MagickStatusType
Definition: magick-type.h:127
_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:649
MagickCoreSignature
#define MagickCoreSignature
Definition: method-attribute.h:86
GetCoderInfoList
MagickExport const CoderInfo ** GetCoderInfoList(const char *, size_t *, ExceptionInfo *)
Definition: coder.c:523
GetNextToken
MagickExport void GetNextToken(const char *start, const char **end, const size_t extent, char *token)
Definition: token.c:172
coder_cache
static SplayTreeInfo * coder_cache
Definition: coder.c:265
coder_semaphore
static SemaphoreInfo * coder_semaphore
Definition: coder.c:262
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:597
string_.h
DestroyString
MagickExport char * DestroyString(char *string)
Definition: string.c:820
GetPathComponent
MagickExport void GetPathComponent(const char *path, PathType type, char *component)
Definition: utility.c:1208
MagickTrue
@ MagickTrue
Definition: magick-type.h:194
blob.h
semaphore.h
CopyMagickString
MagickExport size_t CopyMagickString(char *destination, const char *source, const size_t length)
Definition: string.c:752
CoderComponentTerminus
MagickExport void CoderComponentTerminus(void)
Definition: coder.c:436
hashmap.h
_CoderMapInfo::name
const char * name
Definition: coder.c:74
AcquireCoderCache
static SplayTreeInfo * AcquireCoderCache(const char *filename, ExceptionInfo *exception)
Definition: coder.c:320
TraceEvent
@ TraceEvent
Definition: log.h:38
AcquireMagickMemory
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:473
_CoderInfo::name
char * name
Definition: coder.h:30
FormatLocaleFile
MagickExport ssize_t FormatLocaleFile(FILE *file, const char *magick_restrict format,...)
Definition: locale.c:407
GetCoderInfo
MagickExport const CoderInfo * GetCoderInfo(const char *, ExceptionInfo *)
SemaphoreInfo
Definition: semaphore.c:60
LocaleNCompare
MagickExport int LocaleNCompare(const char *p, const char *q, const size_t length)
Definition: locale.c:1542
GetCoderInfo
MagickExport const CoderInfo * GetCoderInfo(const char *name, ExceptionInfo *exception)
Definition: coder.c:472
ListCoderInfo
MagickExport MagickBooleanType ListCoderInfo(FILE *file, ExceptionInfo *exception)
Definition: coder.c:715
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:373
LocaleCompare
MagickExport int LocaleCompare(const char *p, const char *q)
Definition: locale.c:1440
_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:523
_LinkedListInfo
Definition: hashmap.c:78
CoderComponentGenesis
MagickExport MagickBooleanType CoderComponentGenesis(void)
Definition: coder.c:411
GetCoderList
MagickExport char ** GetCoderList(const char *, size_t *, ExceptionInfo *)
Definition: coder.c:608
xml-tree-private.h
MagickFalse
@ MagickFalse
Definition: magick-type.h:193
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:302
CoderComponentGenesis
MagickExport MagickBooleanType CoderComponentGenesis(void)
_CoderInfo
Definition: coder.h:26
CoderComponentTerminus
MagickExport void CoderComponentTerminus(void)
Definition: coder.c:436
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:97
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
GlobExpression
MagickExport MagickBooleanType GlobExpression(const char *expression, const char *pattern, const MagickBooleanType case_insensitive)
Definition: token.c:347
DestroySemaphoreInfo
MagickExport void DestroySemaphoreInfo(SemaphoreInfo **semaphore_info)
Definition: semaphore.c:293
log.h
ConstantString
MagickExport char * ConstantString(const char *source)
Definition: string.c:697
MagickBooleanType
MagickBooleanType
Definition: magick-type.h:192
_CoderInfo::magick
char * magick
Definition: coder.h:29
ConcatenateMagickString
MagickExport size_t ConcatenateMagickString(char *destination, const char *source, const size_t length)
Definition: string.c:424
GetNextValueInLinkedList
MagickExport void * GetNextValueInLinkedList(LinkedListInfo *list_info)
Definition: hashmap.c:606
RelinquishMagickMemory
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1077
_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:796
FileToXML
MagickPrivate char * FileToXML(const char *, const size_t)
Definition: xml-tree.c:598
memory_.h
GetCoderList
MagickExport char ** GetCoderList(const char *pattern, size_t *number_coders, ExceptionInfo *exception)
Definition: coder.c:608
GetStringInfoDatum
MagickExport unsigned char * GetStringInfoDatum(const StringInfo *string_info)
Definition: string.c:1275
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:1068
ThrowFatalException
#define ThrowFatalException(severity, tag)
Definition: exception-private.h:42
UnlockSemaphoreInfo
MagickExport void UnlockSemaphoreInfo(SemaphoreInfo *semaphore_info)
Definition: semaphore.c:450
exception.h
IsCoderTreeInstantiated
static MagickBooleanType IsCoderTreeInstantiated(ExceptionInfo *)
Definition: coder.c:677
option.h
GetConfigureOptions
MagickExport LinkedListInfo * GetConfigureOptions(const char *filename, ExceptionInfo *exception)
Definition: configure.c:653
DestroyConfigureOptions
MagickExport LinkedListInfo * DestroyConfigureOptions(LinkedListInfo *options)
Definition: configure.c:325
LogMagickEvent
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
Definition: log.c:1399
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:89
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:544
configure.h
CoderMapInfo
struct _CoderMapInfo CoderMapInfo