rgb - Display uyvy data in Qt -
i have input source dvd player video format uyvy.i want develop qt application takes uyvy data input , displays video frame.i used v4l2 linux commands in qt capture , qt widget display video frames. guess qt qimage class not accept uyvy format,it accepts rgb .so how convert data rgb? there other method ?? thanks..
i found qvideoframe supports uyvy http://doc.qt.io/qt-5/qvideoframe.html maybe there way convert qimage use qvideoframe::imageformatfrompixelformat
qvideoframe cloneframe(frame); cloneframe.map(qabstractvideobuffer::readonly); const qimage img(cloneframe.bits(), cloneframe.width(), cloneframe.height(), qvideoframe::imageformatfrompixelformat(cloneframe .pixelformat())); ...
Comments
Post a Comment