Avoid re-encoding images when possible
Snapshot saves photos as JPEG files. To my knowledge, the raw image (the one shown in viewfinder) is encoded into JPEG for all cases.
However, when the camera provides a JPEG stream, this step is unnecessary; the image can be saved directly without re-encoding, as it's already in the right format, avoiding generation loss.