18#ifndef MAGICKCORE_MONITOR_H
19#define MAGICKCORE_MONITOR_H
21#if defined(__cplusplus) || defined(c_plusplus)
25typedef MagickBooleanType
26 (*MagickProgressMonitor)(
const char *,
const MagickOffsetType,
27 const MagickSizeType,
void *);
29MagickExport MagickBooleanType
30 SetImageProgress(
const Image *,
const char *,
const MagickOffsetType,
31 const MagickSizeType);
33MagickExport MagickProgressMonitor
34 SetImageProgressMonitor(
Image *,
const MagickProgressMonitor,
void *),
35 SetImageInfoProgressMonitor(
ImageInfo *,
const MagickProgressMonitor,
void *);
37static inline MagickBooleanType QuantumTick(
const MagickOffsetType offset,
38 const MagickSizeType span)
42 if (offset == (MagickOffsetType) (span-1))
44 if ((offset % (MagickOffsetType) (span/100)) == 0)
49#if defined(__cplusplus) || defined(c_plusplus)