enableCustomVideoProcess abstract method

Future<V2TXLiveCode> enableCustomVideoProcess(
  1. bool enable,
  2. V2TXLivePixelFormat pixelFormat,
  3. V2TXLiveBufferType bufferType
)

Enable/disable custom video processing

Parameter:

enable true: Enabled; false: Disabled. Default: false

pixelFormat Pixel format of the video called back for custom pre-processingV2TXLivePixelFormat

bufferType Data format of the video called back for custom pre-processingV2TXLiveBufferType

@note Supported format combinations: V2TXLivePixelFormatTexture2D+V2TXLiveBufferTypeTexture V2TXLivePixelFormatI420+V2TXLiveBufferTypeByteBuffer

Return:

  • V2TXLIVE_OK: Succeed
  • V2TXLIVE_ERROR_NOT_SUPPORTED: Unsupported formats

Implementation

Future<V2TXLiveCode> enableCustomVideoProcess(bool enable, V2TXLivePixelFormat pixelFormat, V2TXLiveBufferType bufferType);