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.