[Development] [Interest] Fastest Way to convert a QVideoFrame to an QImage?

Thiago Macieira thiago.macieira at intel.com
Wed Feb 12 22:40:31 CET 2014


Em qua 12 fev 2014, às 09:55:09, Jason H escreveu:
> Well Qt does NOT support grayscale. None of the QImage::Formats are gray.
> It's either mono, indexed color or color bits. Which is why I'm a but
> unsure of what is faster. I would assume setting a pixel on Indexed 8,
> would take a RGB or index and produce a color index lookup, even when the
> index is the lookup. 

qimage.h:

#if 0
        // reserved for future use
        Format_RGB15,
        Format_Grayscale16,
        Format_Grayscale8,
        Format_Grayscale4,
        Format_Grayscale4LSB,
        Format_Grayscale2,
        Format_Grayscale2LSB
#endif

You may want to contribute some of those formats :-)
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list