Changeset 11590 for ImageMagick/trunk
- Timestamp:
- 07/07/08 17:19:24 (7 weeks ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 18 modified
-
coders/caption.c (modified) (1 diff)
-
coders/clipboard.c (modified) (1 diff)
-
coders/dng.c (modified) (16 diffs)
-
coders/gradient.c (modified) (1 diff)
-
coders/histogram.c (modified) (1 diff)
-
coders/label.c (modified) (1 diff)
-
coders/map.c (modified) (1 diff)
-
coders/matte.c (modified) (1 diff)
-
coders/null.c (modified) (1 diff)
-
coders/plasma.c (modified) (2 diffs)
-
coders/preview.c (modified) (1 diff)
-
coders/stegano.c (modified) (1 diff)
-
coders/tile.c (modified) (1 diff)
-
coders/vid.c (modified) (1 diff)
-
coders/x.c (modified) (1 diff)
-
coders/xc.c (modified) (1 diff)
-
magick/image.c (modified) (4 diffs)
-
magick/magick.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/caption.c
r11047 r11590 244 244 entry->decoder=(DecodeImageHandler *) ReadCAPTIONImage; 245 245 entry->adjoin=MagickFalse; 246 entry->format_type=ExplicitFormatType; 246 247 entry->description=ConstantString("Image caption"); 247 248 entry->module=ConstantString("CAPTION"); -
ImageMagick/trunk/coders/clipboard.c
r11047 r11590 261 261 #endif 262 262 entry->adjoin=MagickFalse; 263 entry->format_type=ImplicitFormatType; 263 264 entry->description=ConstantString("The system clipboard"); 264 265 entry->module=ConstantString("CLIPBOARD"); -
ImageMagick/trunk/coders/dng.c
r11589 r11590 231 231 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 232 232 entry->blob_support=MagickFalse; 233 entry->format_type=ExplicitFormatType; 233 234 entry->description=ConstantString("Sony Alpha Raw Image Format"); 234 235 entry->module=ConstantString("DNG"); … … 237 238 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 238 239 entry->blob_support=MagickFalse; 240 entry->format_type=ExplicitFormatType; 239 241 entry->description=ConstantString("Digital Negative"); 240 242 entry->module=ConstantString("DNG"); … … 243 245 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 244 246 entry->blob_support=MagickFalse; 247 entry->format_type=ExplicitFormatType; 245 248 entry->description=ConstantString("Canon Digital Camera Raw Image Format"); 246 249 entry->module=ConstantString("DNG"); … … 249 252 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 250 253 entry->blob_support=MagickFalse; 254 entry->format_type=ExplicitFormatType; 251 255 entry->description=ConstantString("Canon Digital Camera Raw Image Format"); 252 256 entry->module=ConstantString("DNG"); … … 255 259 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 256 260 entry->blob_support=MagickFalse; 261 entry->format_type=ExplicitFormatType; 257 262 entry->description=ConstantString("Kodak Digital Camera Raw Image File"); 258 263 entry->module=ConstantString("DNG"); … … 261 266 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 262 267 entry->blob_support=MagickFalse; 268 entry->format_type=ExplicitFormatType; 263 269 entry->description=ConstantString("Epson RAW Format"); 264 270 entry->module=ConstantString("DNG"); … … 267 273 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 268 274 entry->blob_support=MagickFalse; 275 entry->format_type=ExplicitFormatType; 269 276 entry->description=ConstantString("Kodak Digital Camera Raw Image Format"); 270 277 entry->module=ConstantString("DNG"); … … 273 280 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 274 281 entry->blob_support=MagickFalse; 282 entry->format_type=ExplicitFormatType; 275 283 entry->description=ConstantString("Kodak Digital Camera Raw Image Format"); 276 284 entry->module=ConstantString("DNG"); … … 279 287 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 280 288 entry->blob_support=MagickFalse; 289 entry->format_type=ExplicitFormatType; 281 290 entry->description=ConstantString("Sony (Minolta) Raw Image File"); 282 291 entry->module=ConstantString("DNG"); … … 285 294 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 286 295 entry->blob_support=MagickFalse; 296 entry->format_type=ExplicitFormatType; 287 297 entry->description=ConstantString("Nikon Digital SLR Camera Raw Image File"); 288 298 entry->module=ConstantString("DNG"); … … 291 301 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 292 302 entry->blob_support=MagickFalse; 303 entry->format_type=ExplicitFormatType; 293 304 entry->description=ConstantString("Olympus Digital Camera Raw Image File"); 294 305 entry->module=ConstantString("DNG"); … … 297 308 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 298 309 entry->blob_support=MagickFalse; 310 entry->format_type=ExplicitFormatType; 299 311 entry->description=ConstantString("Pentax Electronic File"); 300 312 entry->module=ConstantString("DNG"); … … 303 315 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 304 316 entry->blob_support=MagickFalse; 317 entry->format_type=ExplicitFormatType; 305 318 entry->description=ConstantString("Fuji CCD-RAW Graphic File"); 306 319 entry->module=ConstantString("DNG"); … … 309 322 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 310 323 entry->blob_support=MagickFalse; 324 entry->format_type=ExplicitFormatType; 311 325 entry->description=ConstantString("Sony Raw Format"); 312 326 entry->module=ConstantString("DNG"); … … 315 329 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 316 330 entry->blob_support=MagickFalse; 331 entry->format_type=ExplicitFormatType; 317 332 entry->description=ConstantString("Sony Raw Format 2"); 318 333 entry->module=ConstantString("DNG"); … … 321 336 entry->decoder=(DecodeImageHandler *) ReadDNGImage; 322 337 entry->blob_support=MagickFalse; 338 entry->format_type=ExplicitFormatType; 323 339 entry->description=ConstantString("Sigma Camera RAW Picture File"); 324 340 entry->module=ConstantString("DNG"); -
ImageMagick/trunk/coders/gradient.c
r11515 r11590 173 173 entry->raw=MagickTrue; 174 174 entry->endian_support=MagickTrue; 175 entry->description=ConstantString("Gradual passing from one shade to another"); 175 entry->format_type=ImplicitFormatType; 176 entry->description=ConstantString("Gradual passing from one shade to " 177 "another"); 176 178 entry->module=ConstantString("GRADIENT"); 177 179 (void) RegisterMagickInfo(entry); -
ImageMagick/trunk/coders/histogram.c
r11356 r11590 98 98 entry->encoder=(EncodeImageHandler *) WriteHISTOGRAMImage; 99 99 entry->adjoin=MagickFalse; 100 entry->format_type=ImplicitFormatType; 100 101 entry->description=ConstantString("Histogram of the image"); 101 102 entry->module=ConstantString("HISTOGRAM"); -
ImageMagick/trunk/coders/label.c
r11047 r11590 227 227 entry->decoder=(DecodeImageHandler *) ReadLABELImage; 228 228 entry->adjoin=MagickFalse; 229 entry->format_type=ImplicitFormatType; 229 230 entry->description=ConstantString("Image label"); 230 231 entry->module=ConstantString("LABEL"); -
ImageMagick/trunk/coders/map.c
r11308 r11590 278 278 entry->encoder=(EncodeImageHandler *) WriteMAPImage; 279 279 entry->adjoin=MagickFalse; 280 entry->format_type=ExplicitFormatType; 280 281 entry->raw=MagickTrue; 281 282 entry->endian_support=MagickTrue; -
ImageMagick/trunk/coders/matte.c
r9589 r11590 92 92 entry=SetMagickInfo("MATTE"); 93 93 entry->encoder=(EncodeImageHandler *) WriteMATTEImage; 94 entry->format_type=ExplicitFormatType; 94 95 entry->description=ConstantString("MATTE format"); 95 96 entry->module=ConstantString("MATTE"); -
ImageMagick/trunk/coders/null.c
r11047 r11590 190 190 entry->encoder=(EncodeImageHandler *) WriteNULLImage; 191 191 entry->adjoin=MagickFalse; 192 entry->format_type=ImplicitFormatType; 192 193 entry->description=ConstantString("Constant image of uniform color"); 193 194 entry->module=ConstantString("NULL"); -
ImageMagick/trunk/coders/plasma.c
r11461 r11590 243 243 entry->decoder=(DecodeImageHandler *) ReadPlasmaImage; 244 244 entry->adjoin=MagickFalse; 245 entry->format_type=ImplicitFormatType; 245 246 entry->description=ConstantString("Plasma fractal image"); 246 247 entry->module=ConstantString("PLASMA"); … … 249 250 entry->decoder=(DecodeImageHandler *) ReadPlasmaImage; 250 251 entry->adjoin=MagickFalse; 252 entry->format_type=ImplicitFormatType; 251 253 entry->description=ConstantString("Plasma fractal image"); 252 254 entry->module=ConstantString("PLASMA"); -
ImageMagick/trunk/coders/preview.c
r9589 r11590 101 101 entry->encoder=(EncodeImageHandler *) WritePreviewImage; 102 102 entry->adjoin=MagickFalse; 103 entry->format_type=ImplicitFormatType; 103 104 entry->description=ConstantString( 104 105 "Show a preview an image enhancement, effect, or f/x"); -
ImageMagick/trunk/coders/stegano.c
r11047 r11590 243 243 entry=SetMagickInfo("STEGANO"); 244 244 entry->decoder=(DecodeImageHandler *) ReadSTEGANOImage; 245 entry->format_type=ImplicitFormatType; 245 246 entry->description=ConstantString("Steganographic image"); 246 247 entry->module=ConstantString("STEGANO"); -
ImageMagick/trunk/coders/tile.c
r11047 r11590 158 158 entry=SetMagickInfo("TILE"); 159 159 entry->decoder=(DecodeImageHandler *) ReadTILEImage; 160 entry->format_type=ImplicitFormatType; 160 161 entry->raw=MagickTrue; 161 162 entry->endian_support=MagickTrue; -
ImageMagick/trunk/coders/vid.c
r11047 r11590 247 247 entry->decoder=(DecodeImageHandler *) ReadVIDImage; 248 248 entry->encoder=(EncodeImageHandler *) WriteVIDImage; 249 entry->format_type=ImplicitFormatType; 249 250 entry->description=ConstantString("Visual Image Directory"); 250 251 entry->module=ConstantString("VID"); -
ImageMagick/trunk/coders/x.c
r9589 r11590 145 145 entry->encoder=(EncodeImageHandler *) WriteXImage; 146 146 #endif 147 entry->format_type=ImplicitFormatType; 147 148 entry->description=ConstantString("X Image"); 148 149 entry->module=ConstantString("X"); -
ImageMagick/trunk/coders/xc.c
r11047 r11590 202 202 entry->decoder=(DecodeImageHandler *) ReadXCImage; 203 203 entry->adjoin=MagickFalse; 204 entry->format_type=ImplicitFormatType; 204 205 entry->raw=MagickTrue; 205 206 entry->endian_support=MagickTrue; -
ImageMagick/trunk/magick/image.c
r11518 r11590 3533 3533 if (*extension != '\0') 3534 3534 { 3535 Magick BooleanType3536 explicit;3535 MagickFormatType 3536 format_type; 3537 3537 3538 3538 register long … … 3540 3540 3541 3541 static const char 3542 * explicit_formats[] =3542 *format_type_formats[] = 3543 3543 { 3544 3544 "AUTOTRACE", 3545 3545 "BROWSE", 3546 3546 "CAPTION", 3547 "CLIPBOARD",3548 3547 "DCRAW", 3549 3548 "EDIT", 3550 3549 "FRACTAL", 3551 "GRADIENT",3552 "HISTOGRAM",3553 3550 "LABEL", 3554 3551 "LAUNCH", 3555 "MAP",3556 "MATTE",3557 3552 "MPEG:ENCODE", 3558 "NULL",3559 "PLASMA",3560 3553 "PREVIEW", 3561 3554 "PRINT", … … 3567 3560 "SCAN", 3568 3561 "SHOW", 3569 "STEGANO",3570 "TILE",3571 3562 "TMP", 3572 "VID",3573 3563 "WIN", 3574 "X",3575 "XC",3576 3564 (char *) NULL 3577 3565 }; … … 3583 3571 LocaleUpper(magic); 3584 3572 /* 3585 Look for explicitimage formats.3573 Look for format_type image formats. 3586 3574 */ 3587 explicit=MagickTrue;3575 format_type=ImplicitFormatType; 3588 3576 if ((LocaleNCompare(image_info->magick,"SGI",3) == 0) && 3589 3577 (LocaleCompare(magic,"RGB") == 0)) 3590 explicit=MagickFalse;3578 format_type=ExplicitFormatType; 3591 3579 i=0; 3592 while (( explicit!= MagickFalse) &&3593 ( explicit_formats[i] != (char *) NULL))3580 while ((format_type != MagickFalse) && 3581 (format_type_formats[i] != (char *) NULL)) 3594 3582 { 3595 if ((*magic == * explicit_formats[i]) &&3596 (LocaleCompare(magic, explicit_formats[i]) == 0))3597 explicit=MagickFalse;3583 if ((*magic == *format_type_formats[i]) && 3584 (LocaleCompare(magic,format_type_formats[i]) == 0)) 3585 format_type=ExplicitFormatType; 3598 3586 i++; 3599 3587 } 3600 if (explicit != MagickFalse) 3588 magick_info=GetMagickInfo(magic,&sans_exception); 3589 if ((magick_info != (const MagickInfo *) NULL) && 3590 (magick_info->format_type != UndefinedFormatType)) 3591 format_type=magick_info->format_type; 3592 if (format_type == ImplicitFormatType) 3601 3593 (void) CopyMagickString(image_info->magick,magic,MaxTextExtent); 3602 if ((LocaleCompare(magic,"CR2") == 0) || 3603 (LocaleCompare(magic,"DNG") == 0) || 3604 (LocaleCompare(magic,"NEF") == 0)) 3605 image_info->affirm=MagickTrue; /* Raw camera masquerading as TIFF */ 3594 else 3595 if (format_type == ExplicitFormatType) 3596 image_info->affirm=MagickTrue; 3606 3597 } 3607 3598 /* -
ImageMagick/trunk/magick/magick.h
r8839 r11590 22 22 extern "C" { 23 23 #endif 24 25 typedef enum 26 { 27 UndefinedFormatType, 28 ImplicitFormatType, 29 ExplicitFormatType 30 } MagickFormatType; 24 31 25 32 typedef enum … … 69 76 blob_support, 70 77 seekable_stream; 78 79 MagickFormatType 80 format_type; 71 81 72 82 MagickStatusType
