Texture Loader
abstract class TextureLoader
Content copied to clipboard
Allows to bypass default GL texture loading step when rendering a stream using GsdkStreamView.
Client code must specify dimensions for the GL texture that the renderer will provide. Then, for each frame to be rendered, loadTexture will be called; client code must override this callback to fill the GL texture according to its needs. The renderer will then scale, pad and render the loaded texture as appropriate.
Types
Frame Context
Link copied to clipboard
interface FrameContext
Content copied to clipboard
Contextual information on a frame.
Texture Context
Link copied to clipboard
interface TextureContext
Content copied to clipboard
Contextual information on the texture.
Texture Spec
Link copied to clipboard
class TextureSpec
Content copied to clipboard
Allows to specify GL texture dimensions.
Functions
get Texture Spec
Link copied to clipboard
Retrieves configured texture specification.
load Texture
Link copied to clipboard
abstract fun loadTexture(@NonNull textureContext: TextureLoader.TextureContext, @NonNull frameContext: TextureLoader.FrameContext): Boolean
Content copied to clipboard
Loads GL texture.