pub struct EncoderTypeInfo { /* private fields */ }Implementations§
Source§impl EncoderTypeInfo
impl EncoderTypeInfo
pub fn id(&self) -> &str
pub fn display_name(&self) -> Option<&str>
pub fn kind(&self) -> EncoderKind
pub fn codec(&self) -> Option<&str>
pub fn capabilities(&self) -> u32
pub fn capability_flags(&self) -> EncoderCapabilities
pub fn is_deprecated(&self) -> bool
pub fn is_internal(&self) -> bool
Sourcepub fn is_likely_hardware_accelerated(&self) -> bool
pub fn is_likely_hardware_accelerated(&self) -> bool
Returns whether this encoder is likely hardware-accelerated.
libobs does not expose one universal hardware bit. Passing textures is a strong signal for zero-copy hardware encoders; the fallback ID check covers common hardware plugins that do not advertise that capability. This is a preference heuristic only and is never used to exclude software fallbacks.
pub fn properties(&self) -> Result<Vec<PropertyMetadata>, ObsError>
pub fn settings_schema(&self) -> Result<SettingsSchema, ObsError>
pub fn settings_schema_for( &self, settings: &ObsData, ) -> Result<SettingsSchema, ObsError>
pub fn settings_snapshot_for( &self, settings: &ObsData, ) -> Result<SettingsSnapshot, ObsError>
pub fn default_settings(&self) -> Result<Option<ImmutableObsData>, ObsError>
Sourcepub fn default_settings_mut(&self) -> Result<ObsData, ObsError>
pub fn default_settings_mut(&self) -> Result<ObsData, ObsError>
Returns a mutable settings object initialized from this encoder type’s defaults.
Trait Implementations§
Source§impl Clone for EncoderTypeInfo
impl Clone for EncoderTypeInfo
Auto Trait Implementations§
impl Forget for EncoderTypeInfo
impl Freeze for EncoderTypeInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Sender<ObsCommand>> is !null: Freeze,
PhantomData<ArcInner<Sender<ObsCommand>>>: Freeze,
*const ArcInner<Sender<Box<dyn FnOnce() + Send>>> is !null: Freeze,
PhantomData<ArcInner<Sender<Box<dyn FnOnce() + Send>>>>: Freeze,
*const ArcInner<Atomic<u8>> is !null: Freeze,
PhantomData<ArcInner<Atomic<u8>>>: Freeze,
*const ArcInner<NativeObjectRegistry> is !null: Freeze,
PhantomData<ArcInner<NativeObjectRegistry>>: Freeze,
NonZero<u64>: Freeze,
*const ArcInner<_ObsRuntimeGuard> is !null: Freeze,
PhantomData<ArcInner<_ObsRuntimeGuard>>: Freeze,
impl Move for EncoderTypeInfo
impl RefUnwindSafe for EncoderTypeInfowhere
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,
impl Send for EncoderTypeInfo
impl Sync for EncoderTypeInfo
impl Unpin for EncoderTypeInfo
impl UnsafeUnpin for EncoderTypeInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Sender<ObsCommand>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Sender<ObsCommand>>>: UnsafeUnpin,
*const ArcInner<Sender<Box<dyn FnOnce() + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Sender<Box<dyn FnOnce() + Send>>>>: UnsafeUnpin,
*const ArcInner<Atomic<u8>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u8>>>: UnsafeUnpin,
*const ArcInner<NativeObjectRegistry> is !null: UnsafeUnpin,
PhantomData<ArcInner<NativeObjectRegistry>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const ArcInner<_ObsRuntimeGuard> is !null: UnsafeUnpin,
PhantomData<ArcInner<_ObsRuntimeGuard>>: UnsafeUnpin,
impl UnwindSafe for EncoderTypeInfowhere
RawVecInner: UnwindSafe,
Arc<Sender<ObsCommand>>: UnwindSafe,
Arc<Sender<Box<dyn FnOnce() + Send>>>: UnwindSafe,
Arc<Atomic<u8>>: UnwindSafe,
Arc<NativeObjectRegistry>: UnwindSafe,
NonZero<u64>: UnwindSafe,
Arc<_ObsRuntimeGuard>: UnwindSafe,
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