Trait gstreamer_gl::subclass::prelude::GLFilterImpl
source · pub trait GLFilterImpl: GLFilterImplExt + GLBaseFilterImpl {
const MODE: GLFilterMode;
const ADD_RGBA_PAD_TEMPLATES: bool = true;
// Provided methods
fn set_caps(
&self,
incaps: &Caps,
outcaps: &Caps,
) -> Result<(), LoggableError> { ... }
fn filter(
&self,
input: &Buffer,
output: &Buffer,
) -> Result<(), LoggableError> { ... }
fn filter_texture(
&self,
input: &GLMemory,
output: &GLMemory,
) -> Result<(), LoggableError> { ... }
fn init_fbo(&self) -> Result<(), LoggableError> { ... }
fn transform_internal_caps(
&self,
direction: PadDirection,
caps: &Caps,
filter_caps: Option<&Caps>,
) -> Option<Caps> { ... }
}
Required Associated Constants§
const MODE: GLFilterMode
Provided Associated Constants§
sourceconst ADD_RGBA_PAD_TEMPLATES: bool = true
const ADD_RGBA_PAD_TEMPLATES: bool = true
Calls add_rgba_pad_templates
in GLFilter::class_init
if true
.
Provided Methods§
sourcefn set_caps(&self, incaps: &Caps, outcaps: &Caps) -> Result<(), LoggableError>
fn set_caps(&self, incaps: &Caps, outcaps: &Caps) -> Result<(), LoggableError>
mirror from gst_base::BaseTransform
sourcefn filter(&self, input: &Buffer, output: &Buffer) -> Result<(), LoggableError>
fn filter(&self, input: &Buffer, output: &Buffer) -> Result<(), LoggableError>
perform operations on the input and output buffers. In general,
you should avoid using this method if at all possible. One valid
use-case for using this is keeping previous buffers for future calculations.
Note: If self
exists, then filter_texture
is not run
sourcefn filter_texture(
&self,
input: &GLMemory,
output: &GLMemory,
) -> Result<(), LoggableError>
fn filter_texture( &self, input: &GLMemory, output: &GLMemory, ) -> Result<(), LoggableError>
sourcefn init_fbo(&self) -> Result<(), LoggableError>
fn init_fbo(&self) -> Result<(), LoggableError>
perform initialization when the Framebuffer object is created
sourcefn transform_internal_caps(
&self,
direction: PadDirection,
caps: &Caps,
filter_caps: Option<&Caps>,
) -> Option<Caps>
fn transform_internal_caps( &self, direction: PadDirection, caps: &Caps, filter_caps: Option<&Caps>, ) -> Option<Caps>
Perform sub-class specific modifications of the caps to be processed between upload on input and before download for output.
Object Safety§
This trait is not object safe.