4 ms·
For something more data demanding, e.g. a video player, do you have to copy every frame from C++ world to QML/JavaScript in order to display it?
by zerr 3y ago
For something more data demanding, e.g. a video player, do you have to copy every frame from C++ world to QML/JavaScript in order to display it?
- rubymamis 3y agoI never dealt with video, so I don't know, but I assume there are Qt Quick components for this?[1] [1] https://doc.qt.io/qt-6/qtmultimedia-video-mediaplayer-example.html https://doc.qt.io/qt-6/qtmultimedia-video-mediaplayer-exampl...
- _camm 3y agoIt's possible to implement custom QQuickItems that you render in C++, and are displayed within your QML somewhere. https://doc.qt.io/qt-6/qquickitem.html https://doc.qt.io/qt-6/qquickitem.html
- LtWorf 3y agoNo, you'd use something like libmpv and tell it to which rectangle render the video.
- saidinesh5 3y agoThis really depends on the target platform , Qt version you are using. To put things into perspective, With Gstreamer/QML, we've had smooth 1080p30 fps on measly imx6ul hardware, thanks to zero copy pipelines.