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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".