About JPEG encoding

Hello,

In the configuration files of the camera, I can see that we can encode video frames as JPEG.

Is the encoding done by hardware in the camera? If so, is there an additional latency that prevents from getting 30 fps from the camera?

The config files also has a JPEG quality setting, from 1 to 10. What is the mapping between this scale and the JPEG quality factor (e.g. is 1 equals to 10, 2 equals to 20, etc. ?)

If I decide to reconfigure the camera dynamically to change the quality setting, how much time will it take? Is the latency noticeable?

Thank you