Skip to content

Commit

Permalink
Made Tags without Exif: prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 23, 2023
1 parent 998fe28 commit f9663c0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/tlIO/RAWRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Copyright (c) 2021-2023 Darby Johnston
// All rights reserved.

//
// Small portions of this code have been borrowed from OpenImageIO.
//

#include <tlIO/RAW.h>

Expand Down Expand Up @@ -113,14 +116,14 @@ namespace tl
tags["Software"] = color.model2;

_getTag("Orientation", sizes.flip);
_getTag("Exif:ISOSpeedRatings", other.iso_speed);
_getTag("ExposureTime", other.shutter);
_getTag("Exif:ShutterSpeedValue",
_getTag("ISO Speed Ratings", other.iso_speed);
_getTag("Exposure Time", other.shutter);
_getTag("Shutter Speed Value",
-std::log2(other.shutter));
_getTag("FNumber", other.aperture);
_getTag("Exif:ApertureValue",
_getTag("Aperture Value",
2.0f * std::log2(other.aperture));
_getTag("Exif:FocalLength", other.focal_len);
_getTag("Focal Length", other.focal_len);

info.pixelType = image::PixelType::RGB_U16;
info.layout.endian = memory::Endian::LSB;
Expand Down

0 comments on commit f9663c0

Please sign in to comment.