Allow the camerabin source selection to be overridden.
Prefer the default camera-source element if there is one or an element identified by an environment variable to a static list of possible elements which may not be appropriate for the target environment. Change-Id: I53816c949307953780f9046eb11e09effe059be0 Reviewed-by: John Brooks <john.brooks@dereferenced.net> Reviewed-by: Andy Nichols <andy.nichols@digia.com> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
817c548df4
commit
4d3f740795
@@ -45,6 +45,8 @@
|
||||
#include <qvideodeviceselectorcontrol.h>
|
||||
#include <QtCore/qstringlist.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QGstreamerVideoInputDeviceControl : public QVideoDeviceSelectorControl
|
||||
@@ -52,6 +54,7 @@ class QGstreamerVideoInputDeviceControl : public QVideoDeviceSelectorControl
|
||||
Q_OBJECT
|
||||
public:
|
||||
QGstreamerVideoInputDeviceControl(QObject *parent);
|
||||
QGstreamerVideoInputDeviceControl(GstElement *source, QObject *parent);
|
||||
~QGstreamerVideoInputDeviceControl();
|
||||
|
||||
int deviceCount() const;
|
||||
@@ -68,6 +71,8 @@ public Q_SLOTS:
|
||||
private:
|
||||
void update();
|
||||
|
||||
GstElement *m_source;
|
||||
|
||||
int m_selectedDevice;
|
||||
QStringList m_names;
|
||||
QStringList m_descriptions;
|
||||
|
||||
Reference in New Issue
Block a user