-
- All Implemented Interfaces:
-
com.herohan.uvcapp.ICameraHelper
public class CameraHelper implements ICameraHelper
-
-
Constructor Summary
Constructors Constructor Description CameraHelper()
-
Method Summary
-
-
Method Detail
-
setStateCallback
void setStateCallback(ICameraHelper.StateCallback callback)
-
getDeviceList
List<UsbDevice> getDeviceList()
-
selectDevice
void selectDevice(UsbDevice device)
-
getSupportedFormatList
List<Format> getSupportedFormatList()
-
getSupportedSizeList
List<Size> getSupportedSizeList()
-
getPreviewSize
Size getPreviewSize()
-
setPreviewSize
void setPreviewSize(Size size)
-
addSurface
void addSurface(Object surface, boolean isRecordable)
-
removeSurface
void removeSurface(Object surface)
-
setButtonCallback
void setButtonCallback(IButtonCallback callback)
-
setFrameCallback
void setFrameCallback(IFrameCallback callback, int pixelFormat)
-
openCamera
void openCamera()
-
openCamera
void openCamera(Size size)
-
openCamera
void openCamera(UVCParam param)
-
closeCamera
void closeCamera()
-
startPreview
void startPreview()
-
stopPreview
void stopPreview()
-
getUVCControl
UVCControl getUVCControl()
-
takePicture
void takePicture(IImageCapture.OutputFileOptions options, IImageCapture.OnImageCaptureCallback callback)
-
isRecording
boolean isRecording()
-
startRecording
void startRecording(VideoCapture.OutputFileOptions options, VideoCapture.OnVideoCaptureCallback callback)
-
stopRecording
void stopRecording()
-
isCameraOpened
boolean isCameraOpened()
-
release
void release()
-
releaseAll
void releaseAll()
-
getPreviewConfig
CameraPreviewConfig getPreviewConfig()
Returns the current preview settings for this Camera.If modifications are made to the returned Config, they must be passedto setPreviewConfig to take effect.
-
setPreviewConfig
void setPreviewConfig(CameraPreviewConfig config)
Changes the preview settings for this Camera.
- Parameters:
config- the Parameters to use for this Camera
-
getImageCaptureConfig
ImageCaptureConfig getImageCaptureConfig()
Returns the current ImageCapture settings for this Camera.If modifications are made to the returned Config, they must be passedto setImageCaptureConfig to take effect.
-
setImageCaptureConfig
void setImageCaptureConfig(ImageCaptureConfig config)
Changes the ImageCapture settings for this Camera.
- Parameters:
config- the Parameters to use for this Camera
-
getVideoCaptureConfig
VideoCaptureConfig getVideoCaptureConfig()
Returns the current VideoCapture settings for this Camera.If modifications are made to the returned Config, they must be passedto setVideoCaptureConfig to take effect.
-
setVideoCaptureConfig
void setVideoCaptureConfig(VideoCaptureConfig config)
Changes the VideoCapture settings for this Camera.
- Parameters:
config- the Parameters to use for this Camera
-
registerCallback
void registerCallback()
-
unregisterCallback
void unregisterCallback()
-
-
-
-