Hello Cococarbine,
There is not an encoding example available on the i.MRT1160 SDK. The example available for decoding does contain libraries that can perform several operation with the jpeg format but you would need to review the input required and perform any necessary conversions from the camera to the jpeg libraries.
My apologies for the inconvenience.
Regards,
Gustavo