13ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 27ce65e7125a4e1df1a274ce373c537a9df9c16cdCristy Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization 33ed852eea50f9d4cd633efb8c2b054b8e33c253cristy dedicated to making software imaging solutions freely available. 43ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 53ed852eea50f9d4cd633efb8c2b054b8e33c253cristy You may not use this file except in compliance with the License. 63ed852eea50f9d4cd633efb8c2b054b8e33c253cristy obtain a copy of the License at 73ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 83ed852eea50f9d4cd633efb8c2b054b8e33c253cristy http://www.imagemagick.org/script/license.php 93ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy Unless required by applicable law or agreed to in writing, software 113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy distributed under the License is distributed on an "AS IS" BASIS, 123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy See the License for the specific language governing permissions and 143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy limitations under the License. 153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy The ImageMagick progress monitor private methods. 173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1883bceaa5d7a1196e05c1ccba443f90f4b032fca6Cristy#ifndef MAGICKCORE_MONITOR_PRIVATE_H 1983bceaa5d7a1196e05c1ccba443f90f4b032fca6Cristy#define MAGICKCORE_MONITOR_PRIVATE_H 203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 216398ec777e91813b64767e25358b7062a7de56cbcristy#include "MagickCore/image.h" 226398ec777e91813b64767e25358b7062a7de56cbcristy 233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#if defined(__cplusplus) || defined(c_plusplus) 243ed852eea50f9d4cd633efb8c2b054b8e33c253cristyextern "C" { 253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#endif 263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 273ed852eea50f9d4cd633efb8c2b054b8e33c253cristystatic inline MagickBooleanType SetImageProgress(const Image *image, 283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const char *tag,const MagickOffsetType offset,const MagickSizeType extent) 293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char 31151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy message[MagickPathExtent]; 323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (image->progress_monitor == (MagickProgressMonitor) NULL) 343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickTrue); 35939d92bf2f053dfe13d8556cde0b86e90adbb48fcristy (void) FormatLocaleString(message,MagickPathExtent,"%s/%s",tag, 36939d92bf2f053dfe13d8556cde0b86e90adbb48fcristy image->filename); 373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(image->progress_monitor(message,offset,extent,image->client_data)); 383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#if defined(__cplusplus) || defined(c_plusplus) 413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#endif 433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#endif 45