pub struct HwCodecCaps {
pub codec: String,
pub decode: bool,
pub encode: bool,
pub max_width: Option<u32>,
pub max_height: Option<u32>,
pub max_bit_depth: Option<u32>,
pub profiles: Vec<String>,
pub extra: Vec<(String, String)>,
}Expand description
Capabilities of a single codec on a single device.
Fields§
§codec: StringCodec id matching oxideav_core::CodecId. e.g. “h264”, “hevc”,
“av1”, “vp9”. Should be the same string the SW codec uses.
decode: boolWhether this device can decode this codec.
encode: boolWhether this device can encode this codec.
max_width: Option<u32>Max coded width supported, if reportable.
max_height: Option<u32>Max coded height supported, if reportable.
max_bit_depth: Option<u32>Max bit-depth supported, if reportable. Typically 8, 10, or 12.
profiles: Vec<String>Profile names (backend-specific). e.g. for H.264 on NVDEC:
["Baseline", "Main", "High"].
extra: Vec<(String, String)>Backend-specific extras (e.g. ("max_dpb_slots", "17")).
Trait Implementations§
Source§impl Clone for HwCodecCaps
impl Clone for HwCodecCaps
Source§fn clone(&self) -> HwCodecCaps
fn clone(&self) -> HwCodecCaps
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 moreAuto Trait Implementations§
impl Freeze for HwCodecCaps
impl RefUnwindSafe for HwCodecCaps
impl Send for HwCodecCaps
impl Sync for HwCodecCaps
impl Unpin for HwCodecCaps
impl UnsafeUnpin for HwCodecCaps
impl UnwindSafe for HwCodecCaps
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