同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Defines the FrameConfig class for operations related to frame configurations.
Since:
1.0
Version:
1.0
A constructor used to create a FrameConfig instance. |
|
OHOS::Media::FrameConfig::FrameConfig (int32_t type) |
A constructor used to create a FrameConfig instance based on the configuration mode. |
A destructor used to delete the FrameConfig instance. |
|
std::list< Surface * > |
|
OHOS::Media::FrameConfig::AddSurface (Surface &surface) |
|
OHOS::Media::FrameConfig::RemoveSurface (Surface &surface) |
Removes a surface (an object of shared memory). You can call this function to release the surface when your application does not need to obtain data. |
void OHOS::Media::FrameConfig::AddSurface ([Surface](ohos-surface.md) & surface)
Description:
Adds a surface (an object of shared memory).
Parameters:
surface | Indicates the surface to add. |
OHOS::Media::FrameConfig::FrameConfig (int32_t type)
Description:
A constructor used to create a FrameConfig instance based on the configuration mode.
Parameters:
type | Indicates the frame configuration mode, which can be FRAME_CONFIG_PREVIEW, <b>FRAME_CONFIG_RECORD, or FRAME_CONFIG_CAPTURE. |
int32_t OHOS::Media::FrameConfig::GetFrameConfigType ()
Description:
Obtains the frame configuration type.
Returns:
Returns the frame configuration type if obtained; returns -1 otherwise.
std::list<[Surface](ohos-surface.md) *> OHOS::Media::FrameConfig::GetSurfaces ()
Description:
Obtains a list of shared memories (surface objects).
Returns:
Returns the list of shared memories if obtained; returns NULL otherwise.
void OHOS::Media::FrameConfig::RemoveSurface ([Surface](ohos-surface.md) & surface)
Description:
Removes a surface (an object of shared memory). You can call this function to release the surface when your application does not need to obtain data.
Parameters:
surface | Indicates the surface to remove. |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。