Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Stefan Fabian
treat it as an unsigned integer (as one would expect) or with a fixed in-memory order. Von: Jason H Gesendet: Freitag, 15. November 2019 00:42 An: Stefan Fabian Cc: interest@qt-project.org Betreff: Re: [Interest] QVideoFrame 32 bit formats byte order Maybe you shoul

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Jason H
. Note though in openCV, this is an issue. (Blue and Red are swapped in the memory)   Sent: Thursday, November 14, 2019 at 1:54 PM From: "Stefan Fabian" To: "interest@qt-project.org" Subject: [Interest] QVideoFrame 32 bit formats byte order Hey guys,   I'm interfac

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Allan Sandfeld Jensen
On Thursday, 14 November 2019 21:37:09 CET Allan Sandfeld Jensen wrote: > On Thursday, 14 November 2019 21:17:38 CET Stefan Fabian wrote: > > That may be explained by the endianness, though, since ARGB as 32bit uint > > on little-endian (what most if not all consumer pcs use) would be BGRA in > > m

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Allan Sandfeld Jensen
On Thursday, 14 November 2019 21:17:38 CET Stefan Fabian wrote: > That may be explained by the endianness, though, since ARGB as 32bit uint on > little-endian (what most if not all consumer pcs use) would be BGRA in > memory. In the case of BGRA32, endianness could change it to ARGB but not > ABGR

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Stefan Fabian
memory is interpreted (consecutive bytes [big-endian] or one 4 byte word per pixel [cpu dependent]). Von: David M. Cotter Gesendet: Donnerstag, 14. November 2019 21:04 An: interest@qt-project.org Cc: Stefan Fabian Betreff: Re: [Interest] QVideoFrame 32 bit formats

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread David M. Cotter
I had a similar finding. i find that QImage::Format_ARGB32 is always 0xBBGGRRAA on both mac and windows unrelated to video, but just allocating a QImage > On Nov 14, 2019, at 11:54 AM, Stefan Fabian > wrote: > > Hey guys, > > I'm interfacing external camera input to Qt/QML (version 5.9.5 on

[Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Stefan Fabian
Hey guys, I'm interfacing external camera input to Qt/QML (version 5.9.5 on Ubuntu 18.04). For this, I'm using a custom video source and present the frames using QVideoFrame and QAbstractVideoBuffer. The image is displayed in QML using a VideoOutput. Since not all formats can be mapped directly,