CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2016 |
SPMSupports SPM | ✗ |
Maintained by Tatsuhiko Arai.
A Swift Parser for Photo Sphere XMP metadata that is serialized and embedded inside the photo sphere as described by the Adobe XMP standard.
Swift 3.0+ (Xcode 8.0+)
import PhotoSphereXMP
// Create a Parser by URL
let xmp = PhotoSphereXMP(contentsOf: url) // Return is optional
// Create a Parser by DATA
let xmp = PhotoSphereXMP(data: data)
// Parse the content
xmp.parse { (elements: [PhotoSphereXMP.GPano: Any]?, error: Error?) -> Void in
// Check error and do something with the metadata dictionary
}
Name | Type | GPano enum case name | Swift type |
---|---|---|---|
GPano:UsePanoramaViewer | Boolean | usePanoramaViewer | Bool |
GPano:CaptureSoftware | String | captureSoftware | String |
GPano:StitchingSoftware | String | stitchingSoftware | String |
GPano:ProjectionType | Open Choice of Text | projectionType | String |
GPano:PoseHeadingDegrees | Real | poseHeadingDegrees | Double |
GPano:PosePitchDegrees | Real | posePitchDegrees | Double |
GPano:PoseRollDegrees | Real | poseRollDegrees | Double |
GPano:InitialViewHeadingDegrees | Integer | initialViewHeadingDegrees | Int |
GPano:InitialViewPitchDegrees | Integer | initialViewPitchDegrees | Int |
GPano:InitialViewRollDegrees | Integer | initialViewRollDegrees | Int |
GPano:InitialHorizontalFOVDegrees | Real | initialHorizontalFOVDegrees | Double |
GPano:FirstPhotoDate | Date | firstPhotoDate | Date |
GPano:LastPhotoDate | Date | lastPhotoDate | Date |
GPano:SourcePhotosCount | Integer | sourcePhotosCount | Int |
GPano:ExposureLockUsed | Boolean | exposureLockUsed | Bool |
GPano:CroppedAreaImageWidthPixels | Integer | croppedAreaImageWidthPixels | Int |
GPano:CroppedAreaImageHeightPixels | Integer | croppedAreaImageHeightPixels | Int |
GPano:FullPanoWidthPixels | Integer | fullPanoWidthPixels | Int |
GPano:FullPanoHeightPixels | Integer | fullPanoHeightPixels | Int |
GPano:CroppedAreaLeftPixels | Integer | croppedAreaLeftPixels | Int |
GPano:CroppedAreaTopPixels | Integer | croppedAreaTopPixels | Int |
GPano:InitialCameraDolly | Real | initialCameraDolly | Double |
This library is licensed under MIT. Full license text is available in LICENSE.