Debian Codegraph @

debian/patches/0012-Finalize-fixing-error-in-html.patch

raw symbols SCIP
1 From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <[email protected]>
2 Date: Mon, 11 Jan 2021 22:42:36 +0000
3 Subject: Finalize fixing error in html
4
5 Forwarded: no
6 ---
7 www/api/index.html | 2 +-
8 www/architecture/index.html | 125 ++++++++++++++----------------------
9 www/binary-releases/index.html | 2 +-
10 www/command-line-options/index.html | 1 -
11 www/defines/index.html | 16 ++---
12 www/download/index.html | 2 +-
13 www/support/index.html | 2 +-
14 www/webp/index.html | 1 +
15 8 files changed, 59 insertions(+), 92 deletions(-)
16
17 diff --git a/www/api/index.html b/www/api/index.html
18 index 3c487b5..244cb4d 100644
19 --- a/www/api/index.html
20 +++ b/www/api/index.html
21 @@ -218,7 +218,7 @@
22 </footer>
23
24 <!-- Javascript assets -->
25 - <script src="assets/magick.js" crossorigin="anonymous"></script>
26 + <script src="assets/magick.js" crossorigin="anonymous" />
27 <script>window.jQuery || document.write('&lt;script src="assets/jquery.min.js">&lt;\/script>')</script>
28 </body>
29 </html>
30 diff --git a/www/architecture/index.html b/www/architecture/index.html
31 index c61bf10..bb90230 100644
32 --- a/www/architecture/index.html
33 +++ b/www/architecture/index.html
34 @@ -1535,63 +1535,40 @@ $ display logo.mgk
35 % o exception: return any errors or warnings in this structure.
36 %
37 */
38 -
39 -typedef struct _StatisticsInfo
40 +ModuleExport size_t analyzeImage(Image **images,const int argc,const char **argv,
41 + ExceptionInfo *exception)
42 {
43 + char
44 + text[MaxTextExtent];
45 +
46 double
47 area,
48 brightness,
49 - mean,
50 - standard_deviation,
51 - sum[5],
52 - kurtosis,
53 - skewness;
54 -} StatisticsInfo;
55 -
56 -static inline int GetMagickNumberThreads(const Image *source,
57 - const Image *destination,const size_t chunk,int multithreaded)
58 -{
59 -#define MagickMax(x,y) (((x) > (y)) ? (x) : (y))
60 -#define MagickMin(x,y) (((x) &lt; (y)) ? (x) : (y))
61 -
62 - /*
63 - Number of threads bounded by the amount of work and any thread resource
64 - limit. The limit is 2 if the pixel cache type is not memory or
65 - memory-mapped.
66 - */
67 - if (multithreaded == 0)
68 - return(1);
69 - if (((GetImagePixelCacheType(source) != MemoryCache) &&
70 - (GetImagePixelCacheType(source) != MapCache)) ||
71 - ((GetImagePixelCacheType(destination) != MemoryCache) &&
72 - (GetImagePixelCacheType(destination) != MapCache)))
73 - return(MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1));
74 - return(MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),
75 - (ssize_t) (chunk)/64),1));
76 -}
77 -
78 -ModuleExport size_t analyzeImage(Image **images,const int argc,
79 - const char **argv,ExceptionInfo *exception)
80 -{
81 -#define AnalyzeImageFilterTag "Filter/Analyze"
82 -#define magick_number_threads(source,destination,chunk,multithreaded) \
83 - num_threads(GetMagickNumberThreads(source,destination,chunk,multithreaded))
84 -
85 - char
86 - text[MagickPathExtent];
87 + brightness_mean,
88 + brightness_standard_deviation,
89 + brightness_kurtosis,
90 + brightness_skewness,
91 + brightness_sum_x,
92 + brightness_sum_x2,
93 + brightness_sum_x3,
94 + brightness_sum_x4,
95 + hue,
96 + saturation,
97 + saturation_mean,
98 + saturation_standard_deviation,
99 + saturation_kurtosis,
100 + saturation_skewness,
101 + saturation_sum_x,
102 + saturation_sum_x2,
103 + saturation_sum_x3,
104 + saturation_sum_x4;
105
106 Image
107 *image;
108
109 - MagickBooleanType
110 - status;
111 -
112 - MagickOffsetType
113 - progress;
114 -
115 assert(images != (Image **) NULL);
116 assert(*images != (Image *) NULL);
117 - assert((*images)->signature == MagickCoreSignature);
118 + assert((*images)-&gt;signature == MagickSignature);
119 (void) argc;
120 (void) argv;
121 status=MagickTrue;
122 @@ -1601,40 +1578,42 @@ ModuleExport size_t analyzeImage(Image **images,const int argc,
123 CacheView
124 *image_view;
125
126 - double
127 - area;
128 + MagickBooleanType
129 + status;
130
131 ssize_t
132 y;
133
134 - StatisticsInfo
135 - brightness,
136 - saturation;
137 -
138 - if (status == MagickFalse)
139 - continue;
140 - (void) memset(&brightness,0,sizeof(brightness));
141 - (void) memset(&saturation,0,sizeof(saturation));
142 + brightness_sum_x=0.0;
143 + brightness_sum_x2=0.0;
144 + brightness_sum_x3=0.0;
145 + brightness_sum_x4=0.0;
146 + brightness_mean=0.0;
147 + brightness_standard_deviation=0.0;
148 + brightness_kurtosis=0.0;
149 + brightness_skewness=0.0;
150 + saturation_sum_x=0.0;
151 + saturation_sum_x2=0.0;
152 + saturation_sum_x3=0.0;
153 + saturation_sum_x4=0.0;
154 + saturation_mean=0.0;
155 + saturation_standard_deviation=0.0;
156 + saturation_kurtosis=0.0;
157 + saturation_skewness=0.0;
158 + area=0.0;
159 status=MagickTrue;
160 image_view=AcquireVirtualCacheView(image,exception);
161 #if defined(MAGICKCORE_OPENMP_SUPPORT)
162 - #pragma omp parallel for schedule(static) \
163 - shared(progress,status,brightness,saturation) \
164 - magick_number_threads(image,image,image->rows,1)
165 + #pragma omp parallel for schedule(static,4) shared(status)
166 #endif
167 - for (y=0; y &lt; (ssize_t) image->rows; y++)
168 + for (y=0; y &lt; (ssize_t) image-&gt;rows; y++)
169 {
170 const Quantum
171 *p;
172
173 - ssize_t
174 - i,
175 + register ssize_t
176 x;
177
178 - StatisticsInfo
179 - local_brightness,
180 - local_saturation;
181 -
182 if (status == MagickFalse)
183 continue;
184 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
185 @@ -1643,9 +1622,7 @@ ModuleExport size_t analyzeImage(Image **images,const int argc,
186 status=MagickFalse;
187 continue;
188 }
189 - (void) memset(&local_brightness,0,sizeof(local_brightness));
190 - (void) memset(&local_saturation,0,sizeof(local_saturation));
191 - for (x=0; x &lt; (ssize_t) image->columns; x++)
192 + for (x=0; x &lt; (ssize_t) image-&gt;columns; x++)
193 {
194 double
195 b,
196 @@ -1662,14 +1639,6 @@ ModuleExport size_t analyzeImage(Image **images,const int argc,
197 local_saturation.sum[i]+=pow(s,(double) i);
198 p+=GetPixelChannels(image);
199 }
200 -#if defined(MAGICKCORE_OPENMP_SUPPORT)
201 - #pragma omp critical (analyzeImage)
202 -#endif
203 - for (i=1; i &lt;= 4; i++)
204 - {
205 - brightness.sum[i]+=local_brightness.sum[i];
206 - saturation.sum[i]+=local_saturation.sum[i];
207 - }
208 }
209 image_view=DestroyCacheView(image_view);
210 area=(double) image->columns*image->rows;
211 diff --git a/www/binary-releases/index.html b/www/binary-releases/index.html
212 index 6119b51..8cc806a 100644
213 --- a/www/binary-releases/index.html
214 +++ b/www/binary-releases/index.html
215 @@ -488,7 +488,7 @@ objShell.Exec("convert ""e:/myimages/image.png"" ""e:/myimages/image.jpg""")
216 </footer>
217
218 <!-- Javascript assets -->
219 - <script src="assets/magick.js" crossorigin="anonymous"></script>
220 + <script src="assets/magick.js" crossorigin="anonymous" />
221 <script>window.jQuery || document.write('&lt;script src="assets/jquery.min.js">&lt;\/script>')</script>
222 </body>
223 </html>
224 diff --git a/www/command-line-options/index.html b/www/command-line-options/index.html
225 index 7c3a3ae..8a1b611 100644
226 --- a/www/command-line-options/index.html
227 +++ b/www/command-line-options/index.html
228 @@ -3376,7 +3376,6 @@ image sequence.</p>
229 Decipher an Image</a>.</p>
230
231
232 -
233 <div style="mx-auto my-3 text-center">
234 <h2><a class="anchor" id="encoding"></a>-encoding <var>type</var></h2>
235 </div>
236 diff --git a/www/defines/index.html b/www/defines/index.html
237 index c783fd4..f2b0129 100644
238 --- a/www/defines/index.html
239 +++ b/www/defines/index.html
240 @@ -243,7 +243,7 @@ use:</p>
241 </tr>
242
243 <tr>
244 - <td colspan=2><p></p></td>
245 + <td colspan="2"><p></p></td>
246 </tr>
247
248 <tr>
249 @@ -876,11 +876,11 @@ use:</p>
250 </tr>
251
252 <tr>
253 - <td colspan=2><p></p></td>
254 + <td colspan="2"><p></p></td>
255 </tr>
256
257 <tr>
258 - <td colspan=2><p></p></td>
259 + <td colspan="2"><p></p></td>
260 </tr>
261
262 <tr>
263 @@ -888,7 +888,7 @@ use:</p>
264 </tr>
265
266 <tr>
267 - <td colspan=2><p></p></td>
268 + <td colspan="2"><p></p></td>
269 </tr>
270
271 <tr>
272 @@ -1466,7 +1466,6 @@ use:</p>
273 <td>png:exclude-chunk=<var>value</var></td>
274 <td> </td>
275 </tr>
276 -
277 <tr>
278 <td>png:include-chunk=<var>value</var></td>
279 <td>ancillary chunks to be excluded from or included in PNG output.
280 @@ -1805,15 +1804,15 @@ use:</p>
281 </tr>
282
283 <tr>
284 - <td colspan=2><p></p></td>
285 + <td colspan="2"><p></p></td>
286 </tr>
287
288 <tr>
289 - <td colspan=2><p></p></td>
290 + <td colspan="2"><p></p></td>
291 </tr>
292
293 <tr>
294 - <th align="center" colspan=2>PSEUDO-IMAGE FORMATS</th>
295 + <th align="center" colspan="2">PSEUDO-IMAGE FORMATS</th>
296 </tr>
297
298 <tr>
299 @@ -1835,7 +1834,6 @@ use:</p>
300 clockwise positive manner from its normal X-Y orientation.
301 Supported in Imagemagick 6.9.2-5.</td>
302 </tr>
303 -
304 <tr>
305 <td>gradient:bounding-box=<var>WxH+X+Y</var></td>
306 <td>Limit the gradient to a larger or smaller region than
307 diff --git a/www/download/index.html b/www/download/index.html
308 index b116336..adad2df 100644
309 --- a/www/download/index.html
310 +++ b/www/download/index.html
311 @@ -628,7 +628,7 @@
312 <td>Portable Win32 static at 16 bits-per-pixel component with <a href="../high-dynamic-range/index.html">high dynamic-range imaging</a> enabled. Just copy to your host and run (no installer, no Windows registry entries).</td>
313 </tr>
314
315 - <tbody>
316 + </tbody>
317 </table></div>
318
319 <p>Verify its
320 diff --git a/www/support/index.html b/www/support/index.html
321 index 94a12b8..5075bf0 100644
322 --- a/www/support/index.html
323 +++ b/www/support/index.html
324 @@ -249,7 +249,7 @@
325 <p>For direct monetary contributions, click on the donate button to contribute thru Paypal or with a credit card:</p>
326
327 <ul>
328 -<a href="https://www.paypal.com/biz/fund?id=9XPKRUWDXRR8J"><img "image" src="../image/donate.png" border="0" name="submit" alt="Sponsor ImageMagick" width="92" height="26"</img></a>
329 +<a href="https://www.paypal.com/biz/fund?id=9XPKRUWDXRR8J"><img "image" src="../image/donate.png" border="0" name="submit" alt="Sponsor ImageMagick" width="92" height="26"></img></a>
330 </ul>
331
332 <h2>Bitcoin</h2>
333 diff --git a/www/webp/index.html b/www/webp/index.html
334 index db42f7a..466e326 100644
335 --- a/www/webp/index.html
336 +++ b/www/webp/index.html
337 @@ -370,6 +370,7 @@
338 <td>use-sharp-yuv=<var>value</var></td>
339 <td>if needed, use sharp (and slow) RGB->YUV conversion.</td>
340 </tr>
341 +</tbody>
342 </table></div>
343 </div>
344