Struct openh264::decoder::DecoderConfig
source · pub struct DecoderConfig { /* private fields */ }Expand description
Configuration for the Decoder.
Setting missing? Please file a PR!
Implementations§
source§impl DecoderConfig
impl DecoderConfig
sourcepub unsafe fn num_threads(self, num_threads: u32) -> Self
pub unsafe fn num_threads(self, num_threads: u32) -> Self
Sets the number of threads; this will probably segfault, 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.
Trait Implementations§
source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
source§fn clone(&self) -> DecoderConfig
fn clone(&self) -> DecoderConfig
Returns a copy 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
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl !Send for DecoderConfig
impl !Sync for DecoderConfig
impl Unpin 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