#ifndef LVIDEOSURFACE_H #define LVIDEOSURFACE_H #include #include #include #include class LVideoSurface : public QAbstractVideoSurface { Q_OBJECT public: LVideoSurface(QObject *parent=0); virtual bool present(const QVideoFrame&); virtual QList supportedPixelFormats(QAbstractVideoBuffer::HandleType) const; bool start(const QVideoSurfaceFormat &format); void stop(); signals: void frameReceived(QPixmap); public slots: void switchRollOver(); private: QPixmap frameImage; bool entered; }; #endif