#[non_exhaustive]pub enum FieldSense {
ProgressiveOrUnspecified,
Invalid,
Field1,
Field2,
}rtp only.Expand description
F (2 bits) — field-sense signalling for the RTP timestamp in an
interlaced SDI raster (RFC 8331 §2.1).
0b01 is stated by RFC 8331 to be “not valid”, with receivers “SHOULD
ignore an ANC data packet with an F field value of 0b01 and SHOULD process
any other ANC data packets … present”. That is a per-packet receiver
recommendation, not a wire-validity rule for this stateless parser: per
this project’s decode-completeness principle, parsing an F of 0b01
succeeds as FieldSense::Invalid rather than being rejected —
leaving any SHOULD-ignore behavior to the caller (see docs/anc_rtp_8331.md).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProgressiveOrUnspecified
0b00 — “either the video format is progressive or … no field is
specified”.
Invalid
0b01 — “not valid”; parses successfully (see the enum doc), the
SHOULD-ignore recommendation is left to the caller.
Field1
0b10 — “the timestamp refers to the first field of an interlaced
video signal”.
Field2
0b11 — “the timestamp refers to the second field of an interlaced
video signal”.
Implementations§
Trait Implementations§
Source§impl Clone for FieldSense
impl Clone for FieldSense
Source§fn clone(&self) -> FieldSense
fn clone(&self) -> FieldSense
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FieldSense
Source§impl Debug for FieldSense
impl Debug for FieldSense
Source§impl Display for FieldSense
impl Display for FieldSense
impl Eq for FieldSense
Source§impl PartialEq for FieldSense
impl PartialEq for FieldSense
Source§impl Serialize for FieldSense
Available on crate feature serde only.
impl Serialize for FieldSense
serde only.