X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fwidgets%2Fvideoglwidget.h;h=0598d133a35ccddfa906d8ec574a660dea8ba330;hb=234d7fe2828b8e82253548e32081576fc56cbb80;hp=de2304f4bdb2648374967caceac34a9482dcb88c;hpb=8de0bdc9a16f0dd3b97d437a89e8217303947816;p=kdenlive diff --git a/src/widgets/videoglwidget.h b/src/widgets/videoglwidget.h index de2304f4..0598d133 100644 --- a/src/widgets/videoglwidget.h +++ b/src/widgets/videoglwidget.h @@ -23,12 +23,16 @@ #include +namespace Mlt { +class Frame; +} + class VideoGLWidget : public QGLWidget { Q_OBJECT public: - explicit VideoGLWidget(QWidget *parent = 0); + explicit VideoGLWidget(QWidget *parent = 0, QGLWidget *share = 0); ~VideoGLWidget(); void activateMonitor(); QSize minimumSizeHint() const; @@ -40,6 +44,7 @@ public: public slots: void showImage(const QImage &image); + void showImage(Mlt::Frame*, GLuint); protected: void initializeGL(); @@ -52,6 +57,8 @@ private: int x, y, w, h; int m_image_width, m_image_height; GLuint m_texture; + Mlt::Frame *m_frame; + GLuint m_frame_texture; double m_display_ratio; QColor m_backgroundColor; Qt::WindowFlags m_baseFlags;