Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Stefan Fabian
qRgb() and qRgba() only exist for (A)RGB, though, and I don't have an issue with RGB32 which works as I would expect. Otherwise, a function that would put the bytes where it wants would be great. It's just the BGR(A) that doesn't work as documented regardless of whether you treat it as an unsigne

Re: [Interest] QVideoFrame 32 bit formats byte order

2019-11-14 Thread Jason H
Maybe you should use qRgb() or qRgba(...) and let it put the bytes where it wants? also, note that there are qRed(), qBlue(), qGeen(), and qAlpha() which should take care of extracting the aproproate channel for you.   If you told me that in Qt, BGR32 (and BGRA32) is 0xAABBGGRR, I would agree.

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
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 or RGBA as in my test. Either way, it should be documented how raw mem

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,

[Interest] iOS: Get SSID *in Qt*

2019-11-14 Thread Jason H
So there's a couple ways in iOS to get the SSID. But I was hoping, since I need to target android as well, that I can have a Qt solution that "just works" complete with SSID change monitoring. There's two APIs: NEHotspotHelper which requires and entitlement or CaptiveNetwork which was deprecated