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. Inconsistent RBG/BGR format in video frames from Android cameras
Forum Update on Monday, May 27th 2025

Inconsistent RBG/BGR format in video frames from Android cameras

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidcameraqimagergbbgr
1 Posts 1 Posters 1.0k 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.
  • K Offline
    K Offline
    karelc
    wrote on 30 May 2017, 15:10 last edited by
    #1

    Hi,
    I use a video filter on a camera in QML, this gets me QVideoFrames that I convert to QImages for processing.
    I load them into RGBA8888 QImages, but it needs to be BGR so if the input frames are BGR32 (android devices do this) that's already good, if they are RGB32 (iphones do this) I use rgbSwapped on the QImage.
    The problem is on all android devices the video frames report as BGR32, but some contain BGRX data while others contain RGBX data and I need to use rgbSwapped on them.
    How can I detect which it is when the only information I have to go on is the same for both?

    1 Reply Last reply
    0

    1/1

    30 May 2017, 15:10

    • Login

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