Hi,
You can call the functions to get EglImage:
NvBufSurfaceFromFd();
NvBufSurfaceMapEglImage();
And refer to this patch to wrap EglImage to VPI Image:
Using VPI in GStreamer - #21 by AastaLLL
If you only need to rescale the resolution, can also call NvBufSurf::NvTransform()