harmony 鸿蒙camera_input.h

  • 2025-06-12
  • 浏览 (4)

camera_input.h

Overview

The camera_input.h file declares the camera input concepts.

Library: libohcamera.so

File to include: <ohcamera/camera_input.h>

System capability: SystemCapability.Multimedia.Camera.Core

Since: 11

Related module: OH_Camera

Summary

Structs

Name Description
struct CameraInput_Callbacks Describes the callbacks used to listen for camera input errors.

Types

Name Description
typedef struct Camera_Input Camera_Input Defines a struct for the camera input object.
typedef void(* OH_CameraInput_OnError) (const Camera_Input *cameraInput, Camera_ErrorCode errorCode) Defines the pointer to the callback defined in the CameraInput_Callbacks struct and used to report camera input errors.
typedef struct CameraInput_Callbacks CameraInput_Callbacks Defines a struct for the callbacks used to listen for camera input errors.

Functions

Name Description
Camera_ErrorCode OH_CameraInput_RegisterCallback (Camera_Input *cameraInput, CameraInput_Callbacks *callback) Registers a callback to listen for camera input events.
Camera_ErrorCode OH_CameraInput_UnregisterCallback (Camera_Input *cameraInput, CameraInput_Callbacks *callback) Unregisters the callback used to listen for camera input events.
Camera_ErrorCode OH_CameraInput_Open (Camera_Input *cameraInput) Opens a camera.
Camera_ErrorCode OH_CameraInput_OpenSecureCamera (Camera_Input *cameraInput, uint64_t *secureSeqId) Opens a camera in secure mode.
Camera_ErrorCode OH_CameraInput_OpenConcurrentCameras (Camera_Input *cameraInput, Camera_ConcurrentType type) Opens the camera based on the specified concurrency type.
Camera_ErrorCode OH_CameraInput_Close (Camera_Input *cameraInput) Closes a camera.
Camera_ErrorCode OH_CameraInput_Release (Camera_Input *cameraInput) Releases a CameraInput instance. This function has the same capability as OH_CameraInput_Close. Therefore, you do not need to call OH_CameraInput_Close after calling this function.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Camera Kit

harmony 鸿蒙Camera_CaptureEndInfo

harmony 鸿蒙Camera_CaptureStartInfo

harmony 鸿蒙Camera_ConcurrentInfo

harmony 鸿蒙Camera_Device

harmony 鸿蒙Camera_FrameRateRange

harmony 鸿蒙Camera_FrameShutterEndInfo

harmony 鸿蒙Camera_FrameShutterInfo

harmony 鸿蒙Camera_Location

harmony 鸿蒙Camera_MetadataObject

0  赞