mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
31 lines
466 B
C++
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
|