【Qt】【QCamera】-status-摄像头状态
This enum holds the current status of the camera.
Constant | Value | Description |
QCamera::ActiveStatus | 8 | The camera has been started and can produce data. The viewfinder displays video frames in active state. Depending on backend, changing some camera settings like capture mode, codecs or resolution in ActiveState may lead to changing the camera status to LoadedStatus and StartingStatus while the settings are applied and back to ActiveStatus when the camera is ready. |
QCamera::StartingStatus | 6 | The camera is starting in result of state transition to QCamera::ActiveState. The camera service is not ready to capture yet. |
QCamera::StoppingStatus | 7 | The camera is stopping in result of state transition from QCamera::ActiveState to QCamera::LoadedState or QCamera::UnloadedState. |
QCamera::StandbyStatus | 5 | The camera is in the power saving standby mode. The camera may come to the standby mode after some time of inactivity in the QCamera::LoadedState state. |
QCamera::LoadedStatus | 4 | The camera is loaded and ready to be configured. This status indicates the camera device is opened and it's possible to query for supported image and video capture settings, like resolution, framerate and codecs. |
QCamera::LoadingStatus | 2 | The camera device loading in result of state transition from QCamera::UnloadedState to QCamera::LoadedState or QCamera::ActiveState. |
QCamera::UnloadingStatus | 3 | The camera device is unloading in result of state transition from QCamera::LoadedState or QCamera::ActiveState to QCamera::UnloadedState. |
QCamera::UnloadedStatus | 1 | The initial camera status, with camera not loaded. The camera capabilities including supported capture settings may be unknown. |
QCamera::UnavailableStatus | 0 | The camera or camera backend is not available. |