pub enum TimestampSource {
BestGuess,
FrameInfoRecvTime,
FrameInfoRtp,
Mp4Pts,
MispMicrosectime,
SrtFile,
FixedFramerate,
}Variants§
BestGuess
FrameInfoRecvTime
H264 contains FrameInfo (strawlab.org/89H) supplemental enhancement
information NAL units and this source uses the receive time of the
receiving computer. (Note the RTP time of the sender is unused.)
FrameInfoRtp
H264 contains FrameInfo (strawlab.org/89H) supplemental enhancement
information NAL units and this source uses the RTP time of the
sending camera with best-guess offset to receiving computer.
Mp4Pts
Use the Presentation Time Stamp (PTS) of the MP4 data.
MispMicrosectime
H264 contains “MISPmicrosectime” supplemental enhancement information NAL units and this source uses it.
SrtFile
Using timing from a specific schema of .srt files.
FixedFramerate
Simply multiply frame number by average framerate
Trait Implementations§
Source§impl Clone for TimestampSource
impl Clone for TimestampSource
Source§fn clone(&self) -> TimestampSource
fn clone(&self) -> TimestampSource
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 TimestampSource
impl Debug for TimestampSource
Source§impl Default for TimestampSource
impl Default for TimestampSource
Source§fn default() -> TimestampSource
fn default() -> TimestampSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimestampSource
impl<'de> Deserialize<'de> for TimestampSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimestampSource
impl PartialEq for TimestampSource
Source§impl Serialize for TimestampSource
impl Serialize for TimestampSource
impl StructuralPartialEq for TimestampSource
Auto Trait Implementations§
impl Freeze for TimestampSource
impl RefUnwindSafe for TimestampSource
impl Send for TimestampSource
impl Sync for TimestampSource
impl Unpin for TimestampSource
impl UnsafeUnpin for TimestampSource
impl UnwindSafe for TimestampSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more