Package com.zego.zegoavkit2.videofilter
Class ZegoVideoFilter
- java.lang.Object
-
- com.zego.zegoavkit2.videofilter.ZegoVideoFilter
-
public abstract class ZegoVideoFilter extends java.lang.Object
外部滤镜接口定义。Copyright © 2017 Zego. All rights reserved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ZegoVideoFilter.Client
-
Field Summary
Fields Modifier and Type Field Description static int
BUFFER_TYPE_ASYNC_I420_MEM
static int
BUFFER_TYPE_ASYNC_PIXEL_BUFFER
static int
BUFFER_TYPE_HYBRID_MEM_GL_TEXTURE_2D
static int
BUFFER_TYPE_MEM
static int
BUFFER_TYPE_SURFACE_TEXTURE
static int
BUFFER_TYPE_SYNC_GL_TEXTURE_2D
static int
BUFFER_TYPE_SYNC_PIXEL_BUFFER
static int
BUFFER_TYPE_UNKNOWN
-
Constructor Summary
Constructors Constructor Description ZegoVideoFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
allocateAndStart(ZegoVideoFilter.Client client)
protected abstract int
dequeueInputBuffer(int width, int height, int stride)
protected abstract java.nio.ByteBuffer
getInputBuffer(int index)
protected abstract android.graphics.SurfaceTexture
getSurfaceTexture()
protected abstract void
onProcessCallback(int textureId, int width, int height, long timestamp_100n)
protected abstract void
queueInputBuffer(int bufferIndex, int width, int height, int stride, long timestamp_100n)
protected abstract void
stopAndDeAllocate()
protected abstract int
supportBufferType()
-
-
-
Field Detail
-
BUFFER_TYPE_UNKNOWN
public static final int BUFFER_TYPE_UNKNOWN
- See Also:
- Constant Field Values
-
BUFFER_TYPE_MEM
public static final int BUFFER_TYPE_MEM
- See Also:
- Constant Field Values
-
BUFFER_TYPE_ASYNC_PIXEL_BUFFER
public static final int BUFFER_TYPE_ASYNC_PIXEL_BUFFER
- See Also:
- Constant Field Values
-
BUFFER_TYPE_SYNC_PIXEL_BUFFER
public static final int BUFFER_TYPE_SYNC_PIXEL_BUFFER
- See Also:
- Constant Field Values
-
BUFFER_TYPE_SURFACE_TEXTURE
public static final int BUFFER_TYPE_SURFACE_TEXTURE
- See Also:
- Constant Field Values
-
BUFFER_TYPE_HYBRID_MEM_GL_TEXTURE_2D
public static final int BUFFER_TYPE_HYBRID_MEM_GL_TEXTURE_2D
- See Also:
- Constant Field Values
-
BUFFER_TYPE_SYNC_GL_TEXTURE_2D
public static final int BUFFER_TYPE_SYNC_GL_TEXTURE_2D
- See Also:
- Constant Field Values
-
BUFFER_TYPE_ASYNC_I420_MEM
public static final int BUFFER_TYPE_ASYNC_I420_MEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
allocateAndStart
protected abstract void allocateAndStart(ZegoVideoFilter.Client client)
-
stopAndDeAllocate
protected abstract void stopAndDeAllocate()
-
supportBufferType
protected abstract int supportBufferType()
-
dequeueInputBuffer
protected abstract int dequeueInputBuffer(int width, int height, int stride)
-
getInputBuffer
protected abstract java.nio.ByteBuffer getInputBuffer(int index)
-
queueInputBuffer
protected abstract void queueInputBuffer(int bufferIndex, int width, int height, int stride, long timestamp_100n)
-
getSurfaceTexture
protected abstract android.graphics.SurfaceTexture getSurfaceTexture()
-
onProcessCallback
protected abstract void onProcessCallback(int textureId, int width, int height, long timestamp_100n)
-
-