同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Defines the camera capability set for applications to achieve and access the capabilities.
Since:
1.0
Version:
1.0
Declares functions of the CameraAbility class. |
A constructor used to create a CameraAbility instance. |
|
A destructor used to delete the CameraAbility instance. |
|
OHOS::Media::CameraAbility::GetSupportedSizes (int format) const |
Obtains the supported image sizes for a specified image format. |
Obtains the parameter value range based on a specified parameter key. |
OHOS::Media::CameraAbility::CameraAbility ()
Description:
A constructor used to create a CameraAbility instance.
std::list<T> OHOS::Media::CameraAbility::GetParameterRange (uint32_t key) const
Description:
Obtains the parameter value range based on a specified parameter key.
Parameters:
key | Indicates the parameter key. |
Returns:
Returns the parameter value range if obtained; returns NULL otherwise.
std::list<CameraPicSize> OHOS::Media::CameraAbility::GetSupportedSizes (int format) const
Description:
Obtains the supported image sizes for a specified image format.
Parameters:
format | Indicates the image format, which can be YUV, H.265, or H.264. |
Returns:
Returns the image size list if obtained; returns NULL otherwise.
int32_t OHOS::Media::CameraAbility::SetParameterRange (uint32_t key, std::list< T > rangeList )
Description:
Sets value ranges for a specified parameter.
Parameters:
key | Indicates the parameter key. |
rangeList | Indicates the list of parameter value ranges. |
Returns:
Returns SUCCESS if the setting is successful; returns FAIL otherwise.
virtual OHOS::Media::CameraAbility::~CameraAbility ()
Description:
A destructor used to delete the CameraAbility instance.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。