Change order of ImageType values

main
Luis Díaz Más 6 years ago
parent 690dde3440
commit 408d80bce8

@ -21,37 +21,40 @@
#ifndef IMAGE_TYPES_H #ifndef IMAGE_TYPES_H
#define IMAGE_TYPES_H #define IMAGE_TYPES_H
namespace Exiv2 { namespace Exiv2
{
/// Supported Image Formats /// Supported Image Formats
enum class ImageType{ enum class ImageType
none, ///< {
jpeg, ///< none,
exv, ///< arw,
crw, ///< bigtiff,
tiff, ///< bmff,
bmp, ///< Windows bitmap
cr2,
crw,
dng, dng,
eps,
exv,
gif, ///< GIF
jp2, ///< JPEG-2000
jpeg,
mrw,
nef, nef,
orf,
pef, pef,
arw, png,
pgf,
psd, ///< Photoshop (PSD)
raf,
rw2,
sr2, sr2,
srw, srw,
mrw, ///< tga,
png, ///< tiff,
cr2, ///< webp,
raf, ///<
orf, ///<
xmp, ///< XMP sidecar files xmp, ///< XMP sidecar files
gif, ///< GIF
psd, ///< Photoshop (PSD)
tga, ///<
bmp, ///< Windows bitmap
jp2, ///< JPEG-2000
rw2, ///<
pgf, ///<
webp, ///<
eps,
bmff,
}; };
} } // namespace Exiv2
#endif // IMAGE_TYPES_H #endif // IMAGE_TYPES_H

@ -97,6 +97,7 @@ namespace {
AccessMode commentSupport_; AccessMode commentSupport_;
}; };
/// \todo Use std::unordered_map for implementing the registry. Avoid to use ImageType::none
const Registry registry[] = { const Registry registry[] = {
//image type creation fct type check Exif mode IPTC mode XMP mode Comment mode //image type creation fct type check Exif mode IPTC mode XMP mode Comment mode
//--------------- --------------- ---------- ----------- ----------- ----------- ------------ //--------------- --------------- ---------- ----------- ----------- ----------- ------------

Loading…
Cancel
Save