1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/widget/netcamview.h
Tux3 / Mlkj / !Lev.uXFMLA b394372ad0 Add video reception
2014-06-30 14:49:42 +02:00

31 lines
466 B
C++

#ifndef NETCAMVIEW_H
#define NETCAMVIEW_H
#include <QWidget>
#include <QHBoxLayout>
#include <QTimer>
#include <QLabel>
#include <vpx/vpx_image.h>
class QCloseEvent;
class QShowEvent;
class QPainter;
class NetCamView : public QWidget
{
Q_OBJECT
public:
NetCamView(QWidget *parent=0);
public slots:
void updateDisplay(vpx_image frame);
private:
QLabel *displayLabel;
QImage lastFrame;
QHBoxLayout* mainLayout;
};
#endif // NETCAMVIEW_H