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. Pixelformat of Camera, VideoOutput and QAbstractVideoFilter combo
Forum Updated to NodeBB v4.3 + New Features

Pixelformat of Camera, VideoOutput and QAbstractVideoFilter combo

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 324 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.
  • R Offline
    R Offline
    rhardih
    wrote on last edited by
    #1

    I'm using the filter mechanism of VideoOutput to do live image analysis on incoming frames of a camera. One thing I'm noting however, is that the pixelFormat is different across devices and not abstracted away by Qt.

    On my laptop the pixelformat of the QVideoFrame I receive in my QVideoFilterRunnable class, is QVideoFrame::Format_NV12, but when deploying to my phone it's QVideoFrame::Format_BGR32.

    Since I need to count on a uniform format for further processing, am I really expected to explicitly handle and convert all the formats listed in http://doc.qt.io/qt-5/qvideoframe.html, or have I just missed a doc somewhere explaining how to do this in a proper cross-platform way?

    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