Todd Prior - 2024-09-03

I think Opencamera is not getting the data from either

https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL

or

https://developer.android.com/reference/android/hardware/camera2/CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL

As a result the DNG are saved to files that report a raw white value of 1024 when it should be in many cases 14-bit..

I think maybe just the default camera characteristic or maybe not even are passed to dngCreator which relies on the correct metadata to write out the file...

I suspect checking into these key parameters ie the black and white points and making sure they are read and correct would dramatically improve the files in raw editors.

The raw white level is used as the trigger point for highlight clipping etc and so making it accurate might be nice...