Class ZegoVideoFilter


  • public abstract class ZegoVideoFilter
    extends java.lang.Object
    外部滤镜接口定义。

    Copyright © 2017 Zego. All rights reserved.

    • Field Detail

      • 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
    • Constructor Detail

      • ZegoVideoFilter

        public ZegoVideoFilter()
    • Method Detail

      • 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)