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

QCamera frame transformation breaks when switching devices too fast

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.1
    • Multimedia
    • None
    • Samsung Galaxy Tab A9 - Android 14
      Samsung Galaxy A04 - Android 14
      Motorola Razr 40 Ultra - Android 14
    • Android

    Description

      This one is a bit hard to replicate.

      When switching camera device for QCamera, there is a short delay before the new camera-device becomes active. If the user performs another device switch before the pending device has become active, the camera will not be updated to the final device and will use the one that was previously pending, and it will have incorrect frame transformation. This can mean the camera ends up mirrored or upside down, depending on the configuration.

      Steps to reproduce:

      1. Have a Android-device with at least two camera-devices
      2. Switch to another camera-device
      3. Before the pending device-switch is done, switch to another camera-device

      What do you expect to happen:
      I expect the in-between pending camera-device activation to be cancelled, and be presented with a frame from the most recent camera-device-change. This frame should have the correct transformation applied.

      What happens:
      The QCamera does not send frames from the newest camera-device change. Often, the frame presented will also have incorrect transformation, leading to the image being upside-down or mirrored incorrectly.

      Reproducibility: Roughly half the time

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            npskalerud Nils Petter Skålerud
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes