Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 188d331a authored by Mark Harman's avatar Mark Harman
Browse files

Don't set DynamicRangeProfiles.HLG10 for UltraHDR for now.

parent b6d847fd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6172,10 +6172,12 @@ public class CameraController2 extends CameraController {
            if( cameraIdSPhysical != null ) {
                config.setPhysicalCameraId(cameraIdSPhysical);
            }
            // On Galaxy S24+ at least, we seem to get UltraHDR photos even without setting DynamicRangeProfiles.HLG10 - but do this to be safe
            if( want_jpeg_r && surface == preview_surface && Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ) {
            // On Galaxy S24+ at least, we seem to get UltraHDR photos even without setting DynamicRangeProfiles.HLG10
            // furthermore, calling setDynamicRangeProfile with HLG10 gives photos with much lower saturation, so have
            // disabled this
            /*if( want_jpeg_r && surface == preview_surface && Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ) {
                config.setDynamicRangeProfile(DynamicRangeProfiles.HLG10);
            }
            }*/
            outputs.add(config);
        }
        return outputs;