176fd607bSopenharmony_ci/* 276fd607bSopenharmony_ci * Copyright (C) 2023 Huawei Device Co., Ltd. 376fd607bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 476fd607bSopenharmony_ci * you may not use this file except in compliance with the License. 576fd607bSopenharmony_ci * You may obtain a copy of the License at 676fd607bSopenharmony_ci * 776fd607bSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 876fd607bSopenharmony_ci * 976fd607bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1076fd607bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1176fd607bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1276fd607bSopenharmony_ci * See the License for the specific language governing permissions and 1376fd607bSopenharmony_ci * limitations under the License. 1476fd607bSopenharmony_ci */ 1576fd607bSopenharmony_ci 1676fd607bSopenharmony_ci#ifndef OHOS_FILEMANAGEMENT_MEDIA_EXIF_H 1776fd607bSopenharmony_ci#define OHOS_FILEMANAGEMENT_MEDIA_EXIF_H 1876fd607bSopenharmony_ci 1976fd607bSopenharmony_ci#include <string> 2076fd607bSopenharmony_ci 2176fd607bSopenharmony_cinamespace OHOS { 2276fd607bSopenharmony_cinamespace Media { 2376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_BITS_PER_SAMPLE = "BitsPerSample"; 2476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_ORIENTATION = "Orientation"; 2576fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_SOFTWARE = "Software"; 2676fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_IMAGE_LENGTH = "ImageLength"; 2776fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_IMAGE_WIDTH = "ImageWidth"; 2876fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_LATITUDE = "GPSLatitude"; 2976fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_LONGITUDE = "GPSLongitude"; 3076fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_LATITUDE_REF = "GPSLatitudeRef"; 3176fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_LONGITUDE_REF = "GPSLongitudeRef"; 3276fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_ALTITUDE = "GPSAltitude"; 3376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_VERSION_ID = "GPSVersionID"; 3476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_DATE_TIME_ORIGINAL = "DateTimeOriginal"; 3576fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_DATE_TIME_ORIGINAL_FOR_MEDIA = "DateTimeOriginalForMedia"; 3676fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_DATE_TIME_DIGITIZED = "DateTimeDigitized"; 3776fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_EXPOSURE_TIME = "ExposureTime"; 3876fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_EXPOSURE_PROGRAM = "ExposureProgram"; 3976fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_EXPOSURE_MODE = "ExposureMode"; 4076fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_F_NUMBER = "FNumber"; 4176fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_ISO_SPEED_RATINGS = "ISOSpeedRatings"; 4276fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_SCENE_TYPE = "SceneType"; 4376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION = "ImageDescription"; 4476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_MAKE = "Make"; 4576fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_MODEL = "Model"; 4676fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_DATE_TIME = "DateTime"; 4776fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_PHOTO_MODE = "HwMnoteCaptureMode"; 4876fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_SENSITIVITY_TYPE = "SensitivityType"; 4976fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_STANDARD_OUTPUT_SENSITIVITY = "StandardOutputSensitivity"; 5076fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_PHOTOGRAPHIC_SENSITIVITY = "PhotographicSensitivity"; 5176fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_RECOMMENDED_EXPOSURE_INDEX = "RecommendedExposureIndex"; 5276fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_ISO_SPEED = "ISOSpeedRatings"; 5376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_APERTURE_VALUE = "ApertureValue"; 5476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_METERING_MODE = "MeteringMode"; 5576fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_LIGHT_SOURCE = "LightSource"; 5676fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_FLASH = "Flash"; 5776fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_FOCAL_LENGTH = "FocalLength"; 5876fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_MAKER_NOTE = "MakerNote"; 5976fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_USER_COMMENT = "UserComment"; 6076fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_PIXEL_X_DIMENSION = "PixelXDimension"; 6176fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_PIXEL_Y_DIMENSION = "PixelYDimension"; 6276fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_WHITE_BALANCE = "WhiteBalance"; 6376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_DIGITAL_ZOOM_RATIO = "DigitalZoomRatio"; 6476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_FOCAL_LENGTH_IN_35_MM_FILM = "FocalLengthIn35mmFilm"; 6576fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_TIME_STAMP = "GPSTimeStamp"; 6676fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_GPS_DATE_STAMP = "GPSDateStamp"; 6776fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_COMPRESSED_BITS_PER_PIXEL = "CompressedBitsPerPixel"; 6876fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_EXPOSURE_BIAS_VALUE = "ExposureBiasValue"; 6976fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_ISO_SPEED_LATITUDE_ZZZ = "ISOSpeedLatitudezzz"; 7076fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_FRONT_CAMERA = "HwMnoteFrontCamera"; 7176fd607bSopenharmony_ciconst std::string PHOTO_DATA_VIDEO_CUSTOM_INFO = "customInfo"; 7276fd607bSopenharmony_ciconst std::string PHOTO_DATA_VIDEO_COVER_TIME = "com.openharmony.covertime"; 7376fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_OFFSET_TIME_ORIGINAL = "OffsetTimeOriginal"; 7476fd607bSopenharmony_ciconst std::string PHOTO_DATA_IMAGE_SUBSEC_TIME_ORIGINAL = "SubsecTimeOriginal"; 7576fd607bSopenharmony_ci 7676fd607bSopenharmony_ciconst std::vector<std::string> exifInfoKeys = { 7776fd607bSopenharmony_ci PHOTO_DATA_IMAGE_BITS_PER_SAMPLE, 7876fd607bSopenharmony_ci PHOTO_DATA_IMAGE_IMAGE_LENGTH, 7976fd607bSopenharmony_ci PHOTO_DATA_IMAGE_IMAGE_WIDTH, 8076fd607bSopenharmony_ci PHOTO_DATA_IMAGE_GPS_LATITUDE_REF, 8176fd607bSopenharmony_ci PHOTO_DATA_IMAGE_GPS_LONGITUDE_REF, 8276fd607bSopenharmony_ci PHOTO_DATA_IMAGE_DATE_TIME_ORIGINAL, 8376fd607bSopenharmony_ci PHOTO_DATA_IMAGE_DATE_TIME_ORIGINAL_FOR_MEDIA, 8476fd607bSopenharmony_ci PHOTO_DATA_IMAGE_EXPOSURE_TIME, 8576fd607bSopenharmony_ci PHOTO_DATA_IMAGE_F_NUMBER, 8676fd607bSopenharmony_ci PHOTO_DATA_IMAGE_ISO_SPEED_RATINGS, 8776fd607bSopenharmony_ci PHOTO_DATA_IMAGE_SCENE_TYPE, 8876fd607bSopenharmony_ci PHOTO_DATA_IMAGE_IMAGE_DESCRIPTION, 8976fd607bSopenharmony_ci PHOTO_DATA_IMAGE_MAKE, 9076fd607bSopenharmony_ci PHOTO_DATA_IMAGE_MODEL, 9176fd607bSopenharmony_ci PHOTO_DATA_IMAGE_DATE_TIME, 9276fd607bSopenharmony_ci PHOTO_DATA_IMAGE_PHOTO_MODE, 9376fd607bSopenharmony_ci PHOTO_DATA_IMAGE_SENSITIVITY_TYPE, 9476fd607bSopenharmony_ci PHOTO_DATA_IMAGE_STANDARD_OUTPUT_SENSITIVITY, 9576fd607bSopenharmony_ci PHOTO_DATA_IMAGE_RECOMMENDED_EXPOSURE_INDEX, 9676fd607bSopenharmony_ci PHOTO_DATA_IMAGE_ISO_SPEED, 9776fd607bSopenharmony_ci PHOTO_DATA_IMAGE_APERTURE_VALUE, 9876fd607bSopenharmony_ci PHOTO_DATA_IMAGE_METERING_MODE, 9976fd607bSopenharmony_ci PHOTO_DATA_IMAGE_LIGHT_SOURCE, 10076fd607bSopenharmony_ci PHOTO_DATA_IMAGE_FLASH, 10176fd607bSopenharmony_ci PHOTO_DATA_IMAGE_FOCAL_LENGTH, 10276fd607bSopenharmony_ci PHOTO_DATA_IMAGE_MAKER_NOTE, 10376fd607bSopenharmony_ci PHOTO_DATA_IMAGE_PIXEL_X_DIMENSION, 10476fd607bSopenharmony_ci PHOTO_DATA_IMAGE_PIXEL_Y_DIMENSION, 10576fd607bSopenharmony_ci PHOTO_DATA_IMAGE_WHITE_BALANCE, 10676fd607bSopenharmony_ci PHOTO_DATA_IMAGE_FOCAL_LENGTH_IN_35_MM_FILM, 10776fd607bSopenharmony_ci PHOTO_DATA_IMAGE_GPS_TIME_STAMP, 10876fd607bSopenharmony_ci PHOTO_DATA_IMAGE_GPS_DATE_STAMP, 10976fd607bSopenharmony_ci PHOTO_DATA_IMAGE_COMPRESSED_BITS_PER_PIXEL, 11076fd607bSopenharmony_ci PHOTO_DATA_IMAGE_EXPOSURE_BIAS_VALUE, 11176fd607bSopenharmony_ci}; 11276fd607bSopenharmony_ci} // namespace Media 11376fd607bSopenharmony_ci} // namespace OHOS 11476fd607bSopenharmony_ci 11576fd607bSopenharmony_ci#endif // OHOS_FILEMANAGEMENT_MEDIA_EXIF_H 116