pub struct HardwareCaps {
pub best_hevc_encoder: String,
pub hevc_is_hw: bool,
pub best_h264_encoder: String,
pub h264_is_hw: bool,
pub best_av1_encoder: String,
pub av1_is_hw: bool,
pub best_prores_encoder: String,
pub prores_is_hw: bool,
}Expand description
Runtime-detected hardware capabilities for video encoding.
Fields§
§best_hevc_encoder: StringBest available HEVC encoder name
hevc_is_hw: boolTrue if best_hevc_encoder is a hardware accelerator
best_h264_encoder: StringBest available H.264 encoder name
h264_is_hw: boolTrue if best_h264_encoder is a hardware accelerator
best_av1_encoder: StringBest available AV1 encoder name
av1_is_hw: boolTrue if best_av1_encoder is a hardware accelerator
best_prores_encoder: StringBest available ProRes encoder name
prores_is_hw: boolTrue if best_prores_encoder is a hardware accelerator
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HardwareCaps
impl RefUnwindSafe for HardwareCaps
impl Send for HardwareCaps
impl Sync for HardwareCaps
impl Unpin for HardwareCaps
impl UnsafeUnpin for HardwareCaps
impl UnwindSafe for HardwareCaps
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more