How to convert 'QVideoFrame' with YUV data to 'QVideoframe' with RGBA32 data in Qt?
问题 I receive QVideoFrames from webcam, and they contain image data in YUV format ( QVideoFrame::Format_YUV420P ). How can I convert one such frame to one with QVideoFrame::Format_ARGB32 or QVideoFrame::Format_RGBA32 ? Can I do it without going low level, using just existing functionality in Qt5 ? Example: QVideoFrame convertFormat(const QVideoFrame &inputframe, QVideoFrame::PixelFormat outputFormat) { // What comes here? } //Usage QVideoFrame converted = convertFormat(mySourceFrame, QVideoFrame: