added the possiblity to choose which camera to use

This commit is contained in:
csoler 2021-05-27 21:21:26 +02:00
parent 7b5be347bf
commit b78f7f11de
4 changed files with 116 additions and 4 deletions

View file

@ -22,6 +22,7 @@
#include <QLabel>
#include <QCamera>
#include <QCameraInfo>
#include "interface/rsVOIP.h"
#include "gui/VideoProcessor.h"
@ -85,6 +86,7 @@ class QVideoInputDevice: public QObject
static void getAvailableDevices(QList<QString>& device_desc);
QString currentCameraDescriptionString() const { return _capture_device_info.deviceName(); }
protected slots:
void grabFrame(int id, QVideoFrame f) ;
void errorHandling(CameraStatus status,QCamera::Error error);
@ -98,6 +100,7 @@ protected slots:
QTimer *_timer ;
QCamera *_capture_device;
QCameraImageCapture *_image_capture;
QCameraInfo _capture_device_info;
QVideoOutputDevice *_echo_output_device ;