Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] temcguir/hdr quick setting with single stream #132

Closed
wants to merge 14 commits into from

Conversation

temcguir
Copy link
Collaborator

@temcguir temcguir commented Mar 5, 2024

No description provided.

 When the Viewfinder is showing HDR content, we want to change
 the window ColorMode to COLOR_MODE_HDR. This will propagate
 the color mode from CameraXViewfinder when the source has
 HDR content and the ImplementationMode is PERFORMANCE.
 (SurfaceView is only view that can show HDR content)
 Most devices can't support SDR + HDR streams concurrently.
 Disable ImageCapture if the DynamicRange is HDR.
 Whenever the camera is switched, the constraints of supported
 dynamic range need to be updated.
 This is used for shared state between threads.
 Hacks in a GLES3 shader to allow for copying 10-bit pixels.
 This effects processor uses the graphics-core library's GLRenderer
 to perform rendering rather than CameraX's internal OpenGLRenderer.

 This renderer can handle SDR and 10-bit HLG dynamic ranges.
 Factors out the shader copying code into its own class, ShaderCopy.
 This will allow us to create separate implementations to perform the
 copy that do not just use shaders.
 This has a lifecycle controlled by a coroutineScope, so it
 needs to get that scope from the calling coroutineScope.
@temcguir temcguir closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant