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

When using Android Camera, QVideoFrame bits are upside-down

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Won't Do
    • Affects Version/s: 5.9.0
    • Fix Version/s: None
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Tested on a Samsung Galaxy Note 4, Android 5.0.1.
    • Platform/s:
      Android

      Description

      I'm reading video frame contents on Android by mapping the QVideoFrame (inside QAbstractVideoFilter). The contents is flipped upside-down.

      The supplied QVideoSurfaceFormat's scanLineDirection() reports that the lines should be ordered top-to-bottom.

      I've attached a simple test app, which computes the relative brightness of the top & bottom parts of the frame, displaying colored bars. The reported values are fine on Linux (UVC camera), but flipped on Android.

      Also please note that it's not an issue of taking Camera.orientation into account. In the test app, the VideoOutput's autoOrientation is disabled, and I align the screen orientation to match the camera orientation by looking at the video output.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-69992
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              valentyn.doroshchuk Valentyn Doroshchuk
              Reporter:
              anszom Andrzej Szombierski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change