MultiMedia_FrameStateCallback
Overview
Provides callbacks for frame state changes, in which you can implement operations to response to the changes.
Since:
1.0
Version:
1.0
Summary
Files
Data Structures
Provides functions to listen for frame states and response to the state changes. |
Functions
OHOS::Media::FrameStateCallback::FrameStateCallback ()=default |
A constructor used to create a FrameStateCallback instance. |
OHOS::Media::FrameStateCallback::~FrameStateCallback ()=default |
A destructor used to delete the FrameStateCallback instance. |
OHOS::Media::FrameStateCallback::OnFrameFinished (Camera &camera, FrameConfig &frameConfig, FrameResult &frameResult) |
|
OHOS::Media::FrameStateCallback::OnFrameError (Camera &camera, FrameConfig &frameConfig, int32_t errorCode, FrameResult &frameResult) |
Details
Function Documentation
FrameStateCallback()
OHOS::Media::FrameStateCallback::FrameStateCallback ()
Description:
A constructor used to create a FrameStateCallback instance.
OnFrameError()
virtual void OHOS::Media::FrameStateCallback::OnFrameError ([Camera]($api-api-SmartVision-Devices-OHOS-Media-Camera.md) & camera, [FrameConfig]($api-api-SmartVision-Devices-OHOS-Media-FrameConfig.md) & frameConfig, int32_t errorCode, FrameResult & frameResult )
Description:
Called when the frame capture fails.
Parameters:
camera | Indicates the camera. |
frameConfig | Indicates the frame configuration. |
errorCode | Indicates the error code. |
frameResult | Indicates the capture results. |
OnFrameFinished()
virtual void OHOS::Media::FrameStateCallback::OnFrameFinished ([Camera]($api-api-SmartVision-Devices-OHOS-Media-Camera.md) & camera, [FrameConfig]($api-api-SmartVision-Devices-OHOS-Media-FrameConfig.md) & frameConfig, FrameResult & frameResult )
Description:
Called when the frame capture is finished.
Parameters:
camera | Indicates the camera. |
frameConfig | Indicates the frame configuration. |
frameResult | Indicates the capture results. |
~FrameStateCallback()
OHOS::Media::FrameStateCallback::~FrameStateCallback ()
Description:
A destructor used to delete the FrameStateCallback instance.