简体   繁体   中英

Getting supported pixel formats from QCamera on Windows

Is there a way to get a list of supported pixel formats (RGB24, RGB32, etc.) of a connected camera using Qt (5.6.2) on Windows?

I am currently capturing frames using QCameraImageCapture (initialized with my USB webcam).

I have tried calling QCameraImageCapture::supportedBufferFormats() but always receive an empty list.

You can use QCamera::supportedViewfinderPixelFormats() , to get a list of supported by QCamera formats.

But note, QCamera can provide only frames in RGB32 to its surface on Windows, due to current implementation limitation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM