CameraKit
|
int32_t GetCameraIds(std::list<string> cameraList)
|
获取cameraId列表
|
CameraKit
|
CameraAbility& GetCameraAbility(string cameraId)
|
获取指定camera的能力
|
CameraKit
|
void RegisterCameraDeviceCallback(CameraDeviceCallback* callback, EventHandler* handler)
|
注册camera设备状态回调
|
CameraKit
|
void UnregisterCameraDeviceCallback(CameraDeviceCallback* callback)
|
去注册camera设备状态回调
|
CameraKit
|
void CreateCamera(string cameraId, CameraStateCallback* callback, EventHandler* handler)
|
创建camera实例
|
Camera
|
string GetCameraId()
|
获取cameraID
|
Camera
|
CameraConfig& GetCameraConfig()
|
获取camera配置信息
|
Camera
|
FrameConfig& GetFrameConfig(int32_t type)
|
获取捕获帧类型
|
Camera
|
void Configure(CameraConfig& config)
|
配置camera
|
Camera
|
void Release()
|
释放camera
|
Camera
|
int TriggerLoopingCapture(FrameConfig& frameConfig)
|
开始循环帧捕获
|
Camera
|
void StopLoopingCapture()
|
停止循环帧捕获
|
Camera
|
int32_t TriggerSingleCapture(FrameConfig& frameConfig)
|
抓图
|
CameraConfig
|
void SetFrameStateCallback(FrameStateCallback* callback, EventHandler* handler);
|
设置帧状态回调
|
CameraConfig
|
static CameraConfig* CreateCameraConfig()
|
创建camera配置信息实例
|
CameraAbility
|
std::list<Size> GetSupportedSizes(int format)
|
根据类型获取支持输出图像尺寸大小
|
CameraAbility
|
std::list<T> GetParameterRange(uint32_t key)
|
获取支持的参数范围
|
CameraDevice
|
CameraDeviceCallback()
|
camera设备回调类构造函数
|
CameraDevice
|
void OnCameraStatus(std::string cameraId, int32_t status)
|
camera设备状态变化时的回调
|
CameraStateCallback
|
CameraStateCallback()
|
camera状态回调类构造函数
|
CameraStateCallback
|
void OnConfigured(Camera& camera)
|
camera配置成功回调
|
CameraStateCallback
|
void OnConfigureFailed(Camera& camera,int32_t errorCode)
|
camera配置失败回调
|
CameraStateCallback
|
void OnCreated(Camera& camera)
|
camera创建成功回调
|
CameraStateCallback
|
void OnCreateFailed(std::string cameraId,int32_t errorCode)
|
camera创建失败回调
|
CameraStateCallback
|
void OnReleased(Camera& camera)
|
camera释放回调
|
FrameStateCallback
|
FrameStateCallback()
|
帧状态回调类构造函数
|
FrameStateCallback
|
void OnFrameFinished(Camera& camera, FrameConfig& frameConfig, FrameResult& frameResult)
|
拍照帧完成回调
|
FrameStateCallback
|
void OnFrameError(Camera& camera, FrameConfig& frameConfig, int32_t errorCode, FrameResult& frameResult)
|
拍照帧异常回调
|
FrameConfig
|
int32_t GetFrameConfigType()
|
获取帧配置类型
|
FrameConfig
|
std::list<OHOS::Surface> GetSurfaces()
|
获取帧配置的surface
|
FrameConfig
|
void AddSurface(OHOS::AGP::UISurface& surface);
|
添加surface
|
FrameConfig
|
void RemoveSurface(OHOS::AGP::UISurface& surface);
|
删除surface
|