I am stuck with a related issue. I have raw pixel data from a Sony chip in RGGB pixel arrangement. How do I assign/apply raw filter options with CIFilter?
The Apple Developer Documentation says you have to provide an identifier hint in the options, but I have no clue how to do this... The only example I found is outdated and the syntax provided causes a type error.
Any help or hint is highly appreciated. Thank you!
This is what I do, but it does not work...
let rfo = [ String(kCGImageSourceTypeIdentifierHint) : "com.sony.raw-image" ] as! [CIRAWFilterOption:Any]
let cii = CIFilter(imageData: ddata , options: rfo).outputImage
Topic:
App & System Services
SubTopic:
Core OS
Tags: