Nominate our 2022 Qt Champions!

Pixelformat of Camera, VideoOutput and QAbstractVideoFilter combo

  • 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, or have I just missed a doc somewhere explaining how to do this in a proper cross-platform way?

Log in to reply