I am using a tx2 board with v4l2 to decode a h264 stream, which is working fine so far. Now I want to use it as a RGB texture, is there a built-in conversion to get from an YUV420 capture to a RGB32 output? Or do I always have to do this conversion using cpu or maybe cuda?
I am basing my code on sample 2: video_dec_cuda. I was trying to just change the converter capture_plane from YUV420M to RGB32 which does not seem to work.
RGB32 and ARGB32 give “Unsupported pixel format” errors.