Skip to content

Commit

Permalink
Change order of ImageType values
Browse files Browse the repository at this point in the history
  • Loading branch information
piponazo committed Feb 13, 2022
1 parent db8df61 commit 9fa13d0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
53 changes: 28 additions & 25 deletions include/exiv2/image_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,40 @@
#ifndef IMAGE_TYPES_H
#define IMAGE_TYPES_H

namespace Exiv2 {
namespace Exiv2
{
/// Supported Image Formats
enum class ImageType{
none, ///<
jpeg, ///<
exv, ///<
crw, ///<
tiff, ///<
enum class ImageType
{
none,
arw,
bigtiff,
bmff,
bmp, ///< Windows bitmap
cr2,
crw,
dng,
eps,
exv,
gif, ///< GIF
jp2, ///< JPEG-2000
jpeg,
mrw,
nef,
orf,
pef,
arw,
png,
pgf,
psd, ///< Photoshop (PSD)
raf,
rw2,
sr2,
srw,
mrw, ///<
png, ///<
cr2, ///<
raf, ///<
orf, ///<
tga,
tiff,
webp,
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
1 change: 1 addition & 0 deletions src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ namespace {
AccessMode commentSupport_;
};

/// \todo Use std::unordered_map for implementing the registry. Avoid to use ImageType::none
const Registry registry[] = {
//image type creation fct type check Exif mode IPTC mode XMP mode Comment mode
//--------------- --------------- ---------- ----------- ----------- ----------- ------------
Expand Down

0 comments on commit 9fa13d0

Please sign in to comment.