I'm trying to build a photo editing extension in iOS. I understand the pipeline of how the existing edits to a photo can be interpreted by the app, but from what I've read there isn't much built on how to interpret the PHAdjustmentData.
For instance, it comes with a formatIdentifier, formatVersion, and an arbitrary data property. I understand that the data property can be interpreted as a serialized object, but are there any standards that can be used to identify common filters? Or what about third party filters? Perhaps some of these are system defined filters that must be queried for and use the same settings to reproduce the history of the image.
For example, if I edit one photo before calling my extension, I'll get the canHandle(_ adjustMentData:) -> Bool
message. Printing out that object shows the following.
(lldb) po adjustmentData
<PHAdjustmentData: 0x600000055390> identifier=com.apple.photo version=1.2 data=0x6000001a8b20 (204)
How does one go about interpreting this? Clearly the iOS Photos app is the identifier, but the NSData itself could be anything. I'm sure it could be a dictionary of CIFilter property settings or anything else.
Are there any standards developing to concretely identify this historical data?
Aucun commentaire:
Enregistrer un commentaire