Raw Therapee on a top tier smartphone camera - Sharp Aquos R6

Sorry, I need to clean it up and add a readme… For now I think this should work:

git clone https://github.com/paolodepetrillo/raw2dng.git
cd raw2dng
git checkout dngpreprocess
mkdir build
cd build
cmake ..
make

If everything works this will create the executable at build/dngpreprocess/dngpreprocess. To run:

dngpreprocess IMG_9999.dng

This will output a file named IMG_9999_pp.dng with the GainMap applied.