pub struct CodecThreadAllocation {
pub total_threads: usize,
pub decode_concurrency: usize,
pub decoder_threads: i64,
pub encoder_threads: i64,
pub allocated_threads: usize,
}Expand description
One export-wide software-codec allocation. Every decoder receives
decoder_threads; the software video encoder receives encoder_threads.
Fields§
§total_threads: usizeTotal software codec workers available to this export.
decode_concurrency: usizeNumber of decoder contexts allowed to execute concurrently.
decoder_threads: i64FFmpeg worker count assigned to each decoder context.
encoder_threads: i64FFmpeg worker count assigned to the software video encoder, or zero for hardware.
allocated_threads: usizeWorkers this allocation actually hands out, decoders plus encoder.
Trait Implementations§
Source§impl Clone for CodecThreadAllocation
impl Clone for CodecThreadAllocation
impl Copy for CodecThreadAllocation
Source§impl Debug for CodecThreadAllocation
impl Debug for CodecThreadAllocation
impl Eq for CodecThreadAllocation
Source§impl PartialEq for CodecThreadAllocation
impl PartialEq for CodecThreadAllocation
impl StructuralPartialEq for CodecThreadAllocation
Auto Trait Implementations§
impl Freeze for CodecThreadAllocation
impl RefUnwindSafe for CodecThreadAllocation
impl Send for CodecThreadAllocation
impl Sync for CodecThreadAllocation
impl Unpin for CodecThreadAllocation
impl UnsafeUnpin for CodecThreadAllocation
impl UnwindSafe for CodecThreadAllocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.