Adding camera information support
This commit is contained in:
@@ -568,6 +568,23 @@ QVector<QGstUtils::CameraInfo> QGstUtils::enumerateCameras(GstElementFactory *fa
|
||||
}
|
||||
} else if (g_object_class_find_property(objectClass, "video-source")) {
|
||||
hasVideoSource = true;
|
||||
/* hack for pinephone configuration */
|
||||
const CameraInfo primary = {
|
||||
QStringLiteral("rear"),
|
||||
QGstreamerVideoInputDeviceControl::primaryCamera(),
|
||||
270,
|
||||
QCamera::BackFace,
|
||||
QByteArray()
|
||||
};
|
||||
const CameraInfo secondary = {
|
||||
QStringLiteral("front"),
|
||||
QGstreamerVideoInputDeviceControl::secondaryCamera(),
|
||||
90,
|
||||
QCamera::FrontFace,
|
||||
QByteArray()
|
||||
};
|
||||
devices.append(primary);
|
||||
devices.append(secondary);
|
||||
}
|
||||
|
||||
g_type_class_unref(objectClass);
|
||||
|
||||
Reference in New Issue
Block a user