pub struct VideoTrackInfo {
pub resolution: Resolution,
pub frame_rate: Option<FrameRate>,
pub pixel_format: Option<PixelFormat>,
pub rotation: Option<i16>,
pub color_space: Option<ColorSpace>,
pub color_range: Option<ColorRange>,
pub bit_depth: Option<u8>,
pub profile: Option<CodecProfile>,
pub level: Option<CodecLevel>,
pub hdr: Option<HdrMetadata>,
}Expand description
Video-specific track information.
Fields§
§resolution: ResolutionResolution (width × height).
frame_rate: Option<FrameRate>Frame rate.
pixel_format: Option<PixelFormat>Pixel format.
rotation: Option<i16>Rotation in degrees (e.g., 90 for portrait video on mobile).
color_space: Option<ColorSpace>Color space.
color_range: Option<ColorRange>Color range (limited / full).
bit_depth: Option<u8>Bit depth per channel.
profile: Option<CodecProfile>Codec profile (e.g., H264High, HevcMain10).
level: Option<CodecLevel>Codec level (e.g., “4.1”, “5.1”).
hdr: Option<HdrMetadata>HDR metadata (None for SDR content).
Trait Implementations§
Source§impl Clone for VideoTrackInfo
impl Clone for VideoTrackInfo
Source§fn clone(&self) -> VideoTrackInfo
fn clone(&self) -> VideoTrackInfo
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 Debug for VideoTrackInfo
impl Debug for VideoTrackInfo
Source§impl<'de> Deserialize<'de> for VideoTrackInfo
impl<'de> Deserialize<'de> for VideoTrackInfo
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 Freeze for VideoTrackInfo
impl RefUnwindSafe for VideoTrackInfo
impl Send for VideoTrackInfo
impl Sync for VideoTrackInfo
impl Unpin for VideoTrackInfo
impl UnsafeUnpin for VideoTrackInfo
impl UnwindSafe for VideoTrackInfo
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