Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: QVideoFrame::map succeeds, yet buffer contains only zero values
QtWS25 Last Chance

Android: QVideoFrame::map succeeds, yet buffer contains only zero values

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qvideoframemapandroidopengl
7 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cgudrian
    wrote on 2 Mar 2017, 07:34 last edited by
    #1

    Hello!

    I have created a simple QtQuick 2 application which displays a Camera preview using a VideoOutput with a filter attached to it. The VideoOutput shows the expected preview image.

    Within the QVideoFilterRunnable::run() method I'm successfully calling the map() method on the provided QVideoFrame input parameter. However the buffer pointed to by QVideoFrame::bits() only contains zeros. This does not happen if the application runs in the Android simulator (which has OpenGL turned off).

    Is there a known issue regarding the mapping of OpenGL video data?

    Christian

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cgudrian
      wrote on 2 Mar 2017, 15:42 last edited by
      #3

      Adding the Mali-T860 chipset to the blacklist solved the issue. Should I file a pull request?

      1 Reply Last reply
      1
      • C Offline
        C Offline
        cgudrian
        wrote on 2 Mar 2017, 14:29 last edited by
        #2

        Browsing through the Qt sources I've discovered, that certain GPU chipsets get a special treatment. Among others there are the chipsets Mali-T720 and Mali-T760. My device is equipped with a Mali-T860. I'll add that one to the blacklist as well and see where it gets me.

        Christian

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cgudrian
          wrote on 2 Mar 2017, 15:42 last edited by
          #3

          Adding the Mali-T860 chipset to the blacklist solved the issue. Should I file a pull request?

          1 Reply Last reply
          1
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Mar 2017, 21:53 last edited by SGaist 3 Feb 2017, 21:53
            #4

            Hi and welcome to devnet,

            You can, but before doing it just check whether the 5.9 branch already contains it.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 2 Mar 2017, 21:55 last edited by
              #5

              Just in case, since you are talking about a pull request, the development is not done on GitHub you have to use Gerrit to get your patch reviewed an possibility integrated.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • C Offline
                C Offline
                cgudrian
                wrote on 3 Mar 2017, 14:33 last edited by
                #6

                https://codereview.qt-project.org/#/c/187465/

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 3 Mar 2017, 16:32 last edited by
                  #7

                  Thanks !

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  2/7

                  2 Mar 2017, 14:29

                  5 unread
                  • Login

                  • Login or register to search.
                  2 out of 7
                  • First post
                    2/7
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved