pub struct ObsVideoEncoder { /* private fields */ }Expand description
Represents a VideoEncoder. The VideoEncoder is removed,
if there are no references to this struct left.
If you attach this video encoder to a ObsOutputRef, it is stored internally
so you can safely drop this struct, if attached to the ObsOutputRef.
If not attached to the output, it’ll just remove itself again.
Implementations§
Source§impl ObsVideoEncoder
impl ObsVideoEncoder
Sourcepub fn new_from_info(
info: VideoEncoderInfo,
runtime: ObsRuntime,
) -> Result<Arc<Self>, ObsError>
pub fn new_from_info( info: VideoEncoderInfo, runtime: ObsRuntime, ) -> Result<Arc<Self>, ObsError>
Info: the handler attribute is no longer needed and kept for compatibility. The handler parameter will be removed in a future release.
Trait Implementations§
Source§impl Clone for ObsVideoEncoder
impl Clone for ObsVideoEncoder
Source§fn clone(&self) -> ObsVideoEncoder
fn clone(&self) -> ObsVideoEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObsVideoEncoder
impl Debug for ObsVideoEncoder
Source§impl ObsEncoderTrait for ObsVideoEncoder
impl ObsEncoderTrait for ObsVideoEncoder
Source§impl ObsObjectTrait<*mut obs_encoder> for ObsVideoEncoder
impl ObsObjectTrait<*mut obs_encoder> for ObsVideoEncoder
Source§fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
fn runtime(&self) -> &ObsRuntime
fn settings(&self) -> Result<ImmutableObsData, ObsError>
fn hotkey_data(&self) -> Result<ImmutableObsData, ObsError>
fn id(&self) -> ObsString
fn name(&self) -> ObsString
Source§fn as_ptr(&self) -> SmartPointerSendable<*mut obs_encoder>
fn as_ptr(&self) -> SmartPointerSendable<*mut obs_encoder>
Creates a new reference to the drop guard.
This is useful if you are using the underlying raw pointer, make sure to store it along the drop guard
Source§fn create_updater<'a, T: ObsObjectUpdater<'a, K, ToUpdate = Self> + Send + Sync>(
&'a mut self,
) -> Result<T, ObsError>
fn create_updater<'a, T: ObsObjectUpdater<'a, K, ToUpdate = Self> + Send + Sync>( &'a mut self, ) -> Result<T, ObsError>
Updates the object with the current settings.
For examples please take a look at the Github repository.
Auto Trait Implementations§
impl Freeze for ObsVideoEncoder
impl !RefUnwindSafe for ObsVideoEncoder
impl Send for ObsVideoEncoder
impl Sync for ObsVideoEncoder
impl Unpin for ObsVideoEncoder
impl !UnwindSafe for ObsVideoEncoder
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