pub struct CodecCapability {
pub codec: String,
pub profiles: Vec<String>,
pub bit_depths: Vec<u8>,
pub chroma_formats: Vec<ChromaSubsampling>,
pub max_resolution: (u32, u32),
pub max_bitrate_kbps: u32,
}Expand description
Codec capability descriptor for negotiation.
Fields§
§codec: StringCodec name (e.g., “AV1”, “VP9”).
profiles: Vec<String>Supported profiles.
bit_depths: Vec<u8>Supported bit depths.
chroma_formats: Vec<ChromaSubsampling>Supported chroma formats.
max_resolution: (u32, u32)Maximum resolution (width, height).
max_bitrate_kbps: u32Maximum bitrate in kbps.
Trait Implementations§
Source§impl Clone for CodecCapability
impl Clone for CodecCapability
Source§fn clone(&self) -> CodecCapability
fn clone(&self) -> CodecCapability
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 moreSource§impl Debug for CodecCapability
impl Debug for CodecCapability
Source§impl PartialEq for CodecCapability
impl PartialEq for CodecCapability
impl Eq for CodecCapability
impl StructuralPartialEq for CodecCapability
Auto Trait Implementations§
impl Freeze for CodecCapability
impl RefUnwindSafe for CodecCapability
impl Send for CodecCapability
impl Sync for CodecCapability
impl Unpin for CodecCapability
impl UnsafeUnpin for CodecCapability
impl UnwindSafe for CodecCapability
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