pub struct VideoFormat {Show 14 fields
pub vic: u8,
pub h_active: i32,
pub v_active: i32,
pub h_front: i32,
pub v_front: i32,
pub h_sync: i32,
pub v_sync: i32,
pub h_back: i32,
pub v_back: i32,
pub h_sync_polarity: VideoFormatSyncPolarity,
pub v_sync_polarity: VideoFormatSyncPolarity,
pub pixel_clock_hz: i64,
pub interlaced: bool,
pub picture_aspect_ratio: VideoFormatPictureAspectRatio,
}Expand description
A CTA-861 video format, defined in section 4.
Fields§
§vic: u8§h_active: i32§v_active: i32§h_front: i32§v_front: i32§h_sync: i32§v_sync: i32§h_back: i32§v_back: i32§h_sync_polarity: VideoFormatSyncPolarity§v_sync_polarity: VideoFormatSyncPolarity§pixel_clock_hz: i64§interlaced: bool§picture_aspect_ratio: VideoFormatPictureAspectRatioImplementations§
Source§impl VideoFormat
impl VideoFormat
Sourcepub fn from_vic(vic: u8) -> Option<VideoFormat>
pub fn from_vic(vic: u8) -> Option<VideoFormat>
Get a CTA-861 video format from a VIC.
Returns None if the VIC is unknown.
Trait Implementations§
Source§impl Clone for VideoFormat
impl Clone for VideoFormat
Source§fn clone(&self) -> VideoFormat
fn clone(&self) -> VideoFormat
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 VideoFormat
impl Debug for VideoFormat
Source§impl From<di_cta_video_format> for VideoFormat
impl From<di_cta_video_format> for VideoFormat
Source§fn from(value: di_cta_video_format) -> VideoFormat
fn from(value: di_cta_video_format) -> VideoFormat
Converts to this type from the input type.
impl Copy for VideoFormat
Auto Trait Implementations§
impl Freeze for VideoFormat
impl RefUnwindSafe for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Unpin for VideoFormat
impl UnwindSafe for VideoFormat
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