Struct x42ltc_sys::LTCFrameExt

source ·
#[repr(C)]
pub struct LTCFrameExt { pub ltc: LTCFrame, pub off_start: ltc_off_t, pub off_end: ltc_off_t, pub reverse: c_int, pub biphase_tics: [f32; 80], pub sample_min: ltcsnd_sample_t, pub sample_max: ltcsnd_sample_t, pub volume: f64, }
Expand description

Extended LTC frame - includes audio-sample position offsets, volume, etc

Note: For TV systems, the sample in the LTC audio data stream where the LTC Frame starts is not necessarily at the same time as the video-frame which is described by the LTC Frame.

\ref off_start denotes the time of the first transition of bit 0 in the LTC frame.

For 525/60 Television systems, the first transition shall occur at the beginning of line 5 of the frame with which it is associated. The tolerance is ± 1.5 lines.

For 625/50 systems, the first transition shall occur at the beginning of line 2 ± 1.5 lines of the frame with which it is associated.

Only for 1125/60 systems, the first transition occurs exactly at the vertical sync timing reference of the frame. ± 1 line.

Fields§

§ltc: LTCFrame

< the actual LTC frame. see \ref LTCFrame

§off_start: ltc_off_t

< \anchor off_start the approximate sample in the stream corresponding to the start of the LTC frame.

§off_end: ltc_off_t

< \anchor off_end the sample in the stream corresponding to the end of the LTC frame.

§reverse: c_int

< if non-zero, a reverse played LTC frame was detected. Since the frame was reversed, it started at off_end and finishes as off_start (off_end > off_start). (Note: in reverse playback the (reversed) sync-word of the next/previous frame is detected, this offset is corrected).

§biphase_tics: [f32; 80]

< detailed timing info: phase of the LTC signal; the time between each bit in the LTC-frame in audio-frames. Summing all 80 values in the array will yield audio-frames/LTC-frame = (\ref off_end - \ref off_start + 1).

§sample_min: ltcsnd_sample_t

< the minimum input sample signal for this frame (0..255)

§sample_max: ltcsnd_sample_t

< the maximum input sample signal for this frame (0..255)

§volume: f64

< the volume of the input signal in dbFS

Trait Implementations§

source§

impl Clone for LTCFrameExt

source§

fn clone(&self) -> LTCFrameExt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LTCFrameExt

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LTCFrameExt

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for LTCFrameExt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.