[Interest] Converting CVImageBufferRef into QImage
Nuno Santos
nunosantos at imaginando.pt
Fri Feb 28 18:11:36 CET 2020
I don’t know how to interpret CVPixelBufferGetPixelFormatType(imageBuffer);
The plain output is -> 846624121
The truth is that I don’t which format is inside the provide buffer.
qDebug() << width << height << bytesPerRow << CVPixelBufferGetPixelFormatType(imageBuffer);
outputs -> 1920 1080 3840 846624121
Best,
Nuno
> On 28 Feb 2020, at 17:07, Konstantin Tokarev <annulen at yandex.ru> wrote:
>
>
>
> 28.02.2020, 19:34, "Jason H" <jhihn at gmx.com>:
>> Just how invalid are we talking?
>> It's well-known that the blue/red channels may be swapped, and I've seen padding on the row.
>> Doing your math though you're only reporting 2 bytes per pixel, which is very wrong. What is the image format you expect?
>
> FWIW, QImage::Format_Grayscale16 uses exactly 2 bytes per pixel.
>
> --
> Regards,
> Konstantin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200228/85787383/attachment.html>
More information about the Interest
mailing list