cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 | % % |
| 4 | % % |
| 5 | % % |
| 6 | % OOO TTTTT BBBB % |
| 7 | % O O T B B % |
| 8 | % O O T BBBB % |
| 9 | % O O T B B % |
| 10 | % OOO T BBBB % |
| 11 | % % |
| 12 | % % |
| 13 | % Read/Write On-The-Air Image Format % |
| 14 | % % |
| 15 | % Software Design % |
| 16 | % John Cristy % |
| 17 | % January 2000 % |
| 18 | % % |
| 19 | % % |
cristy | 1454be7 | 2011-12-19 01:52:48 +0000 | [diff] [blame] | 20 | % Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization % |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21 | % dedicated to making software imaging solutions freely available. % |
| 22 | % % |
| 23 | % You may not use this file except in compliance with the License. You may % |
| 24 | % obtain a copy of the License at % |
| 25 | % % |
| 26 | % http://www.imagemagick.org/script/license.php % |
| 27 | % % |
| 28 | % Unless required by applicable law or agreed to in writing, software % |
| 29 | % distributed under the License is distributed on an "AS IS" BASIS, % |
| 30 | % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % |
| 31 | % See the License for the specific language governing permissions and % |
| 32 | % limitations under the License. % |
| 33 | % % |
| 34 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 35 | % |
| 36 | % |
| 37 | */ |
| 38 | /* |
| 39 | Include declarations. |
| 40 | */ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 41 | #include "MagickCore/studio.h" |
cristy | d9ecd04 | 2012-06-17 18:26:12 +0000 | [diff] [blame] | 42 | #include "MagickCore/attribute.h" |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 43 | #include "MagickCore/blob.h" |
| 44 | #include "MagickCore/blob-private.h" |
| 45 | #include "MagickCore/cache.h" |
| 46 | #include "MagickCore/color-private.h" |
| 47 | #include "MagickCore/colormap.h" |
| 48 | #include "MagickCore/colorspace.h" |
cristy | 510d06a | 2011-07-06 23:43:54 +0000 | [diff] [blame] | 49 | #include "MagickCore/colorspace-private.h" |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 50 | #include "MagickCore/exception.h" |
| 51 | #include "MagickCore/exception-private.h" |
| 52 | #include "MagickCore/image.h" |
| 53 | #include "MagickCore/image-private.h" |
| 54 | #include "MagickCore/list.h" |
| 55 | #include "MagickCore/magick.h" |
| 56 | #include "MagickCore/memory_.h" |
| 57 | #include "MagickCore/monitor.h" |
| 58 | #include "MagickCore/monitor-private.h" |
| 59 | #include "MagickCore/pixel-accessor.h" |
| 60 | #include "MagickCore/quantum-private.h" |
| 61 | #include "MagickCore/static.h" |
| 62 | #include "MagickCore/string_.h" |
| 63 | #include "MagickCore/module.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 64 | |
| 65 | /* |
| 66 | Forward declarations. |
| 67 | */ |
| 68 | static MagickBooleanType |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 69 | WriteOTBImage(const ImageInfo *,Image *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 70 | |
| 71 | /* |
| 72 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 73 | % % |
| 74 | % % |
| 75 | % % |
| 76 | % R e a d O T B I m a g e % |
| 77 | % % |
| 78 | % % |
| 79 | % % |
| 80 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 81 | % |
| 82 | % ReadOTBImage() reads a on-the-air (level 0) bitmap and returns it. It |
| 83 | % allocates the memory necessary for the new Image structure and returns a |
| 84 | % pointer to the new image. |
| 85 | % |
| 86 | % The format of the ReadOTBImage method is: |
| 87 | % |
| 88 | % Image *ReadOTBImage(const ImageInfo *image_info,ExceptionInfo *exception) |
| 89 | % |
| 90 | % A description of each parameter follows: |
| 91 | % |
| 92 | % o image_info: the image info. |
| 93 | % |
| 94 | % o exception: return any errors or warnings in this structure. |
| 95 | % |
| 96 | % |
| 97 | */ |
| 98 | static Image *ReadOTBImage(const ImageInfo *image_info,ExceptionInfo *exception) |
| 99 | { |
| 100 | #define GetBit(a,i) (((a) >> (i)) & 1L) |
| 101 | |
| 102 | Image |
| 103 | *image; |
| 104 | |
| 105 | int |
| 106 | byte; |
| 107 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 108 | MagickBooleanType |
| 109 | status; |
| 110 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 111 | register ssize_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 112 | x; |
| 113 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 114 | register Quantum |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 115 | *q; |
| 116 | |
cristy | aff6d80 | 2011-04-26 01:46:31 +0000 | [diff] [blame] | 117 | ssize_t |
| 118 | y; |
| 119 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 120 | unsigned char |
| 121 | bit, |
| 122 | info, |
| 123 | depth; |
| 124 | |
| 125 | /* |
| 126 | Open image file. |
| 127 | */ |
| 128 | assert(image_info != (const ImageInfo *) NULL); |
| 129 | assert(image_info->signature == MagickSignature); |
| 130 | if (image_info->debug != MagickFalse) |
| 131 | (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", |
| 132 | image_info->filename); |
| 133 | assert(exception != (ExceptionInfo *) NULL); |
| 134 | assert(exception->signature == MagickSignature); |
cristy | 9950d57 | 2011-10-01 18:22:35 +0000 | [diff] [blame] | 135 | image=AcquireImage(image_info,exception); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 136 | status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); |
| 137 | if (status == MagickFalse) |
| 138 | { |
| 139 | image=DestroyImageList(image); |
| 140 | return((Image *) NULL); |
| 141 | } |
| 142 | /* |
| 143 | Initialize image structure. |
| 144 | */ |
| 145 | info=(unsigned char) ReadBlobByte(image); |
| 146 | if (GetBit(info,4) == 0) |
| 147 | { |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 148 | image->columns=(size_t) ReadBlobByte(image); |
| 149 | image->rows=(size_t) ReadBlobByte(image); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 150 | } |
| 151 | else |
| 152 | { |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 153 | image->columns=(size_t) ReadBlobMSBShort(image); |
| 154 | image->rows=(size_t) ReadBlobMSBShort(image); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 155 | } |
| 156 | if ((image->columns == 0) || (image->rows == 0)) |
| 157 | ThrowReaderException(CorruptImageError,"ImproperImageHeader"); |
| 158 | depth=(unsigned char) ReadBlobByte(image); |
| 159 | if (depth != 1) |
| 160 | ThrowReaderException(CoderError,"OnlyLevelZerofilesSupported"); |
cristy | 018f07f | 2011-09-04 21:15:19 +0000 | [diff] [blame] | 161 | if (AcquireImageColormap(image,2,exception) == MagickFalse) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 162 | ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); |
| 163 | if (image_info->ping != MagickFalse) |
| 164 | { |
| 165 | (void) CloseBlob(image); |
| 166 | return(GetFirstImageInList(image)); |
| 167 | } |
| 168 | /* |
| 169 | Convert bi-level image to pixel packets. |
| 170 | */ |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 171 | for (y=0; y < (ssize_t) image->rows; y++) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 172 | { |
| 173 | q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); |
cristy | acd2ed2 | 2011-08-30 01:44:23 +0000 | [diff] [blame] | 174 | if (q == (Quantum *) NULL) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 175 | break; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 176 | bit=0; |
| 177 | byte=0; |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 178 | for (x=0; x < (ssize_t) image->columns; x++) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 179 | { |
| 180 | if (bit == 0) |
| 181 | { |
| 182 | byte=ReadBlobByte(image); |
| 183 | if (byte == EOF) |
| 184 | ThrowReaderException(CorruptImageError,"CorruptImage"); |
| 185 | } |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 186 | SetPixelIndex(image,(byte & (0x01 << (7-bit))) ? 0x00 : 0x01,q); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 187 | bit++; |
| 188 | if (bit == 8) |
| 189 | bit=0; |
cristy | ed23157 | 2011-07-14 02:18:59 +0000 | [diff] [blame] | 190 | q+=GetPixelChannels(image); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 191 | } |
| 192 | if (SyncAuthenticPixels(image,exception) == MagickFalse) |
| 193 | break; |
| 194 | if (image->previous == (Image *) NULL) |
| 195 | { |
cristy | cee9711 | 2010-05-28 00:44:52 +0000 | [diff] [blame] | 196 | status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, |
| 197 | image->rows); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 198 | if (status == MagickFalse) |
| 199 | break; |
| 200 | } |
| 201 | } |
cristy | ea1a8aa | 2011-10-20 13:24:06 +0000 | [diff] [blame] | 202 | (void) SyncImage(image,exception); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 203 | if (EOFBlob(image) != MagickFalse) |
| 204 | ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", |
| 205 | image->filename); |
| 206 | (void) CloseBlob(image); |
| 207 | return(GetFirstImageInList(image)); |
| 208 | } |
| 209 | |
| 210 | /* |
| 211 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 212 | % % |
| 213 | % % |
| 214 | % % |
| 215 | % R e g i s t e r O T B I m a g e % |
| 216 | % % |
| 217 | % % |
| 218 | % % |
| 219 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 220 | % |
| 221 | % RegisterOTBImage() adds attributes for the OTB image format to |
| 222 | % the list of supported formats. The attributes include the image format |
| 223 | % tag, a method to read and/or write the format, whether the format |
| 224 | % supports the saving of more than one frame to the same file or blob, |
| 225 | % whether the format supports native in-memory I/O, and a brief |
| 226 | % description of the format. |
| 227 | % |
| 228 | % The format of the RegisterOTBImage method is: |
| 229 | % |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 230 | % size_t RegisterOTBImage(void) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 231 | % |
| 232 | */ |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 233 | ModuleExport size_t RegisterOTBImage(void) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 234 | { |
| 235 | MagickInfo |
| 236 | *entry; |
| 237 | |
| 238 | entry=SetMagickInfo("OTB"); |
| 239 | entry->decoder=(DecodeImageHandler *) ReadOTBImage; |
| 240 | entry->encoder=(EncodeImageHandler *) WriteOTBImage; |
| 241 | entry->adjoin=MagickFalse; |
| 242 | entry->description=ConstantString("On-the-air bitmap"); |
| 243 | entry->module=ConstantString("OTB"); |
| 244 | (void) RegisterMagickInfo(entry); |
| 245 | return(MagickImageCoderSignature); |
| 246 | } |
| 247 | |
| 248 | /* |
| 249 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 250 | % % |
| 251 | % % |
| 252 | % % |
| 253 | % U n r e g i s t e r O T B I m a g e % |
| 254 | % % |
| 255 | % % |
| 256 | % % |
| 257 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 258 | % |
| 259 | % UnregisterOTBImage() removes format registrations made by the |
| 260 | % OTB module from the list of supported formats. |
| 261 | % |
| 262 | % The format of the UnregisterOTBImage method is: |
| 263 | % |
| 264 | % UnregisterOTBImage(void) |
| 265 | % |
| 266 | */ |
| 267 | ModuleExport void UnregisterOTBImage(void) |
| 268 | { |
| 269 | (void) UnregisterMagickInfo("OTB"); |
| 270 | } |
| 271 | |
| 272 | /* |
| 273 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 274 | % % |
| 275 | % % |
| 276 | % % |
| 277 | % W r i t e O T B I m a g e % |
| 278 | % % |
| 279 | % % |
| 280 | % % |
| 281 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 282 | % |
| 283 | % WriteOTBImage() writes an image to a file in the On-the-air Bitmap |
| 284 | % (level 0) image format. |
| 285 | % |
| 286 | % The format of the WriteOTBImage method is: |
| 287 | % |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 288 | % MagickBooleanType WriteOTBImage(const ImageInfo *image_info, |
| 289 | % Image *image,ExceptionInfo *exception) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 290 | % |
| 291 | % A description of each parameter follows. |
| 292 | % |
| 293 | % o image_info: the image info. |
| 294 | % |
| 295 | % o image: The image. |
| 296 | % |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 297 | % o exception: return any errors or warnings in this structure. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 298 | % |
| 299 | */ |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 300 | static MagickBooleanType WriteOTBImage(const ImageInfo *image_info,Image *image, |
| 301 | ExceptionInfo *exception) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 302 | { |
| 303 | #define SetBit(a,i,set) \ |
| 304 | a=(unsigned char) ((set) ? (a) | (1L << (i)) : (a) & ~(1L << (i))) |
| 305 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 306 | MagickBooleanType |
| 307 | status; |
| 308 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 309 | register const Quantum |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 310 | *p; |
| 311 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 312 | register ssize_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 313 | x; |
| 314 | |
cristy | aff6d80 | 2011-04-26 01:46:31 +0000 | [diff] [blame] | 315 | ssize_t |
| 316 | y; |
| 317 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 318 | unsigned char |
| 319 | bit, |
| 320 | byte, |
| 321 | info; |
| 322 | |
| 323 | /* |
| 324 | Open output image file. |
| 325 | */ |
| 326 | assert(image_info != (const ImageInfo *) NULL); |
| 327 | assert(image_info->signature == MagickSignature); |
| 328 | assert(image != (Image *) NULL); |
| 329 | assert(image->signature == MagickSignature); |
| 330 | if (image->debug != MagickFalse) |
| 331 | (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); |
cristy | 3a37efd | 2011-08-28 20:31:03 +0000 | [diff] [blame] | 332 | assert(exception != (ExceptionInfo *) NULL); |
| 333 | assert(exception->signature == MagickSignature); |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 334 | status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 335 | if (status == MagickFalse) |
| 336 | return(status); |
cristy | 3d9f5ba | 2012-06-26 13:37:31 +0000 | [diff] [blame] | 337 | if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse) |
cristy | 8d95109 | 2012-02-08 18:54:56 +0000 | [diff] [blame] | 338 | (void) TransformImageColorspace(image,sRGBColorspace,exception); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 339 | /* |
| 340 | Convert image to a bi-level image. |
| 341 | */ |
cristy | 018f07f | 2011-09-04 21:15:19 +0000 | [diff] [blame] | 342 | (void) SetImageType(image,BilevelType,exception); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 343 | info=0; |
| 344 | if ((image->columns >= 256) || (image->rows >= 256)) |
| 345 | SetBit(info,4,1); |
| 346 | (void) WriteBlobByte(image,info); |
| 347 | if ((image->columns >= 256) || (image->rows >= 256)) |
| 348 | { |
| 349 | (void) WriteBlobMSBShort(image,(unsigned short) image->columns); |
| 350 | (void) WriteBlobMSBShort(image,(unsigned short) image->rows); |
| 351 | } |
| 352 | else |
| 353 | { |
| 354 | (void) WriteBlobByte(image,(unsigned char) image->columns); |
| 355 | (void) WriteBlobByte(image,(unsigned char) image->rows); |
| 356 | } |
| 357 | (void) WriteBlobByte(image,1); /* depth */ |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 358 | for (y=0; y < (ssize_t) image->rows; y++) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 359 | { |
cristy | 1e178e7 | 2011-08-28 19:44:34 +0000 | [diff] [blame] | 360 | p=GetVirtualPixels(image,0,y,image->columns,1,exception); |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 361 | if (p == (const Quantum *) NULL) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 362 | break; |
| 363 | bit=0; |
| 364 | byte=0; |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 365 | for (x=0; x < (ssize_t) image->columns; x++) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 366 | { |
cristy | 6e963d8 | 2012-06-19 15:23:24 +0000 | [diff] [blame] | 367 | if (GetPixelIntensity(image,p) < (QuantumRange/2.0)) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 368 | byte|=0x1 << (7-bit); |
| 369 | bit++; |
| 370 | if (bit == 8) |
| 371 | { |
| 372 | (void) WriteBlobByte(image,byte); |
| 373 | bit=0; |
| 374 | byte=0; |
| 375 | } |
cristy | ed23157 | 2011-07-14 02:18:59 +0000 | [diff] [blame] | 376 | p+=GetPixelChannels(image); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 377 | } |
| 378 | if (bit != 0) |
| 379 | (void) WriteBlobByte(image,byte); |
| 380 | if (image->previous == (Image *) NULL) |
| 381 | { |
cristy | cee9711 | 2010-05-28 00:44:52 +0000 | [diff] [blame] | 382 | status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, |
cristy | aff6d80 | 2011-04-26 01:46:31 +0000 | [diff] [blame] | 383 | image->rows); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 384 | if (status == MagickFalse) |
| 385 | break; |
| 386 | } |
| 387 | } |
| 388 | (void) CloseBlob(image); |
| 389 | return(MagickTrue); |
| 390 | } |