pub struct VideoDecodeAcceleratorCapability<'a> { /* private fields */ }Expand description
Describes a supported video decoding profile with its associated minimum and maximum resolutions.
Implementations§
Source§impl<'a> VideoDecodeAcceleratorCapability<'a>
impl<'a> VideoDecodeAcceleratorCapability<'a>
Sourcepub fn builder(
profile: impl Into<Cow<'a, str>>,
max_resolution: Size,
min_resolution: Size,
) -> VideoDecodeAcceleratorCapabilityBuilder<'a>
pub fn builder( profile: impl Into<Cow<'a, str>>, max_resolution: Size, min_resolution: Size, ) -> VideoDecodeAcceleratorCapabilityBuilder<'a>
Creates a builder for this type with the required parameters:
profile: Video codec profile that is supported, e.g. VP9 Profile 2.max_resolution: Maximum video dimensions in pixels supported for this |profile|.min_resolution: Minimum video dimensions in pixels supported for this |profile|.
Sourcepub fn max_resolution(&self) -> &Size
pub fn max_resolution(&self) -> &Size
Maximum video dimensions in pixels supported for this |profile|.
Sourcepub fn min_resolution(&self) -> &Size
pub fn min_resolution(&self) -> &Size
Minimum video dimensions in pixels supported for this |profile|.
Trait Implementations§
Source§impl<'a> Clone for VideoDecodeAcceleratorCapability<'a>
impl<'a> Clone for VideoDecodeAcceleratorCapability<'a>
Source§fn clone(&self) -> VideoDecodeAcceleratorCapability<'a>
fn clone(&self) -> VideoDecodeAcceleratorCapability<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for VideoDecodeAcceleratorCapability<'a>
impl<'a> Debug for VideoDecodeAcceleratorCapability<'a>
Source§impl<'a> Default for VideoDecodeAcceleratorCapability<'a>
impl<'a> Default for VideoDecodeAcceleratorCapability<'a>
Source§fn default() -> VideoDecodeAcceleratorCapability<'a>
fn default() -> VideoDecodeAcceleratorCapability<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for VideoDecodeAcceleratorCapability<'a>
impl<'de, 'a> Deserialize<'de> for VideoDecodeAcceleratorCapability<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for VideoDecodeAcceleratorCapability<'a>
impl<'a> RefUnwindSafe for VideoDecodeAcceleratorCapability<'a>
impl<'a> Send for VideoDecodeAcceleratorCapability<'a>
impl<'a> Sync for VideoDecodeAcceleratorCapability<'a>
impl<'a> Unpin for VideoDecodeAcceleratorCapability<'a>
impl<'a> UnsafeUnpin for VideoDecodeAcceleratorCapability<'a>
impl<'a> UnwindSafe for VideoDecodeAcceleratorCapability<'a>
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