X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fwidgets%2Fvideoglwidget.h;h=0598d133a35ccddfa906d8ec574a660dea8ba330;hb=234d7fe2828b8e82253548e32081576fc56cbb80;hp=918cb11734adb4d97fabd36125a162969b58246d;hpb=aa95245a04e8dd94de03eabcbc72a7140f2283a4;p=kdenlive diff --git a/src/widgets/videoglwidget.h b/src/widgets/videoglwidget.h index 918cb117..0598d133 100644 --- a/src/widgets/videoglwidget.h +++ b/src/widgets/videoglwidget.h @@ -23,6 +23,10 @@ #include +namespace Mlt { +class Frame; +} + class VideoGLWidget : public QGLWidget { Q_OBJECT @@ -40,7 +44,7 @@ public: public slots: void showImage(const QImage &image); - void showImage(GLuint); + void showImage(Mlt::Frame*, GLuint); protected: void initializeGL(); @@ -52,7 +56,9 @@ protected: private: int x, y, w, h; int m_image_width, m_image_height; - GLuint m_texture, m_other_texture; + GLuint m_texture; + Mlt::Frame *m_frame; + GLuint m_frame_texture; double m_display_ratio; QColor m_backgroundColor; Qt::WindowFlags m_baseFlags;