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

When using Android Camera, QVideoFrame bits are upside-down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • 5.9.0
    • Multimedia
    • None
    • Tested on a Samsung Galaxy Note 4, Android 5.0.1.
    • Android

      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.

        1. main.cpp
          2 kB
          Andrzej Szombierski
        For Gerrit Dashboard: QTBUG-69992
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes