[Sample] [Camera2] - Implementation of "UltraHDR Image Capture" #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This CL contains sample code for Capturing an UltraHDR Image using Camera2 on API 34 and above. Made some cosmetic changes to the current Camera2 Samples to better represent them in the list of samples
How Has This Been Tested?
Test Configuration - Android Emulator - API 34
Important Notes
At the time for writing, there are no real hardware devices that are capable of taking an UltraHDR image via the Camera2 API, so this CLs was tested with the Emulated Cameras using the Android Emulator for functionality.
Currently when running this Sample, If the device does not support UltraHDR capture, This screen will show:
To run this sample on an emulator and get passed this "UltraHDR Capture is not supported" message, you must configure an emulator with API 34 & assure both the front & back emulator cameras are set to "Emulated" Like below:
Visualizing The Captured UltraHDR Image
The
VisualizingAnUltraHDRGainmap
Sample (merged here: #53) has been updated to receive the captured Image from the camera and display it in the same UI as that sample. This enables the user to immediately have a visual of the UltraHDR image captured by the camera.However, currently when using the emulator, the image generated is not UltraHDR, so the sample has also been updated to reflect that by removing the options to show UltraHDR or gain map:
Checklist: