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

When using Android Camera, QVideoFrame bits are upside-down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.9.0
    • Multimedia
    • None
    • Tested on a Samsung Galaxy Note 4, Android 5.0.1.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes