pub struct CodecRegistry { /* private fields */ }Expand description
Implementations§
Source§impl CodecRegistry
impl CodecRegistry
Sourcepub fn handle(&self) -> CodecRegistryHandle
pub fn handle(&self) -> CodecRegistryHandle
Obtain a clonable handle.
Sourcepub fn with_enabled_codecs() -> Result<Self, CodecError>
pub fn with_enabled_codecs() -> Result<Self, CodecError>
Create a registry pre-populated with codecs enabled for the current build.
Sourcepub fn with_enabled_codecs_for_max(
max_width: u32,
max_height: u32,
) -> Result<Self, CodecError>
pub fn with_enabled_codecs_for_max( max_width: u32, max_height: u32, ) -> Result<Self, CodecError>
Create a registry and register built-ins using a suggested max frame size (for buffer pools).
Sourcepub fn register_enabled_codecs_default(&self) -> Result<(), CodecError>
pub fn register_enabled_codecs_default(&self) -> Result<(), CodecError>
Register codecs that are available under the current feature set using default pool sizing.
Sourcepub fn register_enabled_codecs(
&self,
max_width: u32,
max_height: u32,
) -> Result<(), CodecError>
pub fn register_enabled_codecs( &self, max_width: u32, max_height: u32, ) -> Result<(), CodecError>
Register codecs that are available under the current feature set.
Sourcepub fn list_enabled_codecs() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
pub fn list_enabled_codecs() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
List codec descriptors for the currently enabled set without requiring callers to register manually.
Sourcepub fn list_enabled_decoders() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
pub fn list_enabled_decoders() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
List enabled decoders for the current build (descriptors only).
Sourcepub fn list_enabled_encoders() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
pub fn list_enabled_encoders() -> Result<Vec<(FourCc, Vec<CodecDescriptor>)>, CodecError>
List enabled encoders for the current build (descriptors only).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecRegistry
impl RefUnwindSafe for CodecRegistry
impl Send for CodecRegistry
impl Sync for CodecRegistry
impl Unpin for CodecRegistry
impl UnwindSafe for CodecRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more