[][src]Struct spectrusty::clock::VideoTs

pub struct VideoTs {
    pub vc: i16,
    pub hc: i16,
}

A timestamp type that consists of two video counters: vertical and horizontal.

VideoTs { vc: 0, hc: 0 } marks the start of the video frame.

Fields

vc: i16

A vertical counter - a video scan-line index.

hc: i16

A horizontal counter - measured in T-states.

Implementations

impl VideoTs[src]

pub const fn new(vc: i16, hc: i16) -> VideoTs[src]

Trait Implementations

impl Clone for VideoTs[src]

impl Copy for VideoTs[src]

impl Debug for VideoTs[src]

impl Default for VideoTs[src]

impl<'de> Deserialize<'de> for VideoTs[src]

impl Eq for VideoTs[src]

impl From<&'_ PaletteChange> for VideoTs[src]

impl<'_> From<&'_ VideoTsData1> for VideoTs[src]

impl<'_> From<&'_ VideoTsData2> for VideoTs[src]

impl<'_> From<&'_ VideoTsData3> for VideoTs[src]

impl<'_> From<&'_ VideoTsData6> for VideoTs[src]

impl<V> From<VFrameTs<V>> for VideoTs[src]

impl<V, C> From<VFrameTsCounter<V, C>> for VideoTs[src]

impl<V> From<VideoTs> for VFrameTs<V>[src]

pub fn from(ts: VideoTs) -> VFrameTs<V>[src]

Returns a VFrameTs from the given VideoTs. A returned VFrameTs is not being normalized.

Panics

Panics when the given ts overflows the capacity of VideoTs.

impl From<VideoTsData1> for VideoTs[src]

impl From<VideoTsData2> for VideoTs[src]

impl From<VideoTsData3> for VideoTs[src]

impl From<VideoTsData6> for VideoTs[src]

impl Hash for VideoTs[src]

impl Ord for VideoTs[src]

impl PartialEq<VideoTs> for VideoTs[src]

impl PartialOrd<VideoTs> for VideoTs[src]

impl Serialize for VideoTs[src]

impl StructuralEq for VideoTs[src]

impl StructuralPartialEq for VideoTs[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, T> IntoSample<S> for T where
    S: FromSample<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,