Is there a routine on TX1 analogous to OpenCV’s “cvtColor(yuvbuf, RGB, COLOR_YUV420p2RGB)” ? I am looking for faster(maybe hardware accelarator which could do this) and more reliable method to convert YUV420p to RGB as openCV’s method is inconsistent.
cvtColor randomly returns either BGR or RGB which ideally should not happen.
MMAPI has a sample that uses cuda to do YUV to RGB conversion. (v4l2cuda)
Also a plane conversion sample using VIC. (00_video_decode and 07_video_convert)
According to this post v4l2 will not work with TegraISP. I will try the plane conversion sample using VIC as per your suggestion. I hope that will work with bayer sensor camera(IMX274)?