Skip to main content

NativeDecoderPluginFactory

Trait NativeDecoderPluginFactory 

Source
pub trait NativeDecoderPluginFactory: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn capabilities(&self) -> DecoderCapabilities;
    fn open_native_session(
        &self,
        config: &DecoderSessionConfig,
    ) -> Result<Box<dyn NativeDecoderSession>, DecoderError>;

    // Provided methods
    fn native_requirements(&self) -> DecoderNativeRequirements { ... }
    fn supports_native_frame_presentation_release(&self) -> bool { ... }
}
Expand description

Creates native-frame decoder sessions for one plugin.

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§