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
impl Clone for LTCFrameExt
source§fn clone(&self) -> LTCFrameExt
fn clone(&self) -> LTCFrameExt
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more