Over 3 weeks of reverse engineering the Touchwiz camera and rebuilding that code in Cyanogenmod have paid off: Here's a test version of the "Night Shot" mode for the camera, for you guys to try:
First install this kernel, with the flashify app (flash 'boot image') :
https://mega.nz/#!OARSwT5Z!agiFBpX7O-d3ZSd3KDwS-2Yf8NcZ-YCh49oMNaS5ujY
And then flash this zip with your TWRP:
https://mega.nz/#!DEYDgaKR!xM4ORY5uAhpMp__LOcWQGe-I75I0Dg0Lp1za8_i5XfQ
And you should be good to go. A few things to keep in mind:
1) If you install a new nightly, this fix will be gone, so you'd need to re-install it after every nightly. The plan is of course to have it merged in a few days, depending on the feedback I get on this.
2) The cam will, just like in Touchwiz, decide itself if it's going to use Night shot mode or not. It does this based on the amount of light it sees in the front camera. So in normal light, it will shoot a normal photo. In low light it will shoot a low light mode photo
3) In low light mode, the cam will actually shoot 6 photo's in a row, in a burst mode. It uses these 6 photo's to construct the final photo, which you will see in your album. So it's important to hold the camera still during this process !
4) Just as in touchwiz, the low light mode only works on the main camera.
5) The night shot mode currently ONLY works in the CM stock camera ! I will see if I can make it app independent, not sure yet ...
I fixed all issue's I had, also the last issue's like photo orientation and it now also supports all sizes. But let me know how it works for you guys !
Enjoy !