camera_manager.h
Overview
The camera_manager.h file declares the camera manager concepts.
Library: libohcamera.so
System capability: SystemCapability.Multimedia.Camera.Core
Since: 11
Related module: OH_Camera
Summary
Structs
Name | Description |
---|---|
struct CameraManager_Callbacks | Defines the callbacks used to listen for camera status changes. |
Types
Name | Description |
---|---|
typedef void(* OH_CameraManager_StatusCallback) (Camera_Manager *cameraManager, Camera_StatusInfo *status) | Defines the pointer to the callback defined in the CameraManager_Callbacks struct and used to report the camera manager status. |
typedef struct CameraManager_Callbacks CameraManager_Callbacks | Defines the callbacks used to listen for camera status changes. |
Functions
Name | Description |
---|---|
Camera_ErrorCode OH_CameraManager_RegisterCallback (Camera_Manager *cameraManager, CameraManager_Callbacks *callback) | Registers a callback to listen for camera status changes. |
Camera_ErrorCode OH_CameraManager_UnregisterCallback (Camera_Manager *cameraManager, CameraManager_Callbacks *callback) | Unregisters the callback used to listen for camera status changes. |
Camera_ErrorCode OH_CameraManager_GetSupportedCameras (Camera_Manager *cameraManager, Camera_Device **cameras, uint32_t *size) | Obtains supported cameras. |
Camera_ErrorCode OH_CameraManager_DeleteSupportedCameras (Camera_Manager *cameraManager, Camera_Device *cameras, uint32_t size) | Deletes supported cameras. |
Camera_ErrorCode OH_CameraManager_GetSupportedCameraOutputCapability (Camera_Manager *cameraManager, const Camera_Device *camera, Camera_OutputCapability **cameraOutputCapability) | Obtains the output capability supported by a camera in the specified mode. |
Camera_ErrorCode OH_CameraManager_DeleteSupportedCameraOutputCapability (Camera_Manager *cameraManager, Camera_OutputCapability *cameraOutputCapability) | Deletes the output capability supported by a camera. |
Camera_ErrorCode OH_CameraManager_IsCameraMuted (Camera_Manager *cameraManager, bool *isCameraMuted) | Checks whether a camera is muted. |
Camera_ErrorCode OH_CameraManager_CreateCaptureSession (Camera_Manager *cameraManager, Camera_CaptureSession **captureSession) | Creates a CaptureSession instance. |
Camera_ErrorCode OH_CameraManager_CreateCameraInput (Camera_Manager *cameraManager, const Camera_Device *camera, Camera_Input **cameraInput) | Creates a CameraInput instance. |
Camera_ErrorCode OH_CameraManager_CreateCameraInput_WithPositionAndType (Camera_Manager *cameraManager, Camera_Position position, Camera_Type type, Camera_Input **cameraInput) | Creates a CameraInput instance with the specified location and type. |
Camera_ErrorCode OH_CameraManager_CreatePreviewOutput (Camera_Manager *cameraManager, const Camera_Profile *profile, const char *surfaceId, Camera_PreviewOutput **previewOutput) | Creates a PreviewOutput instance. |
Camera_ErrorCode OH_CameraManager_CreatePhotoOutput (Camera_Manager *cameraManager, const Camera_Profile *profile, const char *surfaceId, Camera_PhotoOutput **photoOutput) | Creates a PhotoOutput instance. |
Camera_ErrorCode OH_CameraManager_CreateVideoOutput (Camera_Manager *cameraManager, const Camera_VideoProfile *profile, const char *surfaceId, Camera_VideoOutput **videoOutput) | Creates a VideoOutput instance. |
Camera_ErrorCode OH_CameraManager_CreateMetadataOutput (Camera_Manager *cameraManager, const Camera_MetadataObjectType *profile, Camera_MetadataOutput **metadataOutput) | Creates a MetadataOutput instance. |