CameraKit
|
int32_t GetCameraIds(std::list<string> cameraList)
|
Obtains IDs of cameras that are currently available.
|
CameraKit
|
CameraAbility& GetCameraAbility(string cameraId)
|
Obtains the camera capability
|
CameraKit
|
void RegisterCameraDeviceCallback(CameraDeviceCallback* callback, EventHandler* handler)
|
Registers a camera callback for camera status changes.
|
CameraKit
|
void UnregisterCameraDeviceCallback(CameraDeviceCallback* callback)
|
Unregisters a camera callback.
|
CameraKit
|
void CreateCamera(string cameraId, CameraStateCallback* callback, EventHandler* handler)
|
Creates a Camera instance.
|
Camera
|
string GetCameraId()
|
Obtains the camera ID.
|
Camera
|
CameraConfig& GetCameraConfig()
|
Obtains the camera configuration.
|
Camera
|
FrameConfig& GetFrameConfig(int32_t type)
|
Obtains the frame configuration.
|
Camera
|
void Configure(CameraConfig& config)
|
Configures the camera using the CameraConfig object.
|
Camera
|
void Release()
|
Releases the Camera object and associated resources.
|
Camera
|
int TriggerLoopingCapture(FrameConfig& frameConfig)
|
Starts looping-frame capture.
|
Camera
|
void StopLoopingCapture()
|
Stops looping-frame capture.
|
Camera
|
int32_t TriggerSingleCapture(FrameConfig& frameConfig)
|
Starts single-frame capture.
|
CameraConfig
|
void SetFrameStateCallback(FrameStateCallback* callback, EventHandler* handler);
|
Sets a frame state callback to respond to state changes.
|
CameraConfig
|
static CameraConfig* CreateCameraConfig()
|
Creates a CameraConfig instance.
|
CameraAbility
|
std::list<Size> GetSupportedSizes(int format)
|
Obtains the supported image sizes for a specified image format.
|
CameraAbility
|
std::list<T> GetParameterRange(uint32_t key)
|
Obtains the parameter value range based on a specified parameter key.
|
CameraDevice
|
CameraDeviceCallback()
|
A constructor used to create a CameraDeviceCallback instance.
|
CameraDevice
|
void OnCameraStatus(std::string cameraId, int32_t status)
|
Called when the camera device status changes.
|
CameraStateCallback
|
CameraStateCallback()
|
A constructor used to create a CameraStateCallback instance.
|
CameraStateCallback
|
void OnConfigured(Camera& camera)
|
Called when the camera is configured.
|
CameraStateCallback
|
void OnConfigureFailed(Camera& camera,int32_t errorCode)
|
Called when the camera fails to be configured.
|
CameraStateCallback
|
void OnCreated(Camera& camera)
|
Called when the camera is successfully created.
|
CameraStateCallback
|
void OnCreateFailed(std::string cameraId,int32_t errorCode)
|
Called when the camera fails to be created.
|
CameraStateCallback
|
void OnReleased(Camera& camera)
|
Called when the camera is released.
|
FrameStateCallback
|
FrameStateCallback()
|
A constructor used to create a FrameStateCallback instance.
|
FrameStateCallback
|
void OnFrameFinished(Camera& camera, FrameConfig& frameConfig, FrameResult& frameResult)
|
Called when the frame capture is completed.
|
FrameStateCallback
|
void OnFrameError(Camera& camera, FrameConfig& frameConfig, int32_t errorCode, FrameResult& frameResult)
|
Called when the frame capture fails.
|
FrameConfig
|
int32_t GetFrameConfigType()
|
Obtains the frame configuration type.
|
FrameConfig
|
std::list<OHOS::Surface> GetSurfaces()
|
Obtains a list of surface objects (shared memories).
|
FrameConfig
|
void AddSurface(OHOS::AGP::UISurface& surface);
|
Adds a surface.
|
FrameConfig
|
void RemoveSurface(OHOS::AGP::UISurface& surface);
|
Removes a surface.
|