NvBufSurfTransform example

Hi guys,
I need a example of color convert using NvBufSurfTransform?
Thanks

You can refer our open source code: gstnvinfer.cpp: get_converted_buffer.
Just set the colorFormat parameter to what you want.