Enable HDR Option for UIImagePickerController
Asked Answered
C

2

7

Is it even possible to enable the HDR option from within my application? I assumed it would be there automatically. I looked for additional mediaTypes, thinking maybe kUTTypeHDRImage might be an option, but no such luck. It's not an additional source type, nor is it available through cameraCaptureMode.

ipc.sourceType = UIImagePickerControllerSourceTypeCamera;
ipc.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeImage];

No mention of it in the documentation: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

Cw answered 28/9, 2010 at 15:59 Comment(0)
O
11

The HDR option is specific to the Camera app and is not available through the API.

You should file an enhancement request at http://bugreport.apple.com.

Orellana answered 10/10, 2010 at 19:43 Comment(2)
Thank you. That is the confirmation I was looking for, and I appreciate the link. I'll use it.Cw
And now?? I know about isVideoHDRSupported and it is not supported when preset is set to AVCaptureSessionPresetPhotoLiggins
G
0

It's not a separate media type; it's still an image, and (to my knowledge) still a JPEG. I think what Camera is doing is taking multiple images at different exposure levels and combining them together; that's why it takes so long.

Guinevere answered 28/9, 2010 at 23:23 Comment(2)
OK, so how do I enable the HDR option when I use the UIImagePickerController from within my application?Cw
There's a reasonably good chance that Camera.app isn't using UIImagePickerController, and that HDR hasn't been added to UIImagePickerController yet (try profiling it with CPU Sampler/Shark in Instruments). There might be some private APIs...Guinevere

© 2022 - 2024 — McMap. All rights reserved.