public class AliVideoCaptureCamera2 extends AliVideoCapture
AliVideoCapture.FramerateRange
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
int |
getCameraId() |
int |
getCurrentExposure() |
float |
getCurrentZoom() |
int |
getMaxExposure() |
float |
getMaxZoom() |
int |
getMinExposure() |
static java.util.List<android.util.Size> |
getSupportedResolutions(int id,
android.content.Context context) |
int |
init(int cameraId,
int width,
int height,
int fps,
int rotationMode,
int customRotation,
boolean surfaceCBMode,
boolean focusBySensor,
android.content.Context context,
SurfaceTextureHelper surfaceTextureHelper,
int alivcBusiness) |
boolean |
isCameraAutoFocusFaceModeSupported() |
boolean |
isPreviewRunning() |
boolean |
isSupportAutoFocus() |
boolean |
isSupportExposurePoint() |
boolean |
isSupportFlash() |
boolean |
isSupportFocusPoint() |
int |
setAutoFocus(boolean auto) |
int |
setCameraAutoFocusFaceModeEnabled(boolean enable) |
int |
setExposure(int exposure) |
int |
setExposurePoint(float x,
float y) |
int |
setFocusPoint(float x,
float y) |
int |
setOrientation(int orientation) |
int |
setTorch(boolean on) |
void |
setVideoSourceListener(com.alivc.component.capture.AliVideoCapture.VideoSourceListener listener) |
void |
setVideoSourceTextureListener(com.alivc.component.capture.AliVideoCapture.VideoSourceTextureListener listener) |
int |
setZoom(float zoom) |
int |
start(int surfaceId) |
int |
stop() |
int |
switchCamera() |
public int init(int cameraId, int width, int height, int fps, int rotationMode, int customRotation, boolean surfaceCBMode, boolean focusBySensor, android.content.Context context, SurfaceTextureHelper surfaceTextureHelper, int alivcBusiness)
public int start(int surfaceId)
public int stop()
public void destroy()
public int switchCamera()
public int setOrientation(int orientation)
public int setAutoFocus(boolean auto)
public boolean isSupportFocusPoint()
public int setFocusPoint(float x, float y)
public boolean isSupportExposurePoint()
public int setExposurePoint(float x, float y)
public boolean isCameraAutoFocusFaceModeSupported()
public int setCameraAutoFocusFaceModeEnabled(boolean enable)
public float getMaxZoom()
public int setZoom(float zoom)
public float getCurrentZoom()
public int getCameraId()
public int setExposure(int exposure)
public int getCurrentExposure()
public int getMinExposure()
public int getMaxExposure()
public int setTorch(boolean on)
public boolean isSupportAutoFocus()
public boolean isSupportFlash()
public boolean isPreviewRunning()
public void setVideoSourceListener(com.alivc.component.capture.AliVideoCapture.VideoSourceListener listener)
public void setVideoSourceTextureListener(com.alivc.component.capture.AliVideoCapture.VideoSourceTextureListener listener)
public static java.util.List<android.util.Size> getSupportedResolutions(int id, android.content.Context context)