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

QCamera::cameraFormat does not update correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Multimedia
    • Android, iOS/tvOS/watchOS, macOS
    • a99abf8fa (dev), 19ed51119 (dev), 1ca27b43b (6.9), c0f880619 (6.9), c2f1caa5f (6.8), 22d55ba7c (6.8)
    • Multimedia wk 49-50, Multimedia wk 51-2, Multimedia wk 5-6, Multimedia wk 7-8, Multimedia, weeks 9-10, Multimedia, weeks 11-12

    Description

      When instantiating a QCamera, the cameraFormat() property should be updated whenever we go into active mode.

      By default, the QCamera holds a QCameraFormat that is default-constructed. This means the resolution is reported -1 x -1 and the pixel format is invalid. The intended behavior for a default-constructed QCameraFormat is for the QCamera to select a sensible default format when the stream is started. We still want to report the actual format once the stream has been started so users can easily know.

      We should improve the behavior to update the cameraFormat() property to hold the actual format being displayed.

      If a UI was to display the current format of the camera, we would end up with something like the image attached

      Attachments

        1. IMG_0018.PNG
          2.78 MB
          Nils Petter Skålerud
        For Gerrit Dashboard: QTBUG-132087
        # Subject Branch Project Status CR V

        Activity