Aside from adding a DCI-P3 toggle, I also made a few code adjustments to the portrait DCIM/Camera toggle. I got serious issues with corrupted portraits in my Pixel 2 XL even if with the toggle turned off, so I tuned it here a bit such that if it's disabled, it completely skips the mod codes and runs the stock ones, theoretically avoiding any possible problems due to the portrait mod. Nothing else.
Toggle to directly save Portrait shots to /DCIM/Camera (thanks san1ty): a lot of people wanted this feature, so here it is. But be warned: I haven't done any extensive tests to verify if the portrait bug from previous versions still occur here; so far it's okay. Use at your own risk.
Toggle to use custom lib (from @cstark27): from the custom libs I've tried, Sav ZA v3 is so far the best in my opinion. It significantly reduces black crush while keeping noise reduction etc the same as stock lib. However, this also reduces overall contrast and/or saturation. It's your choice.
Enabled DCI-P3 color space: I honestly don't know what this does, but I hope enabling it brings some sort of improvement.
Fixed washed-out RAW photos (thanks for the tips @Urnyx05): RAW (.dng) photos now won't have washed out colors straight out of the camera.
Flash for Night Sight (beta) (many thanks to BSG): note that Auto flash is not working properly, hence the beta tag. Oh another thing: in the front camera, both Flash and Face brightening toggles are present. They function differently: Face brightening only provides illumination to the top and bottom bars of the viewfinder thus providing subtle brightness, while Flash illuminates the entire viewfinder after pressing the shutter, providing stronger light than Face brightening. Now on which one to use depends on how much light you want.
Added Exposure compensation values: you can increase default exposure in +0.1 increments in case the default exposure is too dark for you. And notice there are no negative (-) values, that's because in my tests (even in other older GCam ports) the negative values literally do nothing.
Fixed underexposed front camera with HDR+ Enhanced and Night Sight
Attempt to improve Night Sight for front camera (thanks BSG for the codes): front camera Night Sight should have lesser noise now; however, you should keep the phone steady a bit longer especially in really low light.
Settings and Versions
If you have a configuration or use a better version of Gcam than the one available on the site, let us know! It will be a pleasure to have the best versions and configurations for each device.