There are actually two lossless JPEG modes even ignoring JPEG-2000: JPEG-LS and LJPEG. I don't know how widespread support for either is, but ffmpeg can encode to both. It confused the crap out of me a few months ago when I was trying to fix a bug and realized that the two were actually totally different formats.
The latter seems to be older and part of the original spec, while the former seems to be newer and a lot less bad.
The latter seems to be older and part of the original spec, while the former seems to be newer and a lot less bad.