How to switch between different video sources and zoom in to full screen on Sink

You can refer this code snippets. NvBufSurfTransform will do all this work for you.

nvmultistreamtiler and nvdrmvideosink can achieve your needs. If it is not necessary, please avoid copying data to improve performance.