pub struct HwDecodeCapability {
pub tier: HwDecoderTier,
pub av1_profiles: Vec<Av1Profile>,
pub vp9_profiles: Vec<Vp9Profile>,
pub max_bit_depth: u8,
pub max_resolution: (u32, u32),
pub hdr_supported: bool,
}Expand description
Hardware decode capability for a specific decoder tier.
Fields§
§tier: HwDecoderTierTier of the hardware.
av1_profiles: Vec<Av1Profile>Supported AV1 profiles.
vp9_profiles: Vec<Vp9Profile>Supported VP9 profiles.
max_bit_depth: u8Maximum supported bit depth.
max_resolution: (u32, u32)Maximum resolution (width, height).
hdr_supported: boolWhether HDR / HLG is supported.
Implementations§
Source§impl HwDecodeCapability
impl HwDecodeCapability
Sourcepub fn can_decode_av1(&self, profile: &Av1Profile, bit_depth: u8) -> bool
pub fn can_decode_av1(&self, profile: &Av1Profile, bit_depth: u8) -> bool
Check if this hardware can decode the given AV1 profile and bit depth.
Sourcepub fn can_decode_vp9(&self, profile: &Vp9Profile, bit_depth: u8) -> bool
pub fn can_decode_vp9(&self, profile: &Vp9Profile, bit_depth: u8) -> bool
Check if this hardware can decode the given VP9 profile and bit depth.
Sourcepub fn can_handle_resolution(&self, width: u32, height: u32) -> bool
pub fn can_handle_resolution(&self, width: u32, height: u32) -> bool
Check if resolution is within hardware limits.
Trait Implementations§
Source§impl Clone for HwDecodeCapability
impl Clone for HwDecodeCapability
Source§fn clone(&self) -> HwDecodeCapability
fn clone(&self) -> HwDecodeCapability
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 moreAuto Trait Implementations§
impl Freeze for HwDecodeCapability
impl RefUnwindSafe for HwDecodeCapability
impl Send for HwDecodeCapability
impl Sync for HwDecodeCapability
impl Unpin for HwDecodeCapability
impl UnsafeUnpin for HwDecodeCapability
impl UnwindSafe for HwDecodeCapability
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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