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
Source§fn clone(&self) -> EncoderTypeInfo
fn clone(&self) -> EncoderTypeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncoderTypeInfo
impl RefUnwindSafe for EncoderTypeInfo
impl Send for EncoderTypeInfo
impl Sync for EncoderTypeInfo
impl Unpin for EncoderTypeInfo
impl UnsafeUnpin for EncoderTypeInfo
impl UnwindSafe for EncoderTypeInfo
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