Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.rtc.gl.YuvConverter Class Reference

Public Member Functions

 YuvConverter ()
 
VideoFrame.I420Buffer convert (VideoFrame.TextureBuffer textureBuffer)
 
void release ()
 

Detailed Description

Class for converting OES textures to a YUV ByteBuffer. It should be constructed on a thread with an active EGL context, and only be used from that thread.

Constructor & Destructor Documentation

◆ YuvConverter()

io.agora.rtc.gl.YuvConverter.YuvConverter ( )

This class should be constructed on a thread that has an active EGL context.

Member Function Documentation

◆ convert()

VideoFrame.I420Buffer io.agora.rtc.gl.YuvConverter.convert ( VideoFrame.TextureBuffer  textureBuffer)

Converts the texture buffer to I420.