% Read the Digital Negative Image Format %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% July 1999 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
/*
Include declarations.
*/
-#include "magick/studio.h"
-#include "magick/blob.h"
-#include "magick/blob-private.h"
-#include "magick/constitute.h"
-#include "magick/delegate.h"
-#include "magick/exception.h"
-#include "magick/exception-private.h"
-#include "magick/geometry.h"
-#include "magick/image.h"
-#include "magick/image-private.h"
-#include "magick/layer.h"
-#include "magick/list.h"
-#include "magick/log.h"
-#include "magick/magick.h"
-#include "magick/memory_.h"
-#include "magick/resource_.h"
-#include "magick/quantum-private.h"
-#include "magick/static.h"
-#include "magick/string_.h"
-#include "magick/module.h"
-#include "magick/transform.h"
-#include "magick/utility.h"
-#include "magick/xml-tree.h"
+#include "MagickCore/studio.h"
+#include "MagickCore/blob.h"
+#include "MagickCore/blob-private.h"
+#include "MagickCore/constitute.h"
+#include "MagickCore/delegate.h"
+#include "MagickCore/exception.h"
+#include "MagickCore/exception-private.h"
+#include "MagickCore/geometry.h"
+#include "MagickCore/image.h"
+#include "MagickCore/image-private.h"
+#include "MagickCore/layer.h"
+#include "MagickCore/list.h"
+#include "MagickCore/log.h"
+#include "MagickCore/magick.h"
+#include "MagickCore/memory_.h"
+#include "MagickCore/resource_.h"
+#include "MagickCore/quantum-private.h"
+#include "MagickCore/static.h"
+#include "MagickCore/string_.h"
+#include "MagickCore/module.h"
+#include "MagickCore/transform.h"
+#include "MagickCore/utility.h"
+#include "MagickCore/xml-tree.h"
+#include "MagickCore/xml-tree-private.h"
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickSignature);
- image=AcquireImage(image_info);
+ image=AcquireImage(image_info,exception);
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
{
/*
Convert DNG to PPM with delegate.
*/
- image=AcquireImage(image_info);
+ image=AcquireImage(image_info,exception);
read_info=CloneImageInfo(image_info);
+ SetImageInfoBlob(read_info,(void *) NULL,0);
(void) InvokeDelegate(read_info,image,"dng:decode",(char *) NULL,exception);
image=DestroyImage(image);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"%s.png",
+ (void) FormatLocaleString(read_info->filename,MaxTextExtent,"%s.png",
read_info->unique);
sans_exception=AcquireExceptionInfo();
image=ReadImage(read_info,sans_exception);
sans_exception=DestroyExceptionInfo(sans_exception);
if (image == (Image *) NULL)
{
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"%s.ppm",
+ (void) FormatLocaleString(read_info->filename,MaxTextExtent,"%s.ppm",
read_info->unique);
image=ReadImage(read_info,exception);
}
*sans;
(void) CopyMagickString(image->magick,read_info->magick,MaxTextExtent);
- (void) FormatMagickString(filename,MaxTextExtent,"%s.ufraw",
+ (void) FormatLocaleString(filename,MaxTextExtent,"%s.ufraw",
read_info->unique);
sans=AcquireExceptionInfo();
xml=FileToString(filename,MaxTextExtent,sans);
if (xml != (char *) NULL)
{
XMLTreeInfo
- *ufraw;
+ *ufraw;
/*
Inject
tag=GetXMLTreeTag(next);
if (tag == (char *) NULL)
tag="unknown";
- (void) FormatMagickString(property,MaxTextExtent,"dng:%s",tag);
+ (void) FormatLocaleString(property,MaxTextExtent,"dng:%s",tag);
content=ConstantString(GetXMLTreeContent(next));
StripString(content);
if ((LocaleCompare(tag,"log") != 0) &&
entry->description=ConstantString("Kodak Digital Camera Raw Image Format");
entry->module=ConstantString("DNG");
(void) RegisterMagickInfo(entry);
+ entry=SetMagickInfo("MEF");
+ entry->decoder=(DecodeImageHandler *) ReadDNGImage;
+ entry->blob_support=MagickFalse;
+ entry->seekable_stream=MagickTrue;
+ entry->format_type=ExplicitFormatType;
+ entry->description=ConstantString("Mamiya Raw Image File");
+ entry->module=ConstantString("DNG");
+ (void) RegisterMagickInfo(entry);
entry=SetMagickInfo("MRW");
entry->decoder=(DecodeImageHandler *) ReadDNGImage;
entry->blob_support=MagickFalse;
entry->description=ConstantString("Nikon Digital SLR Camera Raw Image File");
entry->module=ConstantString("DNG");
(void) RegisterMagickInfo(entry);
+ entry=SetMagickInfo("NRW");
+ entry->decoder=(DecodeImageHandler *) ReadDNGImage;
+ entry->blob_support=MagickFalse;
+ entry->seekable_stream=MagickTrue;
+ entry->format_type=ExplicitFormatType;
+ entry->description=ConstantString("Nikon Digital SLR Camera Raw Image File");
+ entry->module=ConstantString("DNG");
+ (void) RegisterMagickInfo(entry);
entry=SetMagickInfo("ORF");
entry->decoder=(DecodeImageHandler *) ReadDNGImage;
entry->blob_support=MagickFalse;
entry->description=ConstantString("Fuji CCD-RAW Graphic File");
entry->module=ConstantString("DNG");
(void) RegisterMagickInfo(entry);
+ entry=SetMagickInfo("RMF");
+ entry->decoder=(DecodeImageHandler *) ReadDNGImage;
+ entry->blob_support=MagickFalse;
+ entry->seekable_stream=MagickTrue;
+ entry->format_type=ExplicitFormatType;
+ entry->description=ConstantString("Raw Media Format");
+ entry->module=ConstantString("DNG");
+ (void) RegisterMagickInfo(entry);
+ entry=SetMagickInfo("RW2");
+ entry->decoder=(DecodeImageHandler *) ReadDNGImage;
+ entry->blob_support=MagickFalse;
+ entry->seekable_stream=MagickTrue;
+ entry->format_type=ExplicitFormatType;
+ entry->description=ConstantString("Panasonic Lumix Raw Image");
+ entry->module=ConstantString("DNG");
+ (void) RegisterMagickInfo(entry);
entry=SetMagickInfo("SRF");
entry->decoder=(DecodeImageHandler *) ReadDNGImage;
entry->blob_support=MagickFalse;
(void) UnregisterMagickInfo("X3F");
(void) UnregisterMagickInfo("SR2");
(void) UnregisterMagickInfo("SRF");
+ (void) UnregisterMagickInfo("RW2");
+ (void) UnregisterMagickInfo("RMF");
(void) UnregisterMagickInfo("RAF");
(void) UnregisterMagickInfo("PEF");
(void) UnregisterMagickInfo("ORF");
+ (void) UnregisterMagickInfo("NRW");
(void) UnregisterMagickInfo("NEF");
(void) UnregisterMagickInfo("MRW");
+ (void) UnregisterMagickInfo("MEF");
(void) UnregisterMagickInfo("K25");
(void) UnregisterMagickInfo("KDC");
(void) UnregisterMagickInfo("DCR");