[Interest] Converting CVImageBufferRef into QImage
Nuno Santos
nunosantos at imaginando.pt
Fri Feb 28 18:57:31 CET 2020
Thiago,
kCVPixelFormatType_422YpCbCr8 = '2vuy', /* Component Y'CbCr 8-bit 4:2:2, ordered Cb Y'0 Cr Y'1 */
Missing your incredible replies already... You ROCK! :)
The question is still pertinent in the Qt domain since there is no direct way of constructing a QImage from 2vuy color space.
Thank you!
Have a great weekend!
Best,
Nuno
> On 28 Feb 2020, at 17:48, Thiago Macieira <thiago.macieira at intel.com> wrote:
>
> On Friday, 28 February 2020 09:11:36 PST Nuno Santos wrote:
>> 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
>
> Then your question is best directed at an Apple forum or support channel where
> someone can help you understand the Core Video API.
>
> https://developer.apple.com/documentation/corevideo/1456851-cvpixelbuffergetpixelformattype says "A four-character code OSType identifier
> for the pixel format."
>
> 846624121 = 0x32767579 = '2vuy' (see https://onlinegdb.com/HJQVf0U48)
>
> So I assume the pixel format is YUV2.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
> Software Architect - Intel System Software Products
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200228/b8b204b7/attachment.html>
More information about the Interest
mailing list