Here are the two gain maps I have accessed from taking phots on the default camera app on the two devices. However like I explained, I can't seem to access the 13s HDRGainMap from an AVCapturePhoto using the above method
https://gist.github.com/kiding/fa4876ab4ddc797e3f18c71b3c2eeb3a?permalink_comment_id=5398481#gistcomment-5398481
Post
Replies
Boosts
Views
Activity
Thank you, that resolved the issue. I can now access the gain map on my iPhone 16 Pro, however it's still nil on my iPhone 13 (iOS 18.0.1). Images captured via the iPhone Camera on the 13 do have a gain map, though it appears different, with dark colours, as though it is a different format. Is there any documentation on this? Thank you.
Thank you so much! I have a follow up question - how do you configure "AVCapturePhotoSettings" to capture the HDRGainMap? I have an iPhone 16 Pro which using the default camera app produces images that have embedded HDRGainMaps, so my hardware is capable. However using the code above, the CIImage returned is "nil".
Thanks. I tried to enable "dump intermediates" but I couldn't get any to show, or any timings. Here's the output from the xcode log on start up:
CI_PRINT_TREE options flags:
1 initial graph
2 optimized graph
4 program graph (set)
dump-inputs
dump-intermediates (set)
dump-raw-intermediates (set)
dump-bmtl-intermediates (set)
dump-outputs
dump-timing (set)
context==<name|number>
context!=<name|number>
frame-
<dot|pdf|png>
Yeah I understand. Thanks for your response. One last Q, would it be acceptable to make an extension that has a button "Unlock to access"? I assume most of my users have an unlocked phone any way in which case it would just open the app normally I believe?
I'm not sure this would be possible as I'm using React Native for the UI. Is there any reason you can't just launch the app in the same way the action button works with a "open an app"? This would have been so much quicker to implement, even if my app was already using SwiftUI. I'm only able to work on this project in my spare time and it feels a bit anti "indie" developer to have it this way.
Yeah I've managed to implement the Camera Control gestures for controlling exposure and zoom so far. Seems to work well. Is there any work around so that if the device is unlocked I can just open my app? Or at least show a loading screen? It's a shame that my users will miss out on this.
What version of React Native are you on? I'm also experiencing this.