File indexing completed on 2024-05-12 05:46:53
0001 /* 0002 * Copyright (c) 2007 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * This library is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Lesser General Public License as published by 0006 * the Free Software Foundation; either version 2.1 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU Lesser General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Lesser General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #include "kis_legacy_importer.h" 0020 0021 /* 0022 struct ExifToKMD { 0023 QString exivPrefix; 0024 QString namespaceUri; 0025 QString name; 0026 }; 0027 0028 0029 static const ExifToKMD mappings[] = { 0030 { "Exif.Image.ImageWidth", "http://ns.adobe.com/tiff/1.0/", "ImageWidth" }, 0031 { "Exif.Image.ImageLength", "http://ns.adobe.com/tiff/1.0/", "ImageLength" }, 0032 { "Exif.Image.BitsPerSample", "http://ns.adobe.com/tiff/1.0/", "BitsPerSample" }, 0033 { "Exif.Image.Compression", "http://ns.adobe.com/tiff/1.0/", "Compression" }, 0034 { "Exif.Image.PhotometricInterpretation", "http://ns.adobe.com/tiff/1.0/", "PhotometricInterpretation" }, 0035 { "Exif.Image.Orientation", "http://ns.adobe.com/tiff/1.0/", "Orientation" }, 0036 { "Exif.Image.SamplesPerPixel", "http://ns.adobe.com/tiff/1.0/", "SamplesPerPixel" }, 0037 { "Exif.Image.PlanarConfiguration", "http://ns.adobe.com/tiff/1.0/", "PlanarConfiguration" }, 0038 { "Exif.Image.YCbCrSubSampling", "http://ns.adobe.com/tiff/1.0/", "YCbCrSubSampling" }, 0039 { "Exif.Image.YCbCrPositioning", "http://ns.adobe.com/tiff/1.0/", "YCbCrPositioning" }, 0040 { "Exif.Image.XResolution", "http://ns.adobe.com/tiff/1.0/", "XResolution" }, 0041 { "Exif.Image.YResolution", "http://ns.adobe.com/tiff/1.0/", "YResolution" }, 0042 { "Exif.Image.ResolutionUnit", "http://ns.adobe.com/tiff/1.0/", "ResolutionUnit" }, 0043 { "Exif.Image.TransferFunction", "http://ns.adobe.com/tiff/1.0/", "TransferFunction" }, 0044 { "Exif.Image.WhitePoint", "http://ns.adobe.com/tiff/1.0/", "WhitePoint" }, 0045 { "Exif.Image.PrimaryChromaticities", "http://ns.adobe.com/tiff/1.0/", "PrimaryChromaticities" }, 0046 { "Exif.Image.YCbCrCoefficients", "http://ns.adobe.com/tiff/1.0/", "YCbCrCoefficients" }, 0047 { "Exif.Image.ReferenceBlackWhite", "http://ns.adobe.com/tiff/1.0/", "ReferenceBlackWhite" }, 0048 { "Exif.Image.DateTime", "", "xmp:ModifyDate" }, 0049 { "Exif.Image.ImageDescription", "", "dc:description" }, 0050 { "Exif.Image.Make", "http://ns.adobe.com/tiff/1.0/", "Make" }, 0051 { "Exif.Image.Model", "http://ns.adobe.com/tiff/1.0/", "Model" }, 0052 { "Exif.Image.Software", "", "xmp:CreatorTool" }, 0053 { "Exif.Image.Artist", "", "dc:creator" }, 0054 { "Exif.Image.Copyright", "", "dc:rights" }, 0055 { "Exif.Photo.ExifVersion", "http://ns.adobe.com/exif/1.0/", "ExifVersion" }, 0056 { "Exif.Photo.FlashpixVersion", "http://ns.adobe.com/exif/1.0/", "FlashpixVersion" }, 0057 { "Exif.Photo.ColorSpace", "http://ns.adobe.com/exif/1.0/", "ColorSpace" }, 0058 { "Exif.Photo.ComponentsConfiguration", "http://ns.adobe.com/exif/1.0/", "ComponentsConfiguration" }, 0059 { "Exif.Photo.CompressedBitsPerPixel", "http://ns.adobe.com/exif/1.0/", "CompressedBitsPerPixel" }, 0060 { "Exif.Photo.PixelXDimension", "http://ns.adobe.com/exif/1.0/", "PixelXDimension" }, 0061 { "Exif.Photo.PixelYDimension", "http://ns.adobe.com/exif/1.0/", "PixelYDimension" }, 0062 { "Exif.Photo.UserComment", "http://ns.adobe.com/exif/1.0/", "UserComment" }, 0063 { "Exif.Photo.RelatedSoundFile", "http://ns.adobe.com/exif/1.0/", "RelatedSoundFile" }, 0064 { "Exif.Photo.DateTimeOriginal", "http://ns.adobe.com/exif/1.0/", "DateTimeOriginal" }, 0065 { "Exif.Photo.DateTimeDigitized", "http://ns.adobe.com/exif/1.0/", "DateTimeDigitized" }, 0066 { "Exif.Photo.ExposureTime", "http://ns.adobe.com/exif/1.0/", "ExposureTime" }, 0067 { "Exif.Photo.FNumber", "http://ns.adobe.com/exif/1.0/", "FNumber" }, 0068 { "Exif.Photo.ExposureProgram", "http://ns.adobe.com/exif/1.0/", "ExposureProgram" }, 0069 { "Exif.Photo.SpectralSensitivity", "http://ns.adobe.com/exif/1.0/", "SpectralSensitivity" }, 0070 { "Exif.Photo.ISOSpeedRatings", "http://ns.adobe.com/exif/1.0/", "ISOSpeedRatings" }, 0071 { "Exif.Photo.OECF", "http://ns.adobe.com/exif/1.0/", "OECF" }, 0072 { "Exif.Photo.ShutterSpeedValue", "http://ns.adobe.com/exif/1.0/", "ShutterSpeedValue" }, 0073 { "Exif.Photo.ApertureValue", "http://ns.adobe.com/exif/1.0/", "ApertureValue" }, 0074 { "Exif.Photo.BrightnessValue", "http://ns.adobe.com/exif/1.0/", "BrightnessValue" }, 0075 { "Exif.Photo.ExposureBiasValue", "http://ns.adobe.com/exif/1.0/", "ExposureBiasValue" }, 0076 { "Exif.Photo.MaxApertureValue", "http://ns.adobe.com/exif/1.0/", "MaxApertureValue" }, 0077 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0078 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0079 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0080 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0081 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0082 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0083 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0084 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0085 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0086 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0087 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0088 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0089 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0090 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" }, 0091 { "Exif.Photo.", "http://ns.adobe.com/exif/1.0/", "" } 0092 };*/