[Interest] Converting CVImageBufferRef into QImage
nunosantos at imaginando.pt
Fri Feb 28 18:57:31 CET 2020
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.
Have a great weekend!
> 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 <<
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest