[][src]Struct spectrusty_core::clock::VideoTs

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

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: Ts

A vertical counter - a video scan-line index.

hc: Ts

A horizontal counter - measured in T-states.

Implementations

impl VideoTs[src]

pub const fn new(vc: Ts, hc: Ts) -> Self[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<&'_ 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) -> Self[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.