From: =?utf-8?q?Bastien_Roucari=C3=A8s?= Date: Mon, 11 Jan 2021 22:42:36 +0000 Subject: Finalize fixing error in html Forwarded: no --- www/api/index.html | 2 +- www/architecture/index.html | 125 ++++++++++++++---------------------- www/binary-releases/index.html | 2 +- www/command-line-options/index.html | 1 - www/defines/index.html | 16 ++--- www/download/index.html | 2 +- www/support/index.html | 2 +- www/webp/index.html | 1 + 8 files changed, 59 insertions(+), 92 deletions(-) diff --git a/www/api/index.html b/www/api/index.html index 3c487b5..244cb4d 100644 --- a/www/api/index.html +++ b/www/api/index.html @@ -218,7 +218,7 @@ - + diff --git a/www/architecture/index.html b/www/architecture/index.html index c61bf10..bb90230 100644 --- a/www/architecture/index.html +++ b/www/architecture/index.html @@ -1535,63 +1535,40 @@ $ display logo.mgk % o exception: return any errors or warnings in this structure. % */ - -typedef struct _StatisticsInfo +ModuleExport size_t analyzeImage(Image **images,const int argc,const char **argv, + ExceptionInfo *exception) { + char + text[MaxTextExtent]; + double area, brightness, - mean, - standard_deviation, - sum[5], - kurtosis, - skewness; -} StatisticsInfo; - -static inline int GetMagickNumberThreads(const Image *source, - const Image *destination,const size_t chunk,int multithreaded) -{ -#define MagickMax(x,y) (((x) > (y)) ? (x) : (y)) -#define MagickMin(x,y) (((x) < (y)) ? (x) : (y)) - - /* - Number of threads bounded by the amount of work and any thread resource - limit. The limit is 2 if the pixel cache type is not memory or - memory-mapped. - */ - if (multithreaded == 0) - return(1); - if (((GetImagePixelCacheType(source) != MemoryCache) && - (GetImagePixelCacheType(source) != MapCache)) || - ((GetImagePixelCacheType(destination) != MemoryCache) && - (GetImagePixelCacheType(destination) != MapCache))) - return(MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1)); - return(MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource), - (ssize_t) (chunk)/64),1)); -} - -ModuleExport size_t analyzeImage(Image **images,const int argc, - const char **argv,ExceptionInfo *exception) -{ -#define AnalyzeImageFilterTag "Filter/Analyze" -#define magick_number_threads(source,destination,chunk,multithreaded) \ - num_threads(GetMagickNumberThreads(source,destination,chunk,multithreaded)) - - char - text[MagickPathExtent]; + brightness_mean, + brightness_standard_deviation, + brightness_kurtosis, + brightness_skewness, + brightness_sum_x, + brightness_sum_x2, + brightness_sum_x3, + brightness_sum_x4, + hue, + saturation, + saturation_mean, + saturation_standard_deviation, + saturation_kurtosis, + saturation_skewness, + saturation_sum_x, + saturation_sum_x2, + saturation_sum_x3, + saturation_sum_x4; Image *image; - MagickBooleanType - status; - - MagickOffsetType - progress; - assert(images != (Image **) NULL); assert(*images != (Image *) NULL); - assert((*images)->signature == MagickCoreSignature); + assert((*images)->signature == MagickSignature); (void) argc; (void) argv; status=MagickTrue; @@ -1601,40 +1578,42 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, CacheView *image_view; - double - area; + MagickBooleanType + status; ssize_t y; - StatisticsInfo - brightness, - saturation; - - if (status == MagickFalse) - continue; - (void) memset(&brightness,0,sizeof(brightness)); - (void) memset(&saturation,0,sizeof(saturation)); + brightness_sum_x=0.0; + brightness_sum_x2=0.0; + brightness_sum_x3=0.0; + brightness_sum_x4=0.0; + brightness_mean=0.0; + brightness_standard_deviation=0.0; + brightness_kurtosis=0.0; + brightness_skewness=0.0; + saturation_sum_x=0.0; + saturation_sum_x2=0.0; + saturation_sum_x3=0.0; + saturation_sum_x4=0.0; + saturation_mean=0.0; + saturation_standard_deviation=0.0; + saturation_kurtosis=0.0; + saturation_skewness=0.0; + area=0.0; status=MagickTrue; image_view=AcquireVirtualCacheView(image,exception); #if defined(MAGICKCORE_OPENMP_SUPPORT) - #pragma omp parallel for schedule(static) \ - shared(progress,status,brightness,saturation) \ - magick_number_threads(image,image,image->rows,1) + #pragma omp parallel for schedule(static,4) shared(status) #endif - for (y=0; y < (ssize_t) image->rows; y++) + for (y=0; y < (ssize_t) image->rows; y++) { const Quantum *p; - ssize_t - i, + register ssize_t x; - StatisticsInfo - local_brightness, - local_saturation; - if (status == MagickFalse) continue; p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception); @@ -1643,9 +1622,7 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, status=MagickFalse; continue; } - (void) memset(&local_brightness,0,sizeof(local_brightness)); - (void) memset(&local_saturation,0,sizeof(local_saturation)); - for (x=0; x < (ssize_t) image->columns; x++) + for (x=0; x < (ssize_t) image->columns; x++) { double b, @@ -1662,14 +1639,6 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, local_saturation.sum[i]+=pow(s,(double) i); p+=GetPixelChannels(image); } -#if defined(MAGICKCORE_OPENMP_SUPPORT) - #pragma omp critical (analyzeImage) -#endif - for (i=1; i <= 4; i++) - { - brightness.sum[i]+=local_brightness.sum[i]; - saturation.sum[i]+=local_saturation.sum[i]; - } } image_view=DestroyCacheView(image_view); area=(double) image->columns*image->rows; diff --git a/www/binary-releases/index.html b/www/binary-releases/index.html index 6119b51..8cc806a 100644 --- a/www/binary-releases/index.html +++ b/www/binary-releases/index.html @@ -488,7 +488,7 @@ objShell.Exec("convert ""e:/myimages/image.png"" ""e:/myimages/image.jpg""") - + diff --git a/www/command-line-options/index.html b/www/command-line-options/index.html index 7c3a3ae..8a1b611 100644 --- a/www/command-line-options/index.html +++ b/www/command-line-options/index.html @@ -3376,7 +3376,6 @@ image sequence.

Decipher an Image.

-

-encoding type

diff --git a/www/defines/index.html b/www/defines/index.html index c783fd4..f2b0129 100644 --- a/www/defines/index.html +++ b/www/defines/index.html @@ -243,7 +243,7 @@ use:

-

+

@@ -876,11 +876,11 @@ use:

-

+

-

+

@@ -888,7 +888,7 @@ use:

-

+

@@ -1466,7 +1466,6 @@ use:

png:exclude-chunk=value - png:include-chunk=value ancillary chunks to be excluded from or included in PNG output. @@ -1805,15 +1804,15 @@ use:

-

+

-

+

- PSEUDO-IMAGE FORMATS + PSEUDO-IMAGE FORMATS @@ -1835,7 +1834,6 @@ use:

clockwise positive manner from its normal X-Y orientation. Supported in Imagemagick 6.9.2-5. - gradient:bounding-box=WxH+X+Y Limit the gradient to a larger or smaller region than diff --git a/www/download/index.html b/www/download/index.html index b116336..adad2df 100644 --- a/www/download/index.html +++ b/www/download/index.html @@ -628,7 +628,7 @@ Portable Win32 static at 16 bits-per-pixel component with high dynamic-range imaging enabled. Just copy to your host and run (no installer, no Windows registry entries). - +

Verify its diff --git a/www/support/index.html b/www/support/index.html index 94a12b8..5075bf0 100644 --- a/www/support/index.html +++ b/www/support/index.html @@ -249,7 +249,7 @@

For direct monetary contributions, click on the donate button to contribute thru Paypal or with a credit card:

Bitcoin

diff --git a/www/webp/index.html b/www/webp/index.html index db42f7a..466e326 100644 --- a/www/webp/index.html +++ b/www/webp/index.html @@ -370,6 +370,7 @@ use-sharp-yuv=value if needed, use sharp (and slow) RGB->YUV conversion. +