Package tvi.webrtc
Class YuvConverter
- java.lang.Object
-
- tvi.webrtc.YuvConverter
-
public final class YuvConverter extends java.lang.Object
Class for converting OES textures to a YUV ByteBuffer. It can be constructed on any thread, but should only be operated from a single thread with an active EGL context.
-
-
Constructor Summary
Constructors Constructor Description YuvConverter()
This class should be constructed on a thread that has an active EGL context.YuvConverter(VideoFrameDrawer videoFrameDrawer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoFrame.I420Buffer
convert(VideoFrame.TextureBuffer inputTextureBuffer)
Converts the texture buffer to I420.void
release()
-
-
-
Constructor Detail
-
YuvConverter
public YuvConverter()
This class should be constructed on a thread that has an active EGL context.
-
YuvConverter
public YuvConverter(VideoFrameDrawer videoFrameDrawer)
-
-
Method Detail
-
convert
@Nullable public VideoFrame.I420Buffer convert(VideoFrame.TextureBuffer inputTextureBuffer)
Converts the texture buffer to I420.
-
release
public void release()
-
-