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

QCameraDevice::videoFormats exposes seemingly duplicate formats

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9
    • Multimedia
    • iOS/tvOS/watchOS, macOS

      For now I have only reproduced this on macOS and iOS, but the behavior should apply to all platforms.

      When exposing possible QCameraFormats through the QCameraDevice, we report formats that seemingly have the exact same member values. These are formats that have some kind of difference in the backend in terms of unexposed properties, such as color-range.

      An example is if you have two formats, both have the same resolution, pixelFormat and FPS range, but they have a different color-range internally inside the QCameraFormatPrivate struct.

      Because the relevant properties are not exposed to our users, the user has no way of discerning these QCameraFormats or knowing which ones to choose.

      I suggest we either make a plan to start exposing some of these differences, or we make rules on how to only expose one when we have formats that are exposed as duplicates.

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

            tpochep Timur Pocheptsov
            npskalerud Nils Petter Skålerud
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes