Camera
An instance of quick access to the camera is provided, an interface for previewing data is obtained, method of managing the life cycle of the camera is encapsulated, and the monitoring of the camera.
Description of functional types
CameraManager
Description of Member Function
CameraManager addPreviewCallbackWithBuffer(PreviewCallback callback)
CameraManager removePreviewCallbackWithBuffer(PreviewCallback callback)
CameraManager getInstance(int cameraId)
CameraManager setDisplayOrientation(int degree)
CameraManager setPreviewTexture(SurfaceTexture texture)
List getSupportedPreviewSizes()
void initParameters(int width, int height, int degree, SurfaceTexture surfaceTexture)
void openCamera(Context context)
void releaseCamera()
void startPreview()
void stopPreview()
Description of Entities
Description of functional types
RgbAndIrCameraManager
Description of Member Function
void addPreviewCallbackWithBuffer(IRgbAndIrPreviewCallback callback)
void removePreviewCallbackWithBuffer(IRgbAndIrPreviewCallback callback)
RgbAndIrCameraManager getInstance()
List getSupportedPreviewSizes(CameraType cameraType)
void initParameters(int width, int height, int degree,SurfaceTexture irSurfaceTexture, SurfaceTexture rgbSurfaceTexture, CameraType cameraType)
void openCamera(Context context,CameraType cameraType)
void releaseCamera(CameraType cameraType)
void startPreview(CameraType cameraType)
void stopPreview(CameraType cameraType)
void resetPreviewSize(ScaleManager.Size size,CameraType cameraType)
Description of Entities
CameraType
最終更新
役に立ちましたか?