monitor-private.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _MAGICK_MONITOR_PRIVATE_H
00019 #define _MAGICK_MONITOR_PRIVATE_H
00020
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024
00025 #include <magick/image.h>
00026
00027 static inline MagickBooleanType SetImageProgress(const Image *image,
00028 const char *tag,const MagickOffsetType offset,const MagickSizeType extent)
00029 {
00030 char
00031 message[MaxTextExtent];
00032
00033 if (image->progress_monitor == (MagickProgressMonitor) NULL)
00034 return(MagickTrue);
00035 if (QuantumTick(offset,extent) == MagickFalse)
00036 return(MagickTrue);
00037 (void) FormatMagickString(message,MaxTextExtent,"%s/%s",tag,image->filename);
00038 return(image->progress_monitor(message,offset,extent,image->client_data));
00039 }
00040
00041 #if defined(__cplusplus) || defined(c_plusplus)
00042 }
00043 #endif
00044
00045 #endif