Encoding varying-size and -format images with the same JPEG encoder produces incorrect result in Jetpack 5.1.1

Hi,
The titile is updated:
NvJPEGDecoder cannot be reused for varying size images in JetPack 5.0.2

For this we would suggest re-create NvJpegEncoder once the resolution changes. Or keep multiple NvJpegEncoder classes for possible resolutions in the use-case.