martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
198 stars 9 forks source link

Further Caching #28

Closed Alex-Vasile closed 11 months ago

Alex-Vasile commented 11 months ago

The Exposure compensation and output bit-depth are a post-processing step applied to the image after all of the alignment and merging has been done. So if the user runs subsequent runs and only changes one of those two settings, then the alignment and merging steps can be skipped by using the previous runs merged texture.

This PR adds caching of the previous run's settings and final (pre-post-processing) image, and uses them to skip all of the calculations.

This significantly speeds up tweaking of those final settings, as we've found is often the case when trying to dial in the exposure compensation.