We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-06-14 16:59:37 +0300

What is the proper way to use the QCamera API?

I'm trying to detect the available cameras in the device, and get some basic properties of them, like still image resolution (which should equal to image sensor resolution), video recording resolution, presence of LED flash, etc. I'm trying QT calls from C++ code like this:

QCameraInfo::defaultCamera().deviceName() QList<qcamerainfo> cameras = QCameraInfo::availableCameras(); QList<qbytearray> devices = QCamera::availableDevices();

It doesn't seem to work at all on the Jolla Phone, it runs very slowly and causes the app to hang for seconds. And it returns 9 camera devices, from /dev/video0 through /dev/video8 on the Jolla Tablet, which is even more strange. What am I doing wrong?

What is the proper way to use the QCamera API?

I'm trying to detect the available cameras in the device, and get some basic properties of them, like still image resolution (which should equal to image sensor resolution), video recording resolution, presence of LED flash, etc. I'm trying QT calls from C++ code like this:

QCameraInfo::defaultCamera().deviceName()
  QList<qcamerainfo> 
QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
  QList<qbytearray> 
QList<QByteArray> devices = QCamera::availableDevices();

QCamera::availableDevices();

It doesn't seem to work at all on the Jolla Phone, it runs very slowly and causes the app to hang for seconds. And it returns 9 camera devices, from /dev/video0 through /dev/video8 on the Jolla Tablet, which is even more strange. What am I doing wrong?

What is the proper way to use the QCamera API?

I'm trying to detect the available cameras in the device, and get some basic properties of them, like still image resolution (which should equal to image sensor resolution), video recording resolution, presence of LED flash, etc. I'm trying QT calls from C++ code like this:

QCameraInfo::defaultCamera().deviceName()

QList<QCameraInfo> cameras = QCameraInfo::availableCameras();

QList<QByteArray> devices = QCamera::availableDevices();

It doesn't seem to work at all on the Jolla Phone, it runs very slowly and causes the app to hang for seconds. And it returns 9 camera devices, from /dev/video0 through /dev/video8 on the Jolla Tablet, which is even more strange. What am I doing wrong?

What is the proper way to use the QCamera API?

I'm trying to detect the available cameras in the device, and get some basic properties of them, like still image resolution (which should equal to image sensor resolution), video recording resolution, presence of LED flash, etc. I'm trying QT calls from C++ code like this:

QCameraInfo::defaultCamera().deviceName()

QList<QCameraInfo> cameras = QCameraInfo::availableCameras();

QList<QByteArray> devices = QCamera::availableDevices();

It doesn't seem to work at all on the Jolla Phone, it runs very slowly and causes the app to hang for seconds. And it returns 9 camera devices, from /dev/video0 through /dev/video8 on the Jolla Tablet, which is even more strange. What am I doing wrong?

What is the proper way to use the QCamera API?

I'm trying to detect the available cameras in the device, and get some basic properties of them, like still image resolution (which should equal to image sensor resolution), video recording resolution, presence of LED flash, etc. I'm trying QT calls from C++ code like this:

QCameraInfo::defaultCamera().deviceName()

QList<QCameraInfo> cameras = QCameraInfo::availableCameras();

QList<QByteArray> devices = QCamera::availableDevices();

It doesn't seem to work at all on the Jolla Phone, it runs very slowly and causes the app to hang for seconds. And it returns 9 camera devices, from /dev/video0 through /dev/video8 on the Jolla Tablet, which is even more strange. What am I doing wrong?