Package com.zego.zegoavkit2
Class ZegoVideoCaptureDevice
- java.lang.Object
-
- com.zego.zegoavkit2.ZegoVideoCaptureDevice
-
public abstract class ZegoVideoCaptureDevice extends java.lang.Object
外部采集设备定义。Copyright © 2017 Zego. All rights reserved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ZegoVideoCaptureDevice.Client
static class
ZegoVideoCaptureDevice.VideoCaptureFormat
static class
ZegoVideoCaptureDevice.VideoCodecConfig
static class
ZegoVideoCaptureDevice.ZegoVideoCodecType
static class
ZegoVideoCaptureDevice.ZegoVideoFlipMode
-
Field Summary
Fields Modifier and Type Field Description static int
PIXEL_BUFFER_TYPE_CV_PIXEL_BUFFER
static int
PIXEL_BUFFER_TYPE_ENCODED_FRAME
static int
PIXEL_BUFFER_TYPE_GL_TEXTURE_2D
static int
PIXEL_BUFFER_TYPE_GL_TEXTURE_EXTERNAL_OES
static int
PIXEL_BUFFER_TYPE_MEM
static int
PIXEL_BUFFER_TYPE_SURFACE_TEXTURE
static int
PIXEL_BUFFER_TYPE_UNKNOWN
static int
PIXEL_FORMAT_BGRA32
static int
PIXEL_FORMAT_I420
static int
PIXEL_FORMAT_NV12
static int
PIXEL_FORMAT_NV21
static int
PIXEL_FORMAT_RGBA32
static int
PIXEL_FORMAT_UNKNOWN
-
Constructor Summary
Constructors Constructor Description ZegoVideoCaptureDevice()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
allocateAndStart(ZegoVideoCaptureDevice.Client client)
protected abstract int
enableTorch(boolean bEnable)
protected abstract int
setCaptureRotation(int nRotation)
protected abstract int
setFrameRate(int framerate)
protected abstract int
setFrontCam(int bFront)
protected abstract int
setPowerlineFreq(int nFreq)
protected abstract int
setResolution(int width, int height)
protected abstract int
setView(android.view.View view)
protected abstract int
setViewMode(int nMode)
protected abstract int
setViewRotation(int nRotation)
protected abstract int
startCapture()
protected abstract int
startPreview()
protected abstract void
stopAndDeAllocate()
protected abstract int
stopCapture()
protected abstract int
stopPreview()
protected abstract int
supportBufferType()
protected abstract int
takeSnapshot()
-
-
-
Field Detail
-
PIXEL_FORMAT_UNKNOWN
public static final int PIXEL_FORMAT_UNKNOWN
- See Also:
- Constant Field Values
-
PIXEL_FORMAT_I420
public static final int PIXEL_FORMAT_I420
- See Also:
- Constant Field Values
-
PIXEL_FORMAT_NV12
public static final int PIXEL_FORMAT_NV12
- See Also:
- Constant Field Values
-
PIXEL_FORMAT_NV21
public static final int PIXEL_FORMAT_NV21
- See Also:
- Constant Field Values
-
PIXEL_FORMAT_BGRA32
public static final int PIXEL_FORMAT_BGRA32
- See Also:
- Constant Field Values
-
PIXEL_FORMAT_RGBA32
public static final int PIXEL_FORMAT_RGBA32
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_UNKNOWN
public static final int PIXEL_BUFFER_TYPE_UNKNOWN
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_MEM
public static final int PIXEL_BUFFER_TYPE_MEM
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_CV_PIXEL_BUFFER
public static final int PIXEL_BUFFER_TYPE_CV_PIXEL_BUFFER
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_SURFACE_TEXTURE
public static final int PIXEL_BUFFER_TYPE_SURFACE_TEXTURE
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_GL_TEXTURE_2D
public static final int PIXEL_BUFFER_TYPE_GL_TEXTURE_2D
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_ENCODED_FRAME
public static final int PIXEL_BUFFER_TYPE_ENCODED_FRAME
- See Also:
- Constant Field Values
-
PIXEL_BUFFER_TYPE_GL_TEXTURE_EXTERNAL_OES
public static final int PIXEL_BUFFER_TYPE_GL_TEXTURE_EXTERNAL_OES
- See Also:
- Constant Field Values
-
-
Method Detail
-
allocateAndStart
protected abstract void allocateAndStart(ZegoVideoCaptureDevice.Client client)
-
stopAndDeAllocate
protected abstract void stopAndDeAllocate()
-
startCapture
protected abstract int startCapture()
-
stopCapture
protected abstract int stopCapture()
-
supportBufferType
protected abstract int supportBufferType()
-
setFrameRate
protected abstract int setFrameRate(int framerate)
-
setResolution
protected abstract int setResolution(int width, int height)
-
setFrontCam
protected abstract int setFrontCam(int bFront)
-
setView
protected abstract int setView(android.view.View view)
-
setViewMode
protected abstract int setViewMode(int nMode)
-
setViewRotation
protected abstract int setViewRotation(int nRotation)
-
setCaptureRotation
protected abstract int setCaptureRotation(int nRotation)
-
startPreview
protected abstract int startPreview()
-
stopPreview
protected abstract int stopPreview()
-
enableTorch
protected abstract int enableTorch(boolean bEnable)
-
takeSnapshot
protected abstract int takeSnapshot()
-
setPowerlineFreq
protected abstract int setPowerlineFreq(int nFreq)
-
-