2 #ifndef VIDEOGLWIDGET_H
3 #define VIDEOGLWIDGET_H
7 class VideoGLWidget : public QGLWidget
12 VideoGLWidget(QWidget *parent = 0);
15 QSize minimumSizeHint() const;
16 QSize sizeHint() const;
17 void setImageAspectRatio(double ratio) {
18 m_display_ratio = ratio;
20 void setBackgroundColor(QColor color) {
21 m_backgroundColor = color;
26 int m_image_width, m_image_height;
28 double m_display_ratio;
29 QColor m_backgroundColor;
32 void showImage(QImage image);
36 void resizeGL(int width, int height);