Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-114190

Camera/VideoOutput (CaptureSession) strange high memory usage on specific devices

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.3, 6.5.0, 6.5.1
    • Multimedia
    • None
    • Android

    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()
                          }
                  }
              }
          }
      }
       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            gino_qta Gino Biddau
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes