Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QVideoFrame::Format_Y16
Forum Updated to NodeBB v4.3 + New Features

QVideoFrame::Format_Y16

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 451 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    ABest2
    wrote on last edited by
    #1

    I have a QAbstractVideoSurface which displays a QVideoFrame. This works as expected for QVideoFrame::Format_RGB32 and QVideoFrame::Format_ARGB32. I am copying (memcpy) the data directly to the data section of the QVideoFrame. The data I am trying to display is 16 bit grayscale so I would prefer to use QVideoFrame::Format_Y16. But, the display area is white (no image) with this format chosen and 16 bit data copied to the QVideoFrame. Are there limitations on the use of QAbstractVideoSurface for QVideoFrame::Format_Y16?

    Also, I do not know if the difference between presenting the grayscale values in Format_RGB32 will be visibly different than Format_Y16 on a normal computer display where this application will run. Should I stick to RGB32?

    I am fairly new to Qt.

    Thank you,
    Aaron

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I am not sure that this format is currently supported in the shaders implemented for QtQuick. That is something you'll have to check.

      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
      • A Offline
        A Offline
        ABest2
        wrote on last edited by
        #3

        I do not know where I would look for this information. Any additional details would be appreciated.

        Thanks,
        Aaron

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The QtMultimedia sources is the starting point.

          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

          • Login

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