diff options
author | Hubert Figuière <hub@figuiere.net> | 2020-06-28 21:41:56 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2020-06-28 21:41:56 -0400 |
commit | 625fe2256f9fea07dfebb0a34088efc9dd72ee82 (patch) | |
tree | fbfc5d8e253eada2e6fe1c73c5efe41198174de5 | |
parent | 5500ff8601202730b27dace8f99a2fede3673a27 (diff) |
dng: Added GoPro HERO5, HERO6, HERO7 and HERO8
- Added GoPro to list of vendors for detection.
- Added vendor ID
-rw-r--r-- | include/libopenraw/cameraids.h | 11 | ||||
-rw-r--r-- | lib/dngfile.cpp | 8 | ||||
-rw-r--r-- | lib/rawfile.cpp | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/include/libopenraw/cameraids.h b/include/libopenraw/cameraids.h index 0b2d737..f29704f 100644 --- a/include/libopenraw/cameraids.h +++ b/include/libopenraw/cameraids.h @@ -54,6 +54,7 @@ enum { OR_TYPEID_VENDOR_XIAOYI = 16, OR_TYPEID_VENDOR_APPLE = 17, OR_TYPEID_VENDOR_SIGMA = 18, + OR_TYPEID_VENDOR_GOPRO = 19, _OR_TYPEID_VENDOR_LAST }; @@ -755,6 +756,16 @@ enum { OR_TYPEID_SIGMA_FP = 1, _OR_TYPEID_SIGMA_LAST }; + +enum { + OR_TYPEID_GOPRO_UNKNOWN = 0, + OR_TYPEID_GOPRO_HERO5_BLACK = 1, + OR_TYPEID_GOPRO_HERO6_BLACK = 2, + OR_TYPEID_GOPRO_HERO7_BLACK = 3, + OR_TYPEID_GOPRO_HERO8_BLACK = 4, + + _OR_TYPEID_GOPRO_LAST +}; #ifdef __cplusplus } #endif diff --git a/lib/dngfile.cpp b/lib/dngfile.cpp index 3a1748f..691ffbf 100644 --- a/lib/dngfile.cpp +++ b/lib/dngfile.cpp @@ -163,6 +163,14 @@ const IfdFile::camera_ids_t DngFile::s_def[] = { OR_TYPEID_BLACKMAGIC_POCKET_CINEMA) }, { "SIGMA fp", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_SIGMA, OR_TYPEID_SIGMA_FP) }, + { "HERO5 Black", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_GOPRO, + OR_TYPEID_GOPRO_HERO5_BLACK) }, + { "HERO6 Black", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_GOPRO, + OR_TYPEID_GOPRO_HERO6_BLACK) }, + { "HERO7 Black", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_GOPRO, + OR_TYPEID_GOPRO_HERO7_BLACK) }, + { "HERO8 Black", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_GOPRO, + OR_TYPEID_GOPRO_HERO8_BLACK) }, { 0, OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_ADOBE, OR_TYPEID_ADOBE_DNG_GENERIC) } }; diff --git a/lib/rawfile.cpp b/lib/rawfile.cpp index 80cd451..7ff0717 100644 --- a/lib/rawfile.cpp +++ b/lib/rawfile.cpp @@ -715,6 +715,7 @@ const RawFile::camera_ids_t RawFile::s_make[] = { { "FUJIFILM", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_FUJIFILM, 0) }, { "Blackmagic", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_BLACKMAGIC, 0) }, { "SIGMA", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_SIGMA, 0) }, + { "GoPro", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_GOPRO, 0) }, { NULL, 0 } }; |