gstreamer_gl::subclass::prelude

Trait GLBaseSrcImpl

Source
pub trait GLBaseSrcImpl: PushSrcImpl + ObjectSubclass<Type: IsA<GLBaseSrc>> {
    const SUPPORTED_GL_API: GLAPI;

    // Provided methods
    fn gl_start(&self) -> Result<(), LoggableError> { ... }
    fn gl_stop(&self) { ... }
    fn fill_gl_memory(&self, memory: &GLMemory) -> Result<(), LoggableError> { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn gl_start(&self) -> Result<(), LoggableError>

called in the GL thread to setup the element GL state.

Source

fn gl_stop(&self)

called in the GL thread to setup the element GL state.

Source

fn fill_gl_memory(&self, memory: &GLMemory) -> Result<(), LoggableError>

called in the GL thread to fill the current video texture.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§