pub struct DecoderConfig { /* private fields */ }Expand description
Configuration for the Decoder.
Setting missing? Please file a PR!
Implementations§
Source§impl DecoderConfig
impl DecoderConfig
Sourcepub const unsafe fn num_threads(self, num_threads: u32) -> Self
pub const unsafe fn num_threads(self, num_threads: u32) -> Self
Sets the number of threads; will probably segfault the decoder, see below.⚠️
§Safety
This setting might work on some platforms but will probably just segfault. Consider this a highly experimental option we only expose to test if and where threading actually works. Ultimately you should consult with the upstream OpenH264 project where and when it is safe to set this.
See this issue for details.
Sourcepub const fn debug(self, value: bool) -> Self
pub const fn debug(self, value: bool) -> Self
Enables detailed console logging inside OpenH264.
Sourcepub const fn flush_after_decode(self, flush_behavior: Flush) -> Self
pub const fn flush_after_decode(self, flush_behavior: Flush) -> Self
Sets the default flush behavior after decode operations..
Trait Implementations§
Source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
Source§fn clone(&self) -> DecoderConfig
fn clone(&self) -> DecoderConfig
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 DecoderConfig
impl Debug for DecoderConfig
Source§impl Default for DecoderConfig
impl Default for DecoderConfig
Source§fn default() -> DecoderConfig
fn default() -> DecoderConfig
Returns the “default value” for a type. Read more
impl Copy for DecoderConfig
impl Send for DecoderConfig
impl Sync for DecoderConfig
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl Unpin for DecoderConfig
impl UnsafeUnpin for DecoderConfig
impl UnwindSafe for DecoderConfig
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