#[non_exhaustive]pub enum ScramblingControl {
NotScrambled,
Reserved,
EvenKey,
OddKey,
}Expand description
2-bit transport_scrambling_control field — ITU-T H.222.0 (08/2023) Table 2-4
(defines only 00 = not scrambled); DVB assigns 01/10/11 in ETSI TS 100 289
V1.1.1 §5.1 Table 1 (reserved, even CW, odd CW).
MPEG-2 leaves 01/10/11 as user-defined; DVB’s common-scrambling convention
assigns 10 = even control word, 11 = odd control word, 01 = reserved for future
DVB use. The field lives in the TS header and is never applied to the header itself —
only to the packet payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotScrambled
00 — not scrambled. The only MPEG-2-defined value (H.222.0 Table 2-4).
Reserved
01 — reserved for future DVB use (ETSI TS 100 289 V1.1.1 §5.1 Table 1).
EvenKey
10 — TS packet payload scrambled with the even control word
(DVB common scrambling, ETSI TS 100 289 V1.1.1 §5.1 Table 1).
OddKey
11 — TS packet payload scrambled with the odd control word
(DVB common scrambling, ETSI TS 100 289 V1.1.1 §5.1 Table 1).
Implementations§
Trait Implementations§
Source§impl Clone for ScramblingControl
impl Clone for ScramblingControl
Source§fn clone(&self) -> ScramblingControl
fn clone(&self) -> ScramblingControl
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 ScramblingControl
Source§impl Debug for ScramblingControl
impl Debug for ScramblingControl
Source§impl Display for ScramblingControl
impl Display for ScramblingControl
impl Eq for ScramblingControl
Source§impl PartialEq for ScramblingControl
impl PartialEq for ScramblingControl
Source§fn eq(&self, other: &ScramblingControl) -> bool
fn eq(&self, other: &ScramblingControl) -> bool
self and other values to be equal, and is used by ==.