Swift2 Exif Declaration Keys を調べてみた

カメラアプリを作成する時にmetadataを設定しただけでは、標準カメラと比べるとExif情報が足りない。そこで撮影後に取得出来るExifの初期設定項目を調べてみた。撮影はフラッシュなし。

CGImageProperties Reference

Constants - EXIF Dictionary Keys より

○は設定値あり。×は設定値なし。空欄は項目なし。

Declaration 意味 有無
kCGImagePropertyExifExposureTime 露光時間
kCGImagePropertyExifFNumber Fナンバー
kCGImagePropertyExifExposureProgram 露出プログラム
kCGImagePropertyExifSpectralSensitivity スペクトル感度
kCGImagePropertyExifISOSpeedRatings ISO感度の評価 ×
kCGImagePropertyExifOECF OECF
kCGImagePropertyExifVersion バージョン
kCGImagePropertyExifDateTimeOriginal オリジナル日時
kCGImagePropertyExifDateTimeDigitized DateTimeのデジタル化
kCGImagePropertyExifComponentsConfiguration コンポーネントの構成
kCGImagePropertyExifCompressedBitsPerPixel ピクセルあたりの圧縮ビット
kCGImagePropertyExifShutterSpeedValue スピード値のシャッター
kCGImagePropertyExifApertureValue 絞り値
kCGImagePropertyExifBrightnessValue 輝度値
kCGImagePropertyExifExposureBiasValue 露出バイアス値
kCGImagePropertyExifMaxApertureValue 最大絞り値
kCGImagePropertyExifSubjectDistance 被写体距離
kCGImagePropertyExifMeteringMode 測光モード
kCGImagePropertyExifLightSource 光源
kCGImagePropertyExifFlash フラッシュ
kCGImagePropertyExifFocalLength 焦点距離
kCGImagePropertyExifSubjectArea 被写体領域SubjectArea
kCGImagePropertyExifMakerNote メーカーノート
kCGImagePropertyExifUserComment ユーザーコメント
kCGImagePropertyExifSubsecTime Subsec時間
kCGImagePropertyExifSubsecTimeOrginal Subsec時間Orginal
kCGImagePropertyExifSubsecTimeDigitized Subsec時間デジタル化
kCGImagePropertyExifFlashPixVersion フラッシュピックスバージョン
kCGImagePropertyExifColorSpace カラースペース
kCGImagePropertyExifPixelXDimension ピクセルX寸法
kCGImagePropertyExifPixelYDimension ピクセルY寸法
kCGImagePropertyExifRelatedSoundFile 関連サウンドファイル
kCGImagePropertyExifFlashEnergy フラッシュエネルギー
kCGImagePropertyExifSpatialFrequencyResponse 空間周波数応答
kCGImagePropertyExifFocalPlaneXResolution 焦点面X解像度
kCGImagePropertyExifFocalPlaneYResolution 焦点面Y解像度
kCGImagePropertyExifFocalPlaneResolutionUnit 焦点面解像度単位
kCGImagePropertyExifSubjectLocation 件名場所
kCGImagePropertyExifExposureIndex 露出インデックス
kCGImagePropertyExifSensingMethod 検知方法
kCGImagePropertyExifFileSource ファイルソース
kCGImagePropertyExifSceneType シーンタイプ
kCGImagePropertyExifCFAPattern CFAパターン
kCGImagePropertyExifCustomRendered カスタムレンダリング
kCGImagePropertyExifExposureMode 露出モード
kCGImagePropertyExifWhiteBalance ホワイトバランス
kCGImagePropertyExifDigitalZoomRatio デジタルズーム倍率
kCGImagePropertyExifFocalLenIn35mmFilm 35mmフィルムで焦点レン
kCGImagePropertyExifSceneCaptureType 撮影シーンタイプ
kCGImagePropertyExifGainControl ゲインコントロール
kCGImagePropertyExifContrast コントラスト
kCGImagePropertyExifSaturation 飽和
kCGImagePropertyExifSharpness シャープネス
kCGImagePropertyExifDeviceSettingDescription 設定説明デバイス
kCGImagePropertyExifSubjectDistRange 件名ディストレンジ
kCGImagePropertyExifImageUniqueID 画像ユニークID
kCGImagePropertyExifGamma ガンマ
kCGImagePropertyExifCameraOwnerName カメラの所有者名
kCGImagePropertyExifBodySerialNumber ボディのシリアル番号
kCGImagePropertyExifLensSpecification レンズ仕様
kCGImagePropertyExifLensMake レンズメイク
kCGImagePropertyExifLensModel レンズモデル
kCGImagePropertyExifLensSerialNumber レンズのシリアル番号

またメーカー名、モデル名、ソフトウェア名、撮影日、作成日はDeclaration Keys使わない方法があると思っている。次はそれを調べたい。