pub struct NativeVideoEncoderSelection {
pub encoder_name: String,
pub class: NativeEncoderClass,
pub hardware_accelerated: bool,
pub rejected: Vec<NativeVideoEncoderFallback>,
pub rate_control: AppliedRateControl,
pub quantizer_refused: Option<String>,
pub software_threads: Option<i64>,
}Expand description
The encoder an export actually opened, and what it passed over.
Advertisement is not instantiation: a platform can register an encoder it cannot open on this machine. Every export reports what it opened rather than letting the capability list imply it.
Fields§
§encoder_name: StringFFmpeg short name of the encoder that opened.
class: NativeEncoderClassHow that encoder executes.
hardware_accelerated: boolWhether it is configured to encode on the GPU.
rejected: Vec<NativeVideoEncoderFallback>Candidates tried first, in preference order.
rate_control: AppliedRateControlWhether the encoder runs the rate control’s quantizer or its bitrate.
quantizer_refused: Option<String>Why a quantizer that was asked for is not the one running.
software_threads: Option<i64>FFmpeg workers the encoder was opened with when it runs on the CPU;
None on the GPU, which takes no share of the software budget.
Trait Implementations§
Source§impl Clone for NativeVideoEncoderSelection
impl Clone for NativeVideoEncoderSelection
Source§impl Debug for NativeVideoEncoderSelection
impl Debug for NativeVideoEncoderSelection
impl Eq for NativeVideoEncoderSelection
impl StructuralPartialEq for NativeVideoEncoderSelection
Auto Trait Implementations§
impl Freeze for NativeVideoEncoderSelection
impl RefUnwindSafe for NativeVideoEncoderSelection
impl Send for NativeVideoEncoderSelection
impl Sync for NativeVideoEncoderSelection
impl Unpin for NativeVideoEncoderSelection
impl UnsafeUnpin for NativeVideoEncoderSelection
impl UnwindSafe for NativeVideoEncoderSelection
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.