-
- All Implemented Interfaces:
-
android.hardware.Camera.ErrorCallback,android.hardware.Camera.PreviewCallback,com.otaliastudios.cameraview.frame.ByteBufferFrameManager.BufferCallback,com.otaliastudios.cameraview.picture.PictureRecorder.PictureResultListener,com.otaliastudios.cameraview.preview.CameraPreview.SurfaceCallback,com.otaliastudios.cameraview.video.VideoRecorder.VideoResultListener
public class Camera1Engine extends CameraBaseEngine implements Camera.PreviewCallback, Camera.ErrorCallback, ByteBufferFrameManager.BufferCallback
-
-
Constructor Summary
Constructors Constructor Description Camera1Engine(CameraEngine.Callback callback)
-
Method Summary
Modifier and Type Method Description voidonError(int error, Camera camera)voidonVideoResult(@Nullable() VideoResult.Stub result, @Nullable() Exception exception)The operation was completed, either with success or with an error. voidsetFlash(@NonNull() Flash flash)voidsetLocation(@Nullable() Location location)voidsetWhiteBalance(@NonNull() WhiteBalance whiteBalance)voidsetHdr(@NonNull() Hdr hdr)voidsetZoom(float zoom, @Nullable() Array<PointF> points, boolean notify)voidsetExposureCorrection(float EVvalue, @NonNull() Array<float> bounds, @Nullable() Array<PointF> points, boolean notify)voidsetPlaySounds(boolean playSounds)voidsetPreviewFrameRate(float previewFrameRate)voidsetPictureFormat(@NonNull() PictureFormat pictureFormat)ByteBufferFrameManagergetFrameManager()voidsetHasFrameProcessors(boolean hasFrameProcessors)voidsetFrameProcessingFormat(int format)voidonBufferAvailable(@NonNull() Array<byte> buffer)voidonPreviewFrame(Array<byte> data, Camera camera)voidstartAutoFocus(@Nullable() Gesture gesture, @NonNull() MeteringRegions regions, @NonNull() PointF legacyPoint)-
Methods inherited from class com.otaliastudios.cameraview.engine.CameraBaseEngine
getAngles, getAudio, getAudioBitRate, getAudioCodec, getAutoFocusResetDelay, getCameraOptions, getExposureCorrectionValue, getFacing, getFlash, getFrameManager, getFrameProcessingFormat, getFrameProcessingMaxHeight, getFrameProcessingMaxWidth, getFrameProcessingPoolSize, getHdr, getLocation, getMode, getOverlay, getPictureFormat, getPictureMetering, getPictureSize, getPictureSizeSelector, getPictureSnapshotMetering, getPreview, getPreviewFrameRate, getPreviewFrameRateExact, getPreviewStreamSize, getPreviewStreamSizeSelector, getSnapshotMaxHeight, getSnapshotMaxWidth, getUncroppedSnapshotSize, getVideoBitRate, getVideoCodec, getVideoMaxDuration, getVideoMaxSize, getVideoSize, getVideoSizeSelector, getWhiteBalance, getZoomValue, hasFrameProcessors, isTakingPicture, isTakingVideo, onPictureResult, onPictureShutter, onSurfaceChanged, onVideoRecordingEnd, onVideoRecordingStart, setAudio, setAudioBitRate, setAudioCodec, setAutoFocusResetDelay, setFacing, setFrameProcessingMaxHeight, setFrameProcessingMaxWidth, setFrameProcessingPoolSize, setMode, setOverlay, setPictureMetering, setPictureSizeSelector, setPictureSnapshotMetering, setPreview, setPreviewFrameRateExact, setPreviewStreamSizeSelector, setSnapshotMaxHeight, setSnapshotMaxWidth, setVideoBitRate, setVideoCodec, setVideoMaxDuration, setVideoMaxSize, setVideoSizeSelector, stopVideo, takePicture, takePictureSnapshot, takeVideo, takeVideoSnapshot -
Methods inherited from class com.otaliastudios.cameraview.engine.CameraEngine
destroy, getPictureSize, getState, getTargetState, getVideoSize, isChangingState, onSurfaceAvailable, onSurfaceDestroyed, restart, setExposureCorrection, setZoom, start, startAutoFocus, stop, takePicture, takeVideo, takeVideoSnapshot -
Methods inherited from class android.hardware.Camera.PreviewCallback
onPreviewFrame -
Methods inherited from class android.hardware.Camera.ErrorCallback
onError -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Camera1Engine
Camera1Engine(CameraEngine.Callback callback)
-
-
Method Detail
-
onVideoResult
void onVideoResult(@Nullable() VideoResult.Stub result, @Nullable() Exception exception)
The operation was completed, either with success or with an error.
- Parameters:
result- the result or null if errorexception- the error or null if everything went fine
-
setLocation
void setLocation(@Nullable() Location location)
-
setWhiteBalance
void setWhiteBalance(@NonNull() WhiteBalance whiteBalance)
-
setExposureCorrection
void setExposureCorrection(float EVvalue, @NonNull() Array<float> bounds, @Nullable() Array<PointF> points, boolean notify)
-
setPlaySounds
void setPlaySounds(boolean playSounds)
-
setPreviewFrameRate
void setPreviewFrameRate(float previewFrameRate)
-
setPictureFormat
void setPictureFormat(@NonNull() PictureFormat pictureFormat)
-
getFrameManager
@NonNull() ByteBufferFrameManager getFrameManager()
-
setHasFrameProcessors
void setHasFrameProcessors(boolean hasFrameProcessors)
-
setFrameProcessingFormat
void setFrameProcessingFormat(int format)
-
onBufferAvailable
void onBufferAvailable(@NonNull() Array<byte> buffer)
-
onPreviewFrame
void onPreviewFrame(Array<byte> data, Camera camera)
-
startAutoFocus
void startAutoFocus(@Nullable() Gesture gesture, @NonNull() MeteringRegions regions, @NonNull() PointF legacyPoint)
-
-
-
-