Modifing and displaying QVideoFrames obtained in QAbstractVideoSurface
问题 I have very a simply application written in QT in which I want to display a movie by using QMediaPlayer , but before I will display any frame I would like to detect on it some objects and mark them by drawing a rectangle over it. I've read in http://doc.qt.io/qt-5/videooverview.html that I can access each frame by subclassing QAbstractVideoSurface and so I dit it. class VideoSurface : public QAbstractVideoSurface { Q_OBJECT bool present(const QVideoFrame &frame) override { if (surfaceFormat()