【Qt】【QCamera】-status-摄像头状态

8 篇文章 0 订阅
1 篇文章 0 订阅

【Qt】【QCamera】-status-摄像头状态

enum 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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值