webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
org.webrtc.GlTextureFrameBuffer Class Reference

Public Member Functions

 GlTextureFrameBuffer (int pixelFormat)
 
void setSize (int width, int height)
 
int getWidth ()
 
int getHeight ()
 
int getFrameBufferId ()
 
int getTextureId ()
 
void release ()
 

Detailed Description

Helper class for handling OpenGL framebuffer with only color attachment and no depth or stencil buffer. Intended for simple tasks such as texture copy, texture downscaling, and texture color conversion.

Constructor & Destructor Documentation

◆ GlTextureFrameBuffer()

org.webrtc.GlTextureFrameBuffer.GlTextureFrameBuffer ( int  pixelFormat)
inline

Generate texture and framebuffer resources. An EGLContext must be bound on the current thread when calling this function. The framebuffer is not complete until setSize() is called.

Member Function Documentation

◆ getFrameBufferId()

int org.webrtc.GlTextureFrameBuffer.getFrameBufferId ( )
inline

◆ getHeight()

int org.webrtc.GlTextureFrameBuffer.getHeight ( )
inline

◆ getTextureId()

int org.webrtc.GlTextureFrameBuffer.getTextureId ( )
inline

◆ getWidth()

int org.webrtc.GlTextureFrameBuffer.getWidth ( )
inline

◆ release()

void org.webrtc.GlTextureFrameBuffer.release ( )
inline

Release texture and framebuffer. An EGLContext must be bound on the current thread when calling this function. This object should not be used after this call.

◆ setSize()

void org.webrtc.GlTextureFrameBuffer.setSize ( int  width,
int  height 
)
inline

(Re)allocate texture. Will do nothing if the requested size equals the current size. An EGLContext must be bound on the current thread when calling this function. Must be called at least once before using the framebuffer. May be called multiple times to change size.


The documentation for this class was generated from the following file: