Post marked as solved
Post marked as solved with 3 replies, 561 views
When creating a raw image with CIFilter, I need to provide and identifier hint for the raw image decoder. How do I do this?
The following code does not populate the dictionary and CIFilter returns nil.
How would I do this correctly? I am completely stuck.
let rfo = [ String(kCGImageSourceTypeIdentifierHint) : "com.sony.raw-image" ] as! [CIRAWFilterOption:Any]
let cii = CIFilter(imageData: data , options: rfo).outputImage