webcam from gstreamer
v4l2src -> videoconvert -> glupload -> glcolorconvert -> qml6glsink
This commit is contained in:
35
poc006/qml/main.qml
Normal file
35
poc006/qml/main.qml
Normal file
@@ -0,0 +1,35 @@
|
||||
// file: poc-qt/poc006/qml/main.qml
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 960
|
||||
height: 700
|
||||
title: "POC006 - GStreamer qml6glsink"
|
||||
|
||||
color: "black"
|
||||
|
||||
GstGLQt6VideoItem {
|
||||
id: video
|
||||
objectName: "videoItem"
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
height: 48
|
||||
color: "#66000000"
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
color: "white"
|
||||
text: "POC006 - webcam preview via GStreamer qml6glsink"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user