pub struct EncoderSelector<'a> { /* private fields */ }Expand description
Filters and ranks discovered encoder descriptors without creating native objects.
Implementations§
Source§impl<'a> EncoderSelector<'a>
impl<'a> EncoderSelector<'a>
pub fn codec(self, codec: impl Into<String>) -> Self
pub fn require_capabilities(self, capabilities: EncoderCapabilities) -> Self
pub fn include_deprecated(self, include: bool) -> Self
pub fn include_internal(self, include: bool) -> Self
Sourcepub fn prefer_hardware(self) -> Self
pub fn prefer_hardware(self) -> Self
Prefer likely hardware-accelerated encoders while retaining software fallback.
Sourcepub fn require_hardware(self) -> Self
pub fn require_hardware(self) -> Self
Require a descriptor identified as hardware accelerated. Software candidates are excluded.
pub fn matches(&self) -> Vec<&'a EncoderTypeInfo>
pub fn best_available(&self) -> Option<&'a EncoderTypeInfo>
Trait Implementations§
Source§impl<'a> Clone for EncoderSelector<'a>
impl<'a> Clone for EncoderSelector<'a>
Auto Trait Implementations§
impl<'a> Forget for EncoderSelector<'a>
impl<'a> Freeze for EncoderSelector<'a>where
&'a [EncoderTypeInfo]: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
impl<'a> Move for EncoderSelector<'a>
impl<'a> RefUnwindSafe for EncoderSelector<'a>where
Atomic<usize>: RefUnwindSafe,
Sender<ObsCommand>: RefUnwindSafe,
Sender<Box<dyn FnOnce() + Send>>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
RwLock<HashSet<NativeObjectId>>: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
Mutex<Option<JoinHandle<()>>>: RefUnwindSafe,
Sender<()>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl<'a> Send for EncoderSelector<'a>
impl<'a> Sync for EncoderSelector<'a>
impl<'a> Unpin for EncoderSelector<'a>
impl<'a> UnsafeUnpin for EncoderSelector<'a>where
&'a [EncoderTypeInfo]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
impl<'a> UnwindSafe for EncoderSelector<'a>
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