mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
3fde891b91
Can not send video in calls, just receive and play it Known bug : The video isn't converted perfectly to RGB, there are some visible errors
30 lines
444 B
C++
30 lines
444 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;
|
|
QHBoxLayout* mainLayout;
|
|
};
|
|
|
|
#endif // NETCAMVIEW_H
|