Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.3, 6.5.0, 6.5.1
-
None
Description
There are some strange differences between the memory usage of Camera & VideoOutput on similar devices. This seems to happen when the camera's default application version is not 13 but 11. Here's the qml file:
import QtQuick import QtQuick.Controls import QtQuick.Window import QtMultimedia Window { width: 640 height: 480 visible: true CaptureSession { id: captureSessionId camera: Camera { id: cameraId onErrorOccurred: function(error, message) { console.log("Error occurred", error, message); } } videoOutput: videoOutputId } VideoOutput { id: videoOutputId anchors.fill: parent Button { anchors.bottom: parent.bottom anchors.bottomMargin: 10 anchors.horizontalCenter: parent.horizontalCenter width: 50 height: width onPressed: { if(cameraId.cameraDevice) if(cameraId.active) cameraId.stop() else { // use one of these lines to modify the camera resolution used //cameraId.cameraFormat = captureStore.getCameraFormat(cameraId.cameraDevice) cameraId.cameraFormat = captureStore.getCameraFormat(cameraId.cameraDevice, 1280, 720) cameraId.start() } } } } }