| 1 | /* |
| 2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 | % % |
| 4 | % % |
| 5 | % W W AAA N N DDDD % |
| 6 | % W W A A NN N D D % |
| 7 | % W W W AAAAA N N N D D % |
| 8 | % WW WW A A N NN D D % |
| 9 | % W W A A N N DDDD % |
| 10 | % % |
| 11 | % V V IIIII EEEEE W W % |
| 12 | % V V I E W W % |
| 13 | % V V I EEE W W W % |
| 14 | % V V I E WW WW % |
| 15 | % V IIIII EEEEE W W % |
| 16 | % % |
| 17 | % % |
| 18 | % MagickWand Wand View Methods % |
| 19 | % % |
| 20 | % Software Design % |
| 21 | % Cristy % |
| 22 | % March 2003 % |
| 23 | % % |
| 24 | % % |
| 25 | % Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization % |
| 26 | % dedicated to making software imaging solutions freely available. % |
| 27 | % % |
| 28 | % You may not use this file except in compliance with the License. You may % |
| 29 | % obtain a copy of the License at % |
| 30 | % % |
| 31 | % https://imagemagick.org/license/ % |
| 32 | % % |
| 33 | % Unless required by applicable law or agreed to in writing, software % |
| 34 | % distributed under the License is distributed on an "AS IS" BASIS, % |
| 35 | % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % |
| 36 | % See the License for the specific language governing permissions and % |
| 37 | % limitations under the License. % |
| 38 | % % |
| 39 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 40 | % |
| 41 | % |
| 42 | % |
| 43 | */ |
| 44 | |
| 45 | /* |
| 46 | Include declarations. |
| 47 | */ |
| 48 | #include "MagickWand/studio.h"cxx . . $ `<file>/MagickWand/studio.h`/ |
| 49 | #include "MagickWand/MagickWand.h"cxx . . $ `<file>/MagickWand/MagickWand.h`/ |
| 50 | #include "MagickWand/magick-wand-private.h"cxx . . $ `<file>/MagickWand/magick-wand-private.h`/ |
| 51 | #include "MagickWand/wand.h"cxx . . $ `<file>/MagickWand/wand.h`/ |
| 52 | #include "MagickCore/monitor-private.h"cxx . . $ `<file>/MagickCore/monitor-private.h`/ |
| 53 | #include "MagickCore/thread-private.h"cxx . . $ `<file>/MagickCore/thread-private.h`/ |
| 54 | /* |
| 55 | Define declarations. |
| 56 | */ |
| 57 | #define WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`! "WandView" |
| 58 | |
| 59 | /* |
| 60 | Typedef declarations. |
| 61 | */ |
| 62 | struct _WandViewcxx . . $ _WandView# |
| 63 | { |
| 64 | size_t |
| 65 | idcxx . . $ _WandView#id.; |
| 66 | |
| 67 | char |
| 68 | namecxx . . $ _WandView#name.[MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!], |
| 69 | *descriptioncxx . . $ _WandView#description.; |
| 70 | |
| 71 | RectangleInfocxx . . $ RectangleInfo# |
| 72 | extentcxx . . $ _WandView#extent.; |
| 73 | |
| 74 | MagickWandcxx . . $ MagickWand# |
| 75 | *wandcxx . . $ _WandView#wand.; |
| 76 | |
| 77 | CacheViewcxx . . $ CacheView# |
| 78 | *viewcxx . . $ _WandView#view.; |
| 79 | |
| 80 | Imagecxx . . $ Image# |
| 81 | *imagecxx . . $ _WandView#image.; |
| 82 | |
| 83 | PixelWandcxx . . $ PixelWand# |
| 84 | ***pixel_wandscxx . . $ _WandView#pixel_wands.; |
| 85 | |
| 86 | ExceptionInfocxx . . $ ExceptionInfo# |
| 87 | *exceptioncxx . . $ _WandView#exception.; |
| 88 | |
| 89 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 90 | debugcxx . . $ _WandView#debug.; |
| 91 | |
| 92 | size_t |
| 93 | signaturecxx . . $ _WandView#signature.; |
| 94 | }; |
| 95 | |
| 96 | /* |
| 97 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 98 | % % |
| 99 | % % |
| 100 | % % |
| 101 | % C l o n e W a n d V i e w % |
| 102 | % % |
| 103 | % % |
| 104 | % % |
| 105 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 106 | % |
| 107 | % CloneWandView() makes a copy of the specified wand view. |
| 108 | % |
| 109 | % The format of the CloneWandView method is: |
| 110 | % |
| 111 | % WandView *CloneWandView(const WandView *wand_view) |
| 112 | % |
| 113 | % A description of each parameter follows: |
| 114 | % |
| 115 | % o wand_view: the wand view. |
| 116 | % |
| 117 | */ |
| 118 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! WandViewcxx . . $ WandView# *CloneWandViewcxx . . $ CloneWandView(c4d66380d025231).(const WandViewcxx . . $ WandView# *wand_view) |
| 119 | { |
| 120 | ssize_tcxx . . $ ssize_t# |
| 121 | i; |
| 122 | |
| 123 | WandViewcxx . . $ WandView# |
| 124 | *clone_view; |
| 125 | |
| 126 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 127 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 128 | if (wand_view->debugcxx . . $ _WandView#debug. != MagickFalsecxx . . $ MagickFalse.) |
| 129 | (void) LogMagickEventcxx . . $ LogMagickEvent(1ab5e87005762229).(WandEventcxx . . $ WandEvent.,GetMagickModulecxx . . $ `MagickCore/log.h:28:10`!(),"%s",wand_view->namecxx . . $ _WandView#name.); |
| 130 | clone_view=(WandViewcxx . . $ WandView# *) AcquireCriticalMemorycxx . . $ AcquireCriticalMemory(bfcfa4d6b7f7ef64).(sizeof(*clone_view)); |
| 131 | (void) memsetcxx . . $ memset(d1de1e4fb215f1c6).(clone_view,0,sizeof(*clone_view)); |
| 132 | clone_view->idcxx . . $ _WandView#id.=AcquireWandIdcxx . . $ AcquireWandId(f708dce9a8856c70).(); |
| 133 | (void) FormatLocaleStringcxx . . $ FormatLocaleString(ea0b92a839b82972).(clone_view->namecxx . . $ _WandView#name.,MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!,"%s-%.20g", |
| 134 | WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`!,(double) clone_view->idcxx . . $ _WandView#id.); |
| 135 | clone_view->descriptioncxx . . $ _WandView#description.=ConstantStringcxx . . $ ConstantString(a8b8e32347182212).(wand_view->descriptioncxx . . $ _WandView#description.); |
| 136 | clone_view->imagecxx . . $ _WandView#image.=CloneImagecxx . . $ CloneImage(ed84c53afb9a4d19).(wand_view->imagecxx . . $ _WandView#image.,0,0,MagickTruecxx . . $ MagickTrue., |
| 137 | wand_view->exceptioncxx . . $ _WandView#exception.); |
| 138 | clone_view->viewcxx . . $ _WandView#view.=CloneCacheViewcxx . . $ CloneCacheView(eefe2afb4bf64898).(wand_view->viewcxx . . $ _WandView#view.); |
| 139 | clone_view->extentcxx . . $ _WandView#extent.=wand_view->extentcxx . . $ _WandView#extent.; |
| 140 | clone_view->exceptioncxx . . $ _WandView#exception.=AcquireExceptionInfocxx . . $ AcquireExceptionInfo(321f0558cc327d4a).(); |
| 141 | InheritExceptioncxx . . $ InheritException(8c062e73e91eb782).(clone_view->exceptioncxx . . $ _WandView#exception.,wand_view->exceptioncxx . . $ _WandView#exception.); |
| 142 | for (i=0; i < (ssize_tcxx . . $ ssize_t#) GetMagickResourceLimitcxx . . $ GetMagickResourceLimit(369502e1c2d34a3d).(ThreadResourcecxx . . $ ThreadResource.); i++) |
| 143 | clone_view->pixel_wandscxx . . $ _WandView#pixel_wands.[i]=ClonePixelWandscxx . . $ ClonePixelWands(b0b66d480b9e8951).((const PixelWandcxx . . $ PixelWand# **) |
| 144 | wand_view->pixel_wandscxx . . $ _WandView#pixel_wands.[i],wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.); |
| 145 | clone_view->debugcxx . . $ _WandView#debug.=wand_view->debugcxx . . $ _WandView#debug.; |
| 146 | if (clone_view->debugcxx . . $ _WandView#debug. != MagickFalsecxx . . $ MagickFalse.) |
| 147 | (void) LogMagickEventcxx . . $ LogMagickEvent(1ab5e87005762229).(WandEventcxx . . $ WandEvent.,GetMagickModulecxx . . $ `MagickCore/log.h:28:10`!(),"%s",clone_view->namecxx . . $ _WandView#name.); |
| 148 | clone_view->signaturecxx . . $ _WandView#signature.=MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!; |
| 149 | return(clone_view); |
| 150 | } |
| 151 | |
| 152 | /* |
| 153 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 154 | % % |
| 155 | % % |
| 156 | % % |
| 157 | % D e s t r o y W a n d V i e w % |
| 158 | % % |
| 159 | % % |
| 160 | % % |
| 161 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 162 | % |
| 163 | % DestroyWandView() deallocates memory associated with a wand view. |
| 164 | % |
| 165 | % The format of the DestroyWandView method is: |
| 166 | % |
| 167 | % WandView *DestroyWandView(WandView *wand_view) |
| 168 | % |
| 169 | % A description of each parameter follows: |
| 170 | % |
| 171 | % o wand_view: the wand view. |
| 172 | % |
| 173 | */ |
| 174 | |
| 175 | static PixelWandcxx . . $ PixelWand# ***DestroyPixelsTLScxx . . $ DestroyPixelsTLS(de3543ce145c3bbb).(PixelWandcxx . . $ PixelWand# ***pixel_wands, |
| 176 | const size_t number_wands) |
| 177 | { |
| 178 | ssize_tcxx . . $ ssize_t# |
| 179 | i; |
| 180 | |
| 181 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(pixel_wands != (PixelWand ***) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 182 | for (i=0; i < (ssize_tcxx . . $ ssize_t#) GetMagickResourceLimitcxx . . $ GetMagickResourceLimit(369502e1c2d34a3d).(ThreadResourcecxx . . $ ThreadResource.); i++) |
| 183 | if (pixel_wands[i] != (PixelWandcxx . . $ PixelWand# **) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 184 | pixel_wands[i]=DestroyPixelWandscxx . . $ DestroyPixelWands(2dc8a008d8e8c4eb).(pixel_wands[i],number_wands); |
| 185 | pixel_wands=(PixelWandcxx . . $ PixelWand# ***) RelinquishMagickMemorycxx . . $ RelinquishMagickMemory(9f162e79bfc6c74).(pixel_wands); |
| 186 | return(pixel_wands); |
| 187 | } |
| 188 | |
| 189 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! WandViewcxx . . $ WandView# *DestroyWandViewcxx . . $ DestroyWandView(ee3a184556a0c600).(WandViewcxx . . $ WandView# *wand_view) |
| 190 | { |
| 191 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 192 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 193 | wand_view->pixel_wandscxx . . $ _WandView#pixel_wands.=DestroyPixelsTLScxx . . $ DestroyPixelsTLS(de3543ce145c3bbb).(wand_view->pixel_wandscxx . . $ _WandView#pixel_wands., |
| 194 | wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.); |
| 195 | wand_view->viewcxx . . $ _WandView#view.=DestroyCacheViewcxx . . $ DestroyCacheView(473ad6c97c3fbb03).(wand_view->viewcxx . . $ _WandView#view.); |
| 196 | wand_view->exceptioncxx . . $ _WandView#exception.=DestroyExceptionInfocxx . . $ DestroyExceptionInfo(1b357931848a53ba).(wand_view->exceptioncxx . . $ _WandView#exception.); |
| 197 | wand_view->signaturecxx . . $ _WandView#signature.=(~MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 198 | RelinquishWandIdcxx . . $ RelinquishWandId(2c44cd906ae4e829).(wand_view->idcxx . . $ _WandView#id.); |
| 199 | wand_view=(WandViewcxx . . $ WandView# *) RelinquishMagickMemorycxx . . $ RelinquishMagickMemory(9f162e79bfc6c74).(wand_view); |
| 200 | return(wand_view); |
| 201 | } |
| 202 | |
| 203 | /* |
| 204 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 205 | % % |
| 206 | % % |
| 207 | % % |
| 208 | % D u p l e x T r a n s f e r W a n d V i e w I t e r a t o r % |
| 209 | % % |
| 210 | % % |
| 211 | % % |
| 212 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 213 | % |
| 214 | % DuplexTransferWandViewIterator() iterates over three wand views in |
| 215 | % parallel and calls your transfer method for each scanline of the view. The |
| 216 | % source and duplex pixel extent is not confined to the image canvas-- that is |
| 217 | % you can include negative offsets or widths or heights that exceed the image |
| 218 | % dimension. However, the destination wand view is confined to the image |
| 219 | % canvas-- that is no negative offsets or widths or heights that exceed the |
| 220 | % image dimension are permitted. |
| 221 | % |
| 222 | % The callback signature is: |
| 223 | % |
| 224 | % MagickBooleanType DuplexTransferImageViewMethod(const WandView *source, |
| 225 | % const WandView *duplex,WandView *destination,const ssize_t y, |
| 226 | % const int thread_id,void *context) |
| 227 | % |
| 228 | % Use this pragma if the view is not single threaded: |
| 229 | % |
| 230 | % #pragma omp critical |
| 231 | % |
| 232 | % to define a section of code in your callback transfer method that must be |
| 233 | % executed by a single thread at a time. |
| 234 | % |
| 235 | % The format of the DuplexTransferWandViewIterator method is: |
| 236 | % |
| 237 | % MagickBooleanType DuplexTransferWandViewIterator(WandView *source, |
| 238 | % WandView *duplex,WandView *destination, |
| 239 | % DuplexTransferWandViewMethod transfer,void *context) |
| 240 | % |
| 241 | % A description of each parameter follows: |
| 242 | % |
| 243 | % o source: the source wand view. |
| 244 | % |
| 245 | % o duplex: the duplex wand view. |
| 246 | % |
| 247 | % o destination: the destination wand view. |
| 248 | % |
| 249 | % o transfer: the transfer callback method. |
| 250 | % |
| 251 | % o context: the user defined context. |
| 252 | % |
| 253 | */ |
| 254 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# DuplexTransferWandViewIteratorcxx . . $ DuplexTransferWandViewIterator(87e5b3b2d257cec8).(WandViewcxx . . $ WandView# *source, |
| 255 | WandViewcxx . . $ WandView# *duplex,WandViewcxx . . $ WandView# *destination,DuplexTransferWandViewMethodcxx . . $ DuplexTransferWandViewMethod# transfer, |
| 256 | void *context) |
| 257 | { |
| 258 | Imagecxx . . $ Image# |
| 259 | *destination_image, |
| 260 | *source_image; |
| 261 | |
| 262 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 263 | status; |
| 264 | |
| 265 | MagickOffsetTypecxx . . $ MagickOffsetType# |
| 266 | progress; |
| 267 | |
| 268 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 269 | size_t |
| 270 | height; |
| 271 | #endif |
| 272 | |
| 273 | ssize_tcxx . . $ ssize_t# |
| 274 | y; |
| 275 | |
| 276 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 277 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 278 | if (transfer == (DuplexTransferWandViewMethodcxx . . $ DuplexTransferWandViewMethod#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 279 | return(MagickFalsecxx . . $ MagickFalse.); |
| 280 | source_image=source->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 281 | destination_image=destination->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 282 | status=SetImageStorageClasscxx . . $ SetImageStorageClass(2fdd2f49f6412224).(destination_image,DirectClasscxx . . $ DirectClass., |
| 283 | destination->exceptioncxx . . $ _WandView#exception.); |
| 284 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 285 | return(MagickFalsecxx . . $ MagickFalse.); |
| 286 | status=MagickTruecxx . . $ MagickTrue.; |
| 287 | progress=0; |
| 288 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 289 | height=(size_t) ((ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.-source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.); |
| 290 | #pragma omp parallel for schedule(static) shared(progress,status) \ |
| 291 | magick_number_threadscxx . . $ `MagickCore/thread-private.h:30:9`!(source_image,destination_image,height,1) |
| 292 | #endif |
| 293 | for (y=source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.; y < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.; y++) |
| 294 | { |
| 295 | const int |
| 296 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 297 | |
| 298 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 299 | sync; |
| 300 | |
| 301 | const Quantumcxx . . $ Quantum# |
| 302 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! duplex_pixels, |
| 303 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! pixels; |
| 304 | |
| 305 | ssize_tcxx . . $ ssize_t# |
| 306 | x; |
| 307 | |
| 308 | Quantumcxx . . $ Quantum# |
| 309 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! destination_pixels; |
| 310 | |
| 311 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 312 | continue; |
| 313 | pixels=GetCacheViewVirtualPixelscxx . . $ GetCacheViewVirtualPixels(b43ad0d76e5ba480).(source->viewcxx . . $ _WandView#view.,source->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y, |
| 314 | source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,source->exceptioncxx . . $ _WandView#exception.); |
| 315 | if (pixels == (const Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 316 | { |
| 317 | status=MagickFalsecxx . . $ MagickFalse.; |
| 318 | continue; |
| 319 | } |
| 320 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 321 | { |
| 322 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(source->imagecxx . . $ _WandView#image.,pixels,source->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 323 | pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(source->imagecxx . . $ _WandView#image.); |
| 324 | } |
| 325 | duplex_pixels=GetCacheViewVirtualPixelscxx . . $ GetCacheViewVirtualPixels(b43ad0d76e5ba480).(duplex->viewcxx . . $ _WandView#view.,duplex->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y, |
| 326 | duplex->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,duplex->exceptioncxx . . $ _WandView#exception.); |
| 327 | if (duplex_pixels == (const Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 328 | { |
| 329 | status=MagickFalsecxx . . $ MagickFalse.; |
| 330 | continue; |
| 331 | } |
| 332 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) duplex->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 333 | { |
| 334 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(duplex->imagecxx . . $ _WandView#image.,duplex_pixels, |
| 335 | duplex->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 336 | duplex_pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(duplex->imagecxx . . $ _WandView#image.); |
| 337 | } |
| 338 | destination_pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(destination->viewcxx . . $ _WandView#view., |
| 339 | destination->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y,destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1, |
| 340 | destination->exceptioncxx . . $ _WandView#exception.); |
| 341 | if (destination_pixels == (Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 342 | { |
| 343 | status=MagickFalsecxx . . $ MagickFalse.; |
| 344 | continue; |
| 345 | } |
| 346 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 347 | { |
| 348 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(destination->imagecxx . . $ _WandView#image.,destination_pixels, |
| 349 | destination->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 350 | destination_pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(destination->imagecxx . . $ _WandView#image.); |
| 351 | } |
| 352 | if (transfer(source,duplex,destination,y,id,context) == MagickFalsecxx . . $ MagickFalse.) |
| 353 | status=MagickFalsecxx . . $ MagickFalse.; |
| 354 | destination_pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(destination->viewcxx . . $ _WandView#view., |
| 355 | destination->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y,destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1, |
| 356 | destination->exceptioncxx . . $ _WandView#exception.); |
| 357 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 358 | { |
| 359 | PixelGetQuantumPixelcxx . . $ PixelGetQuantumPixel(23ed16a7305caf2d).(destination->imagecxx . . $ _WandView#image.,destination->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x], |
| 360 | destination_pixels); |
| 361 | destination_pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(destination->imagecxx . . $ _WandView#image.); |
| 362 | } |
| 363 | sync=SyncCacheViewAuthenticPixelscxx . . $ SyncCacheViewAuthenticPixels(35b62a33ab12805e).(destination->viewcxx . . $ _WandView#view.,destination->exceptioncxx . . $ _WandView#exception.); |
| 364 | if (sync == MagickFalsecxx . . $ MagickFalse.) |
| 365 | status=MagickFalsecxx . . $ MagickFalse.; |
| 366 | if (source_image->progress_monitorcxx . . $ _Image#progress_monitor. != (MagickProgressMonitorcxx . . $ MagickProgressMonitor#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 367 | { |
| 368 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 369 | proceed; |
| 370 | |
| 371 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 372 | #pragma omp atomic |
| 373 | #endif |
| 374 | progress++; |
| 375 | proceed=SetImageProgresscxx . . $ SetImageProgress(ed5fa1ce647596d).(source_image,source->descriptioncxx . . $ _WandView#description.,progress, |
| 376 | source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.); |
| 377 | if (proceed == MagickFalsecxx . . $ MagickFalse.) |
| 378 | status=MagickFalsecxx . . $ MagickFalse.; |
| 379 | } |
| 380 | } |
| 381 | return(status); |
| 382 | } |
| 383 | |
| 384 | /* |
| 385 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 386 | % % |
| 387 | % % |
| 388 | % % |
| 389 | % G e t W a n d V i e w E x c e p t i o n % |
| 390 | % % |
| 391 | % % |
| 392 | % % |
| 393 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 394 | % |
| 395 | % GetWandViewException() returns the severity, reason, and description of any |
| 396 | % error that occurs when utilizing a wand view. |
| 397 | % |
| 398 | % The format of the GetWandViewException method is: |
| 399 | % |
| 400 | % char *GetWandViewException(const WandView *wand_view, |
| 401 | % ExceptionType *severity) |
| 402 | % |
| 403 | % A description of each parameter follows: |
| 404 | % |
| 405 | % o wand_view: the pixel wand_view. |
| 406 | % |
| 407 | % o severity: the severity of the error is returned here. |
| 408 | % |
| 409 | */ |
| 410 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! char *GetWandViewExceptioncxx . . $ GetWandViewException(4b9c4c2081ad7150).(const WandViewcxx . . $ WandView# *wand_view, |
| 411 | ExceptionTypecxx . . $ ExceptionType# *severity) |
| 412 | { |
| 413 | char |
| 414 | *description; |
| 415 | |
| 416 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (const WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 417 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 418 | if (wand_view->debugcxx . . $ _WandView#debug. != MagickFalsecxx . . $ MagickFalse.) |
| 419 | (void) LogMagickEventcxx . . $ LogMagickEvent(1ab5e87005762229).(WandEventcxx . . $ WandEvent.,GetMagickModulecxx . . $ `MagickCore/log.h:28:10`!(),"%s",wand_view->namecxx . . $ _WandView#name.); |
| 420 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(severity != (ExceptionType *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 421 | *severity=wand_view->exceptioncxx . . $ _WandView#exception.->severitycxx . . $ _ExceptionInfo#severity.; |
| 422 | description=(char *) AcquireQuantumMemorycxx . . $ AcquireQuantumMemory(63a7bf2941bfcd7a).(2UL*MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!, |
| 423 | sizeof(*description)); |
| 424 | if (description == (char *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 425 | ThrowWandFatalExceptioncxx . . $ `MagickWand/magick-wand-private.h:35:9`!(ResourceLimitFatalError,"MemoryAllocationFailed", |
| 426 | wand_view->name); |
| 427 | *description='\0'; |
| 428 | if (wand_view->exceptioncxx . . $ _WandView#exception.->reasoncxx . . $ _ExceptionInfo#reason. != (char *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 429 | (void) CopyMagickStringcxx . . $ CopyMagickString(55abe9014c6d0e39).(description,GetLocaleExceptionMessagecxx . . $ GetLocaleExceptionMessage(6b08be75a12f9dc8).( |
| 430 | wand_view->exceptioncxx . . $ _WandView#exception.->severitycxx . . $ _ExceptionInfo#severity.,wand_view->exceptioncxx . . $ _WandView#exception.->reasoncxx . . $ _ExceptionInfo#reason.), |
| 431 | MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!); |
| 432 | if (wand_view->exceptioncxx . . $ _WandView#exception.->descriptioncxx . . $ _ExceptionInfo#description. != (char *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 433 | { |
| 434 | (void) ConcatenateMagickStringcxx . . $ ConcatenateMagickString(55abe9014c6d0e39).(description," (",MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!); |
| 435 | (void) ConcatenateMagickStringcxx . . $ ConcatenateMagickString(55abe9014c6d0e39).(description,GetLocaleExceptionMessagecxx . . $ GetLocaleExceptionMessage(6b08be75a12f9dc8).( |
| 436 | wand_view->exceptioncxx . . $ _WandView#exception.->severitycxx . . $ _ExceptionInfo#severity.,wand_view->exceptioncxx . . $ _WandView#exception.->descriptioncxx . . $ _ExceptionInfo#description.), |
| 437 | MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!); |
| 438 | (void) ConcatenateMagickStringcxx . . $ ConcatenateMagickString(55abe9014c6d0e39).(description,")",MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!); |
| 439 | } |
| 440 | return(description); |
| 441 | } |
| 442 | |
| 443 | /* |
| 444 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 445 | % % |
| 446 | % % |
| 447 | % % |
| 448 | % G e t W a n d V i e w E x t e n t % |
| 449 | % % |
| 450 | % % |
| 451 | % % |
| 452 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 453 | % |
| 454 | % GetWandViewExtent() returns the wand view extent. |
| 455 | % |
| 456 | % The format of the GetWandViewExtent method is: |
| 457 | % |
| 458 | % RectangleInfo GetWandViewExtent(const WandView *wand_view) |
| 459 | % |
| 460 | % A description of each parameter follows: |
| 461 | % |
| 462 | % o wand_view: the wand view. |
| 463 | % |
| 464 | */ |
| 465 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! RectangleInfocxx . . $ RectangleInfo# GetWandViewExtentcxx . . $ GetWandViewExtent(553ee89b11379696).(const WandViewcxx . . $ WandView# *wand_view) |
| 466 | { |
| 467 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 468 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 469 | return(wand_view->extentcxx . . $ _WandView#extent.); |
| 470 | } |
| 471 | |
| 472 | /* |
| 473 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 474 | % % |
| 475 | % % |
| 476 | % % |
| 477 | % G e t W a n d V i e w I t e r a t o r % |
| 478 | % % |
| 479 | % % |
| 480 | % % |
| 481 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 482 | % |
| 483 | % GetWandViewIterator() iterates over the wand view in parallel and calls |
| 484 | % your get method for each scanline of the view. The pixel extent is |
| 485 | % not confined to the image canvas-- that is you can include negative offsets |
| 486 | % or widths or heights that exceed the image dimension. Any updates to |
| 487 | % the pixels in your callback are ignored. |
| 488 | % |
| 489 | % The callback signature is: |
| 490 | % |
| 491 | % MagickBooleanType GetImageViewMethod(const WandView *source, |
| 492 | % const ssize_t y,const int thread_id,void *context) |
| 493 | % |
| 494 | % Use this pragma if the view is not single threaded: |
| 495 | % |
| 496 | % #pragma omp critical |
| 497 | % |
| 498 | % to define a section of code in your callback get method that must be |
| 499 | % executed by a single thread at a time. |
| 500 | % |
| 501 | % The format of the GetWandViewIterator method is: |
| 502 | % |
| 503 | % MagickBooleanType GetWandViewIterator(WandView *source, |
| 504 | % GetWandViewMethod get,void *context) |
| 505 | % |
| 506 | % A description of each parameter follows: |
| 507 | % |
| 508 | % o source: the source wand view. |
| 509 | % |
| 510 | % o get: the get callback method. |
| 511 | % |
| 512 | % o context: the user defined context. |
| 513 | % |
| 514 | */ |
| 515 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# GetWandViewIteratorcxx . . $ GetWandViewIterator(94db9bf2edf253c4).(WandViewcxx . . $ WandView# *source, |
| 516 | GetWandViewMethodcxx . . $ GetWandViewMethod# get,void *context) |
| 517 | { |
| 518 | Imagecxx . . $ Image# |
| 519 | *source_image; |
| 520 | |
| 521 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 522 | status; |
| 523 | |
| 524 | MagickOffsetTypecxx . . $ MagickOffsetType# |
| 525 | progress; |
| 526 | |
| 527 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 528 | size_t |
| 529 | height; |
| 530 | #endif |
| 531 | |
| 532 | ssize_tcxx . . $ ssize_t# |
| 533 | y; |
| 534 | |
| 535 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 536 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 537 | if (get == (GetWandViewMethodcxx . . $ GetWandViewMethod#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 538 | return(MagickFalsecxx . . $ MagickFalse.); |
| 539 | source_image=source->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 540 | status=MagickTruecxx . . $ MagickTrue.; |
| 541 | progress=0; |
| 542 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 543 | height=(size_t) ((ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.-source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.); |
| 544 | #pragma omp parallel for schedule(static) shared(progress,status) \ |
| 545 | magick_number_threadscxx . . $ `MagickCore/thread-private.h:30:9`!(source_image,source_image,height,1) |
| 546 | #endif |
| 547 | for (y=source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.; y < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.; y++) |
| 548 | { |
| 549 | const int |
| 550 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 551 | |
| 552 | const Quantumcxx . . $ Quantum# |
| 553 | *pixels; |
| 554 | |
| 555 | ssize_tcxx . . $ ssize_t# |
| 556 | x; |
| 557 | |
| 558 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 559 | continue; |
| 560 | pixels=GetCacheViewVirtualPixelscxx . . $ GetCacheViewVirtualPixels(b43ad0d76e5ba480).(source->viewcxx . . $ _WandView#view.,source->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y, |
| 561 | source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,source->exceptioncxx . . $ _WandView#exception.); |
| 562 | if (pixels == (const Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 563 | { |
| 564 | status=MagickFalsecxx . . $ MagickFalse.; |
| 565 | continue; |
| 566 | } |
| 567 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 568 | { |
| 569 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(source->imagecxx . . $ _WandView#image.,pixels,source->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 570 | pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(source->imagecxx . . $ _WandView#image.); |
| 571 | } |
| 572 | if (get(source,y,id,context) == MagickFalsecxx . . $ MagickFalse.) |
| 573 | status=MagickFalsecxx . . $ MagickFalse.; |
| 574 | if (source_image->progress_monitorcxx . . $ _Image#progress_monitor. != (MagickProgressMonitorcxx . . $ MagickProgressMonitor#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 575 | { |
| 576 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 577 | proceed; |
| 578 | |
| 579 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 580 | #pragma omp atomic |
| 581 | #endif |
| 582 | progress++; |
| 583 | proceed=SetImageProgresscxx . . $ SetImageProgress(ed5fa1ce647596d).(source_image,source->descriptioncxx . . $ _WandView#description.,progress, |
| 584 | source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.); |
| 585 | if (proceed == MagickFalsecxx . . $ MagickFalse.) |
| 586 | status=MagickFalsecxx . . $ MagickFalse.; |
| 587 | } |
| 588 | } |
| 589 | return(status); |
| 590 | } |
| 591 | |
| 592 | /* |
| 593 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 594 | % % |
| 595 | % % |
| 596 | % % |
| 597 | % G e t W a n d V i e w P i x e l s % |
| 598 | % % |
| 599 | % % |
| 600 | % % |
| 601 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 602 | % |
| 603 | % GetWandViewPixels() returns the wand view pixel_wands. |
| 604 | % |
| 605 | % The format of the GetWandViewPixels method is: |
| 606 | % |
| 607 | % PixelWand *GetWandViewPixels(const WandView *wand_view) |
| 608 | % |
| 609 | % A description of each parameter follows: |
| 610 | % |
| 611 | % o wand_view: the wand view. |
| 612 | % |
| 613 | */ |
| 614 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! PixelWandcxx . . $ PixelWand# **GetWandViewPixelscxx . . $ GetWandViewPixels(75287cc2c719e0e).(const WandViewcxx . . $ WandView# *wand_view) |
| 615 | { |
| 616 | const int |
| 617 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 618 | |
| 619 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 620 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 621 | return(wand_view->pixel_wandscxx . . $ _WandView#pixel_wands.[id]); |
| 622 | } |
| 623 | |
| 624 | /* |
| 625 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 626 | % % |
| 627 | % % |
| 628 | % % |
| 629 | % G e t W a n d V i e w W a n d % |
| 630 | % % |
| 631 | % % |
| 632 | % % |
| 633 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 634 | % |
| 635 | % GetWandViewWand() returns the magick wand associated with the wand view. |
| 636 | % |
| 637 | % The format of the GetWandViewWand method is: |
| 638 | % |
| 639 | % MagickWand *GetWandViewWand(const WandView *wand_view) |
| 640 | % |
| 641 | % A description of each parameter follows: |
| 642 | % |
| 643 | % o wand_view: the wand view. |
| 644 | % |
| 645 | */ |
| 646 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickWandcxx . . $ MagickWand# *GetWandViewWandcxx . . $ GetWandViewWand(1494d18de194b039).(const WandViewcxx . . $ WandView# *wand_view) |
| 647 | { |
| 648 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 649 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 650 | return(wand_view->wandcxx . . $ _WandView#wand.); |
| 651 | } |
| 652 | |
| 653 | /* |
| 654 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 655 | % % |
| 656 | % % |
| 657 | % % |
| 658 | % I s W a n d V i e w % |
| 659 | % % |
| 660 | % % |
| 661 | % % |
| 662 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 663 | % |
| 664 | % IsWandView() returns MagickTrue if the parameter is verified as a wand |
| 665 | % view object. |
| 666 | % |
| 667 | % The format of the IsWandView method is: |
| 668 | % |
| 669 | % MagickBooleanType IsWandView(const WandView *wand_view) |
| 670 | % |
| 671 | % A description of each parameter follows: |
| 672 | % |
| 673 | % o wand_view: the wand view. |
| 674 | % |
| 675 | */ |
| 676 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# IsWandViewcxx . . $ IsWandView(8bfc0717750047e3).(const WandViewcxx . . $ WandView# *wand_view) |
| 677 | { |
| 678 | size_t |
| 679 | length; |
| 680 | |
| 681 | if (wand_view == (const WandViewcxx . . $ WandView# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 682 | return(MagickFalsecxx . . $ MagickFalse.); |
| 683 | if (wand_view->signaturecxx . . $ _WandView#signature. != MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!) |
| 684 | return(MagickFalsecxx . . $ MagickFalse.); |
| 685 | length=strlencxx . . $ strlen(751346f8406fd082).(WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`!); |
| 686 | if (LocaleNComparecxx . . $ LocaleNCompare(fd278af2f295fa2e).(wand_view->namecxx . . $ _WandView#name.,WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`!,length) != 0) |
| 687 | return(MagickFalsecxx . . $ MagickFalse.); |
| 688 | return(MagickTruecxx . . $ MagickTrue.); |
| 689 | } |
| 690 | |
| 691 | /* |
| 692 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 693 | % % |
| 694 | % % |
| 695 | % % |
| 696 | % N e w W a n d V i e w % |
| 697 | % % |
| 698 | % % |
| 699 | % % |
| 700 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 701 | % |
| 702 | % NewWandView() returns a wand view required for all other methods in the |
| 703 | % Wand View API. |
| 704 | % |
| 705 | % The format of the NewWandView method is: |
| 706 | % |
| 707 | % WandView *NewWandView(MagickWand *wand) |
| 708 | % |
| 709 | % A description of each parameter follows: |
| 710 | % |
| 711 | % o wand: the wand. |
| 712 | % |
| 713 | */ |
| 714 | |
| 715 | static PixelWandcxx . . $ PixelWand# ***AcquirePixelsTLScxx . . $ AcquirePixelsTLS(916a1faf21f9667b).(const size_t number_wands) |
| 716 | { |
| 717 | PixelWandcxx . . $ PixelWand# |
| 718 | ***pixel_wands; |
| 719 | |
| 720 | size_t |
| 721 | number_threads; |
| 722 | |
| 723 | ssize_tcxx . . $ ssize_t# |
| 724 | i; |
| 725 | |
| 726 | number_threads=GetOpenMPMaximumThreadscxx . . $ GetOpenMPMaximumThreads(f708dce9a8856c70).(); |
| 727 | pixel_wands=(PixelWandcxx . . $ PixelWand# ***) AcquireQuantumMemorycxx . . $ AcquireQuantumMemory(63a7bf2941bfcd7a).(number_threads, |
| 728 | sizeof(*pixel_wands)); |
| 729 | if (pixel_wands == (PixelWandcxx . . $ PixelWand# ***) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 730 | return((PixelWandcxx . . $ PixelWand# ***) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 731 | (void) memsetcxx . . $ memset(d1de1e4fb215f1c6).(pixel_wands,0,number_threads*sizeof(*pixel_wands)); |
| 732 | for (i=0; i < (ssize_tcxx . . $ ssize_t#) number_threads; i++) |
| 733 | { |
| 734 | pixel_wands[i]=NewPixelWandscxx . . $ NewPixelWands(84835c9282bcdefe).(number_wands); |
| 735 | if (pixel_wands[i] == (PixelWandcxx . . $ PixelWand# **) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 736 | return(DestroyPixelsTLScxx . . $ DestroyPixelsTLS(de3543ce145c3bbb).(pixel_wands,number_wands)); |
| 737 | } |
| 738 | return(pixel_wands); |
| 739 | } |
| 740 | |
| 741 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! WandViewcxx . . $ WandView# *NewWandViewcxx . . $ NewWandView(dc2666588a638789).(MagickWandcxx . . $ MagickWand# *wand) |
| 742 | { |
| 743 | ExceptionInfocxx . . $ ExceptionInfo# |
| 744 | *exception; |
| 745 | |
| 746 | WandViewcxx . . $ WandView# |
| 747 | *wand_view; |
| 748 | |
| 749 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand != (MagickWand *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 750 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 751 | wand_view=(WandViewcxx . . $ WandView# *) AcquireCriticalMemorycxx . . $ AcquireCriticalMemory(bfcfa4d6b7f7ef64).(sizeof(*wand_view)); |
| 752 | (void) memsetcxx . . $ memset(d1de1e4fb215f1c6).(wand_view,0,sizeof(*wand_view)); |
| 753 | wand_view->idcxx . . $ _WandView#id.=AcquireWandIdcxx . . $ AcquireWandId(f708dce9a8856c70).(); |
| 754 | (void) FormatLocaleStringcxx . . $ FormatLocaleString(ea0b92a839b82972).(wand_view->namecxx . . $ _WandView#name.,MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!,"%s-%.20g", |
| 755 | WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`!,(double) wand_view->idcxx . . $ _WandView#id.); |
| 756 | wand_view->descriptioncxx . . $ _WandView#description.=ConstantStringcxx . . $ ConstantString(a8b8e32347182212).("WandView"); |
| 757 | wand_view->wandcxx . . $ _WandView#wand.=wand; |
| 758 | exception=AcquireExceptionInfocxx . . $ AcquireExceptionInfo(321f0558cc327d4a).(); |
| 759 | wand_view->viewcxx . . $ _WandView#view.=AcquireVirtualCacheViewcxx . . $ AcquireVirtualCacheView(f3f74cbf95a24d23).(wand_view->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.,exception); |
| 760 | wand_view->imagecxx . . $ _WandView#image.=(Imagecxx . . $ Image# *) GetCacheViewImagecxx . . $ GetCacheViewImage(7661bb62c53c2595).(wand_view->viewcxx . . $ _WandView#view.); |
| 761 | wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.=wand_view->imagecxx . . $ _WandView#image.->columnscxx . . $ _Image#columns.; |
| 762 | wand_view->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.=wand_view->imagecxx . . $ _WandView#image.->rowscxx . . $ _Image#rows.; |
| 763 | wand_view->pixel_wandscxx . . $ _WandView#pixel_wands.=AcquirePixelsTLScxx . . $ AcquirePixelsTLS(916a1faf21f9667b).(wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.); |
| 764 | wand_view->exceptioncxx . . $ _WandView#exception.=exception; |
| 765 | if (wand_view->pixel_wandscxx . . $ _WandView#pixel_wands. == (PixelWandcxx . . $ PixelWand# ***) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 766 | ThrowWandFatalExceptioncxx . . $ `MagickWand/magick-wand-private.h:35:9`!(ResourceLimitFatalError,"MemoryAllocationFailed", |
| 767 | (char *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 768 | wand_view->debugcxx . . $ _WandView#debug.=IsEventLoggingcxx . . $ IsEventLogging(3b322bbe97a26247).(); |
| 769 | wand_view->signaturecxx . . $ _WandView#signature.=MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!; |
| 770 | return(wand_view); |
| 771 | } |
| 772 | |
| 773 | /* |
| 774 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 775 | % % |
| 776 | % % |
| 777 | % % |
| 778 | % N e w W a n d V i e w E x t e n t % |
| 779 | % % |
| 780 | % % |
| 781 | % % |
| 782 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 783 | % |
| 784 | % NewWandViewExtent() returns a wand view required for all other methods |
| 785 | % in the Wand View API. |
| 786 | % |
| 787 | % The format of the NewWandViewExtent method is: |
| 788 | % |
| 789 | % WandView *NewWandViewExtent(MagickWand *wand,const ssize_t x, |
| 790 | % const ssize_t y,const size_t width,const size_t height) |
| 791 | % |
| 792 | % A description of each parameter follows: |
| 793 | % |
| 794 | % o wand: the magick wand. |
| 795 | % |
| 796 | % o x,y,columns,rows: These values define the perimeter of a extent of |
| 797 | % pixel_wands view. |
| 798 | % |
| 799 | */ |
| 800 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! WandViewcxx . . $ WandView# *NewWandViewExtentcxx . . $ NewWandViewExtent(4269293fff15d363).(MagickWandcxx . . $ MagickWand# *wand,const ssize_tcxx . . $ ssize_t# x, |
| 801 | const ssize_tcxx . . $ ssize_t# y,const size_t width,const size_t height) |
| 802 | { |
| 803 | ExceptionInfocxx . . $ ExceptionInfo# |
| 804 | *exception; |
| 805 | |
| 806 | WandViewcxx . . $ WandView# |
| 807 | *wand_view; |
| 808 | |
| 809 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand != (MagickWand *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 810 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 811 | wand_view=(WandViewcxx . . $ WandView# *) AcquireCriticalMemorycxx . . $ AcquireCriticalMemory(bfcfa4d6b7f7ef64).(sizeof(*wand_view)); |
| 812 | (void) memsetcxx . . $ memset(d1de1e4fb215f1c6).(wand_view,0,sizeof(*wand_view)); |
| 813 | wand_view->idcxx . . $ _WandView#id.=AcquireWandIdcxx . . $ AcquireWandId(f708dce9a8856c70).(); |
| 814 | (void) FormatLocaleStringcxx . . $ FormatLocaleString(ea0b92a839b82972).(wand_view->namecxx . . $ _WandView#name.,MagickPathExtentcxx . . $ `MagickWand/method-attribute.h:68:11`!,"%s-%.20g", |
| 815 | WandViewIdcxx . . $ `MagickWand/wand-view.c:57:9`!,(double) wand_view->idcxx . . $ _WandView#id.); |
| 816 | wand_view->descriptioncxx . . $ _WandView#description.=ConstantStringcxx . . $ ConstantString(a8b8e32347182212).("WandView"); |
| 817 | exception=AcquireExceptionInfocxx . . $ AcquireExceptionInfo(321f0558cc327d4a).(); |
| 818 | wand_view->viewcxx . . $ _WandView#view.=AcquireVirtualCacheViewcxx . . $ AcquireVirtualCacheView(f3f74cbf95a24d23).(wand_view->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.,exception); |
| 819 | wand_view->wandcxx . . $ _WandView#wand.=wand; |
| 820 | wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.=width; |
| 821 | wand_view->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.=height; |
| 822 | wand_view->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.=x; |
| 823 | wand_view->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.=y; |
| 824 | wand_view->exceptioncxx . . $ _WandView#exception.=exception; |
| 825 | wand_view->pixel_wandscxx . . $ _WandView#pixel_wands.=AcquirePixelsTLScxx . . $ AcquirePixelsTLS(916a1faf21f9667b).(wand_view->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.); |
| 826 | if (wand_view->pixel_wandscxx . . $ _WandView#pixel_wands. == (PixelWandcxx . . $ PixelWand# ***) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 827 | ThrowWandFatalExceptioncxx . . $ `MagickWand/magick-wand-private.h:35:9`!(ResourceLimitFatalError,"MemoryAllocationFailed", |
| 828 | (char *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 829 | wand_view->debugcxx . . $ _WandView#debug.=IsEventLoggingcxx . . $ IsEventLogging(3b322bbe97a26247).(); |
| 830 | wand_view->signaturecxx . . $ _WandView#signature.=MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!; |
| 831 | return(wand_view); |
| 832 | } |
| 833 | |
| 834 | /* |
| 835 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 836 | % % |
| 837 | % % |
| 838 | % % |
| 839 | % S e t W a n d V i e w D e s c r i p t i o n % |
| 840 | % % |
| 841 | % % |
| 842 | % % |
| 843 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 844 | % |
| 845 | % SetWandViewDescription() associates a description with an image view. |
| 846 | % |
| 847 | % The format of the SetWandViewDescription method is: |
| 848 | % |
| 849 | % void SetWandViewDescription(WandView *image_view,const char *description) |
| 850 | % |
| 851 | % A description of each parameter follows: |
| 852 | % |
| 853 | % o wand_view: the wand view. |
| 854 | % |
| 855 | % o description: the wand view description. |
| 856 | % |
| 857 | */ |
| 858 | MagickExportcxx . . $ `MagickCore/method-attribute.h:67:13`! void SetWandViewDescriptioncxx . . $ SetWandViewDescription(a96c39ea1d9265c5).(WandViewcxx . . $ WandView# *wand_view, |
| 859 | const char *description) |
| 860 | { |
| 861 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 862 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(wand_view->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 863 | wand_view->descriptioncxx . . $ _WandView#description.=ConstantStringcxx . . $ ConstantString(a8b8e32347182212).(description); |
| 864 | } |
| 865 | |
| 866 | /* |
| 867 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 868 | % % |
| 869 | % % |
| 870 | % % |
| 871 | % S e t W a n d V i e w I t e r a t o r % |
| 872 | % % |
| 873 | % % |
| 874 | % % |
| 875 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 876 | % |
| 877 | % SetWandViewIterator() iterates over the wand view in parallel and calls |
| 878 | % your set method for each scanline of the view. The pixel extent is |
| 879 | % confined to the image canvas-- that is no negative offsets or widths or |
| 880 | % heights that exceed the image dimension. The pixels are initially |
| 881 | % undefined and any settings you make in the callback method are automagically |
| 882 | % synced back to your image. |
| 883 | % |
| 884 | % The callback signature is: |
| 885 | % |
| 886 | % MagickBooleanType SetImageViewMethod(ImageView *destination, |
| 887 | % const ssize_t y,const int thread_id,void *context) |
| 888 | % |
| 889 | % Use this pragma if the view is not single threaded: |
| 890 | % |
| 891 | % #pragma omp critical |
| 892 | % |
| 893 | % to define a section of code in your callback set method that must be |
| 894 | % executed by a single thread at a time. |
| 895 | % |
| 896 | % The format of the SetWandViewIterator method is: |
| 897 | % |
| 898 | % MagickBooleanType SetWandViewIterator(WandView *destination, |
| 899 | % SetWandViewMethod set,void *context) |
| 900 | % |
| 901 | % A description of each parameter follows: |
| 902 | % |
| 903 | % o destination: the wand view. |
| 904 | % |
| 905 | % o set: the set callback method. |
| 906 | % |
| 907 | % o context: the user defined context. |
| 908 | % |
| 909 | */ |
| 910 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# SetWandViewIteratorcxx . . $ SetWandViewIterator(42bcde69e1213734).(WandViewcxx . . $ WandView# *destination, |
| 911 | SetWandViewMethodcxx . . $ SetWandViewMethod# set,void *context) |
| 912 | { |
| 913 | Imagecxx . . $ Image# |
| 914 | *destination_image; |
| 915 | |
| 916 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 917 | status; |
| 918 | |
| 919 | MagickOffsetTypecxx . . $ MagickOffsetType# |
| 920 | progress; |
| 921 | |
| 922 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 923 | size_t |
| 924 | height; |
| 925 | #endif |
| 926 | |
| 927 | ssize_tcxx . . $ ssize_t# |
| 928 | y; |
| 929 | |
| 930 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(destination != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 931 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(destination->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 932 | if (set == (SetWandViewMethodcxx . . $ SetWandViewMethod#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 933 | return(MagickFalsecxx . . $ MagickFalse.); |
| 934 | destination_image=destination->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 935 | status=SetImageStorageClasscxx . . $ SetImageStorageClass(2fdd2f49f6412224).(destination_image,DirectClasscxx . . $ DirectClass., |
| 936 | destination->exceptioncxx . . $ _WandView#exception.); |
| 937 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 938 | return(MagickFalsecxx . . $ MagickFalse.); |
| 939 | status=MagickTruecxx . . $ MagickTrue.; |
| 940 | progress=0; |
| 941 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 942 | height=(size_t) ((ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.-destination->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.); |
| 943 | #pragma omp parallel for schedule(static) shared(progress,status) \ |
| 944 | magick_number_threadscxx . . $ `MagickCore/thread-private.h:30:9`!(destination_image,destination_image,height,1) |
| 945 | #endif |
| 946 | for (y=destination->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.; y < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.; y++) |
| 947 | { |
| 948 | const int |
| 949 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 950 | |
| 951 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 952 | sync; |
| 953 | |
| 954 | Quantumcxx . . $ Quantum# |
| 955 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! pixels; |
| 956 | |
| 957 | ssize_tcxx . . $ ssize_t# |
| 958 | x; |
| 959 | |
| 960 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 961 | continue; |
| 962 | pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(destination->viewcxx . . $ _WandView#view.,destination->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x., |
| 963 | y,destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,destination->exceptioncxx . . $ _WandView#exception.); |
| 964 | if (pixels == (Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 965 | { |
| 966 | status=MagickFalsecxx . . $ MagickFalse.; |
| 967 | continue; |
| 968 | } |
| 969 | if (set(destination,y,id,context) == MagickFalsecxx . . $ MagickFalse.) |
| 970 | status=MagickFalsecxx . . $ MagickFalse.; |
| 971 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 972 | { |
| 973 | PixelGetQuantumPixelcxx . . $ PixelGetQuantumPixel(23ed16a7305caf2d).(destination->imagecxx . . $ _WandView#image.,destination->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x], |
| 974 | pixels); |
| 975 | pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(destination->imagecxx . . $ _WandView#image.); |
| 976 | } |
| 977 | sync=SyncCacheViewAuthenticPixelscxx . . $ SyncCacheViewAuthenticPixels(35b62a33ab12805e).(destination->viewcxx . . $ _WandView#view.,destination->exceptioncxx . . $ _WandView#exception.); |
| 978 | if (sync == MagickFalsecxx . . $ MagickFalse.) |
| 979 | status=MagickFalsecxx . . $ MagickFalse.; |
| 980 | if (destination_image->progress_monitorcxx . . $ _Image#progress_monitor. != (MagickProgressMonitorcxx . . $ MagickProgressMonitor#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 981 | { |
| 982 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 983 | proceed; |
| 984 | |
| 985 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 986 | #pragma omp atomic |
| 987 | #endif |
| 988 | progress++; |
| 989 | proceed=SetImageProgresscxx . . $ SetImageProgress(ed5fa1ce647596d).(destination_image,destination->descriptioncxx . . $ _WandView#description., |
| 990 | progress,destination->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.); |
| 991 | if (proceed == MagickFalsecxx . . $ MagickFalse.) |
| 992 | status=MagickFalsecxx . . $ MagickFalse.; |
| 993 | } |
| 994 | } |
| 995 | return(status); |
| 996 | } |
| 997 | |
| 998 | /* |
| 999 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1000 | % % |
| 1001 | % % |
| 1002 | % % |
| 1003 | % T r a n s f e r W a n d V i e w I t e r a t o r % |
| 1004 | % % |
| 1005 | % % |
| 1006 | % % |
| 1007 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1008 | % |
| 1009 | % TransferWandViewIterator() iterates over two wand views in parallel and |
| 1010 | % calls your transfer method for each scanline of the view. The source pixel |
| 1011 | % extent is not confined to the image canvas-- that is you can include |
| 1012 | % negative offsets or widths or heights that exceed the image dimension. |
| 1013 | % However, the destination wand view is confined to the image canvas-- that |
| 1014 | % is no negative offsets or widths or heights that exceed the image dimension |
| 1015 | % are permitted. |
| 1016 | % |
| 1017 | % The callback signature is: |
| 1018 | % |
| 1019 | % MagickBooleanType TransferImageViewMethod(const WandView *source, |
| 1020 | % WandView *destination,const ssize_t y,const int thread_id, |
| 1021 | % void *context) |
| 1022 | % |
| 1023 | % Use this pragma if the view is not single threaded: |
| 1024 | % |
| 1025 | % #pragma omp critical |
| 1026 | % |
| 1027 | % to define a section of code in your callback transfer method that must be |
| 1028 | % executed by a single thread at a time. |
| 1029 | % |
| 1030 | % The format of the TransferWandViewIterator method is: |
| 1031 | % |
| 1032 | % MagickBooleanType TransferWandViewIterator(WandView *source, |
| 1033 | % WandView *destination,TransferWandViewMethod transfer,void *context) |
| 1034 | % |
| 1035 | % A description of each parameter follows: |
| 1036 | % |
| 1037 | % o source: the source wand view. |
| 1038 | % |
| 1039 | % o destination: the destination wand view. |
| 1040 | % |
| 1041 | % o transfer: the transfer callback method. |
| 1042 | % |
| 1043 | % o context: the user defined context. |
| 1044 | % |
| 1045 | */ |
| 1046 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# TransferWandViewIteratorcxx . . $ TransferWandViewIterator(cfe171693a4e85b3).(WandViewcxx . . $ WandView# *source, |
| 1047 | WandViewcxx . . $ WandView# *destination,TransferWandViewMethodcxx . . $ TransferWandViewMethod# transfer,void *context) |
| 1048 | { |
| 1049 | Imagecxx . . $ Image# |
| 1050 | *destination_image, |
| 1051 | *source_image; |
| 1052 | |
| 1053 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1054 | status; |
| 1055 | |
| 1056 | MagickOffsetTypecxx . . $ MagickOffsetType# |
| 1057 | progress; |
| 1058 | |
| 1059 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1060 | size_t |
| 1061 | height; |
| 1062 | #endif |
| 1063 | |
| 1064 | ssize_tcxx . . $ ssize_t# |
| 1065 | y; |
| 1066 | |
| 1067 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1068 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 1069 | if (transfer == (TransferWandViewMethodcxx . . $ TransferWandViewMethod#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1070 | return(MagickFalsecxx . . $ MagickFalse.); |
| 1071 | source_image=source->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 1072 | destination_image=destination->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 1073 | status=SetImageStorageClasscxx . . $ SetImageStorageClass(2fdd2f49f6412224).(destination_image,DirectClasscxx . . $ DirectClass., |
| 1074 | destination->exceptioncxx . . $ _WandView#exception.); |
| 1075 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 1076 | return(MagickFalsecxx . . $ MagickFalse.); |
| 1077 | status=MagickTruecxx . . $ MagickTrue.; |
| 1078 | progress=0; |
| 1079 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1080 | height=(size_t) ((ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.-source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.); |
| 1081 | #pragma omp parallel for schedule(static) shared(progress,status) \ |
| 1082 | magick_number_threadscxx . . $ `MagickCore/thread-private.h:30:9`!(source_image,destination_image,height,1) |
| 1083 | #endif |
| 1084 | for (y=source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.; y < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.; y++) |
| 1085 | { |
| 1086 | const int |
| 1087 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 1088 | |
| 1089 | const Quantumcxx . . $ Quantum# |
| 1090 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! pixels; |
| 1091 | |
| 1092 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1093 | sync; |
| 1094 | |
| 1095 | Quantumcxx . . $ Quantum# |
| 1096 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! destination_pixels; |
| 1097 | |
| 1098 | ssize_tcxx . . $ ssize_t# |
| 1099 | x; |
| 1100 | |
| 1101 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 1102 | continue; |
| 1103 | pixels=GetCacheViewVirtualPixelscxx . . $ GetCacheViewVirtualPixels(b43ad0d76e5ba480).(source->viewcxx . . $ _WandView#view.,source->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y, |
| 1104 | source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,source->exceptioncxx . . $ _WandView#exception.); |
| 1105 | if (pixels == (const Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1106 | { |
| 1107 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1108 | continue; |
| 1109 | } |
| 1110 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 1111 | { |
| 1112 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(source->imagecxx . . $ _WandView#image.,pixels,source->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 1113 | pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(source->imagecxx . . $ _WandView#image.); |
| 1114 | } |
| 1115 | destination_pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(destination->viewcxx . . $ _WandView#view., |
| 1116 | destination->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y,destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1, |
| 1117 | destination->exceptioncxx . . $ _WandView#exception.); |
| 1118 | if (destination_pixels == (Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1119 | { |
| 1120 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1121 | continue; |
| 1122 | } |
| 1123 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 1124 | { |
| 1125 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(destination->imagecxx . . $ _WandView#image.,destination_pixels, |
| 1126 | destination->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 1127 | destination_pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(destination->imagecxx . . $ _WandView#image.); |
| 1128 | } |
| 1129 | if (transfer(source,destination,y,id,context) == MagickFalsecxx . . $ MagickFalse.) |
| 1130 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1131 | destination_pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(destination->viewcxx . . $ _WandView#view., |
| 1132 | destination->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y,destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1, |
| 1133 | destination->exceptioncxx . . $ _WandView#exception.); |
| 1134 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) destination->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 1135 | { |
| 1136 | PixelGetQuantumPixelcxx . . $ PixelGetQuantumPixel(23ed16a7305caf2d).(destination->imagecxx . . $ _WandView#image.,destination->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x], |
| 1137 | destination_pixels); |
| 1138 | destination_pixels+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(destination->imagecxx . . $ _WandView#image.); |
| 1139 | } |
| 1140 | sync=SyncCacheViewAuthenticPixelscxx . . $ SyncCacheViewAuthenticPixels(35b62a33ab12805e).(destination->viewcxx . . $ _WandView#view.,destination->exceptioncxx . . $ _WandView#exception.); |
| 1141 | if (sync == MagickFalsecxx . . $ MagickFalse.) |
| 1142 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1143 | if (source_image->progress_monitorcxx . . $ _Image#progress_monitor. != (MagickProgressMonitorcxx . . $ MagickProgressMonitor#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1144 | { |
| 1145 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1146 | proceed; |
| 1147 | |
| 1148 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1149 | #pragma omp atomic |
| 1150 | #endif |
| 1151 | progress++; |
| 1152 | proceed=SetImageProgresscxx . . $ SetImageProgress(ed5fa1ce647596d).(source_image,source->descriptioncxx . . $ _WandView#description.,progress, |
| 1153 | source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.); |
| 1154 | if (proceed == MagickFalsecxx . . $ MagickFalse.) |
| 1155 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1156 | } |
| 1157 | } |
| 1158 | return(status); |
| 1159 | } |
| 1160 | |
| 1161 | /* |
| 1162 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1163 | % % |
| 1164 | % % |
| 1165 | % % |
| 1166 | % U p d a t e W a n d V i e w I t e r a t o r % |
| 1167 | % % |
| 1168 | % % |
| 1169 | % % |
| 1170 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1171 | % |
| 1172 | % UpdateWandViewIterator() iterates over the wand view in parallel and calls |
| 1173 | % your update method for each scanline of the view. The pixel extent is |
| 1174 | % confined to the image canvas-- that is no negative offsets or widths or |
| 1175 | % heights that exceed the image dimension are permitted. Updates to pixels |
| 1176 | % in your callback are automagically synced back to the image. |
| 1177 | % |
| 1178 | % The callback signature is: |
| 1179 | % |
| 1180 | % MagickBooleanType UpdateImageViewMethod(WandView *source,const ssize_t y, |
| 1181 | % const int thread_id,void *context) |
| 1182 | % |
| 1183 | % Use this pragma if the view is not single threaded: |
| 1184 | % |
| 1185 | % #pragma omp critical |
| 1186 | % |
| 1187 | % to define a section of code in your callback update method that must be |
| 1188 | % executed by a single thread at a time. |
| 1189 | % |
| 1190 | % The format of the UpdateWandViewIterator method is: |
| 1191 | % |
| 1192 | % MagickBooleanType UpdateWandViewIterator(WandView *source, |
| 1193 | % UpdateWandViewMethod update,void *context) |
| 1194 | % |
| 1195 | % A description of each parameter follows: |
| 1196 | % |
| 1197 | % o source: the source wand view. |
| 1198 | % |
| 1199 | % o update: the update callback method. |
| 1200 | % |
| 1201 | % o context: the user defined context. |
| 1202 | % |
| 1203 | */ |
| 1204 | WandExportcxx . . $ `MagickWand/method-attribute.h:58:13`! MagickBooleanTypecxx . . $ MagickBooleanType# UpdateWandViewIteratorcxx . . $ UpdateWandViewIterator(42bcde69e1213734).(WandViewcxx . . $ WandView# *source, |
| 1205 | UpdateWandViewMethodcxx . . $ UpdateWandViewMethod# update,void *context) |
| 1206 | { |
| 1207 | Imagecxx . . $ Image# |
| 1208 | *source_image; |
| 1209 | |
| 1210 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1211 | status; |
| 1212 | |
| 1213 | MagickOffsetTypecxx . . $ MagickOffsetType# |
| 1214 | progress; |
| 1215 | |
| 1216 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1217 | size_t |
| 1218 | height; |
| 1219 | #endif |
| 1220 | |
| 1221 | ssize_tcxx . . $ ssize_t# |
| 1222 | y; |
| 1223 | |
| 1224 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source != (WandView *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1225 | assertcxx . . $ `<external>/4398592474888995393/assert.h:118:11`!(source->signature == MagickWandSignaturecxx . . $ `MagickWand/method-attribute.h:66:9`!); |
| 1226 | if (update == (UpdateWandViewMethodcxx . . $ UpdateWandViewMethod#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1227 | return(MagickFalsecxx . . $ MagickFalse.); |
| 1228 | source_image=source->wandcxx . . $ _WandView#wand.->imagescxx . . $ _MagickWand#images.; |
| 1229 | status=SetImageStorageClasscxx . . $ SetImageStorageClass(2fdd2f49f6412224).(source_image,DirectClasscxx . . $ DirectClass.,source->exceptioncxx . . $ _WandView#exception.); |
| 1230 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 1231 | return(MagickFalsecxx . . $ MagickFalse.); |
| 1232 | status=MagickTruecxx . . $ MagickTrue.; |
| 1233 | progress=0; |
| 1234 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1235 | height=(size_t) ((ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.-source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.); |
| 1236 | #pragma omp parallel for schedule(static) shared(progress,status) \ |
| 1237 | magick_number_threadscxx . . $ `MagickCore/thread-private.h:30:9`!(source_image,source_image,height,1) |
| 1238 | #endif |
| 1239 | for (y=source->extentcxx . . $ _WandView#extent..ycxx . . $ _RectangleInfo#y.; y < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.; y++) |
| 1240 | { |
| 1241 | const int |
| 1242 | id = GetOpenMPThreadIdcxx . . $ GetOpenMPThreadId(b126dc7c1de90089).(); |
| 1243 | |
| 1244 | const Quantumcxx . . $ Quantum# |
| 1245 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! p; |
| 1246 | |
| 1247 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1248 | sync; |
| 1249 | |
| 1250 | ssize_tcxx . . $ ssize_t# |
| 1251 | x; |
| 1252 | |
| 1253 | Quantumcxx . . $ Quantum# |
| 1254 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! pixels, |
| 1255 | *magick_restrictcxx . . $ `MagickWand/studio.h:81:11`! q; |
| 1256 | |
| 1257 | if (status == MagickFalsecxx . . $ MagickFalse.) |
| 1258 | continue; |
| 1259 | pixels=GetCacheViewAuthenticPixelscxx . . $ GetCacheViewAuthenticPixels(9ace643f0710d488).(source->viewcxx . . $ _WandView#view.,source->extentcxx . . $ _WandView#extent..xcxx . . $ _RectangleInfo#x.,y, |
| 1260 | source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.,1,source->exceptioncxx . . $ _WandView#exception.); |
| 1261 | if (pixels == (Quantumcxx . . $ Quantum# *) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1262 | { |
| 1263 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1264 | continue; |
| 1265 | } |
| 1266 | p=(const Quantumcxx . . $ Quantum# *) pixels; |
| 1267 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 1268 | { |
| 1269 | PixelSetQuantumPixelcxx . . $ PixelSetQuantumPixel(3c221efc28c934c5).(source->imagecxx . . $ _WandView#image.,p,source->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x]); |
| 1270 | p+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(source->imagecxx . . $ _WandView#image.); |
| 1271 | } |
| 1272 | if (update(source,y,id,context) == MagickFalsecxx . . $ MagickFalse.) |
| 1273 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1274 | q=pixels; |
| 1275 | for (x=0; x < (ssize_tcxx . . $ ssize_t#) source->extentcxx . . $ _WandView#extent..widthcxx . . $ _RectangleInfo#width.; x++) |
| 1276 | { |
| 1277 | PixelGetQuantumPixelcxx . . $ PixelGetQuantumPixel(23ed16a7305caf2d).(source->imagecxx . . $ _WandView#image.,source->pixel_wandscxx . . $ _WandView#pixel_wands.[id][x],q); |
| 1278 | q+=(ptrdiff_t) GetPixelChannelscxx . . $ GetPixelChannels(3910e76e032be83c).(source->imagecxx . . $ _WandView#image.); |
| 1279 | } |
| 1280 | sync=SyncCacheViewAuthenticPixelscxx . . $ SyncCacheViewAuthenticPixels(35b62a33ab12805e).(source->viewcxx . . $ _WandView#view.,source->exceptioncxx . . $ _WandView#exception.); |
| 1281 | if (sync == MagickFalsecxx . . $ MagickFalse.) |
| 1282 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1283 | if (source_image->progress_monitorcxx . . $ _Image#progress_monitor. != (MagickProgressMonitorcxx . . $ MagickProgressMonitor#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1284 | { |
| 1285 | MagickBooleanTypecxx . . $ MagickBooleanType# |
| 1286 | proceed; |
| 1287 | |
| 1288 | #if defined(MAGICKCORE_OPENMP_SUPPORTcxx . . $ `MagickWand/studio.h:48:11`!) |
| 1289 | #pragma omp atomic |
| 1290 | #endif |
| 1291 | progress++; |
| 1292 | proceed=SetImageProgresscxx . . $ SetImageProgress(ed5fa1ce647596d).(source_image,source->descriptioncxx . . $ _WandView#description.,progress, |
| 1293 | source->extentcxx . . $ _WandView#extent..heightcxx . . $ _RectangleInfo#height.); |
| 1294 | if (proceed == MagickFalsecxx . . $ MagickFalse.) |
| 1295 | status=MagickFalsecxx . . $ MagickFalse.; |
| 1296 | } |
| 1297 | } |
| 1298 | return(status); |
| 1299 | } |