pub struct Layer {
pub name: String,
pub input: String,
pub activate_above_kbps: u32,
}Expand description
One simulcast layer of a video channel: the same picture, encoded again at a
different operating point (ADR 0008). Declared as [[channel.layer]].
[[channel]]
kind = "video"
name = "main"
codec = "avc1.42001f" # must admit the *highest* layer
fps = 25
[[channel.layer]]
name = "low"
input = "rtsp://cam:554/Streaming/Channels/102"
[[channel.layer]]
name = "high"
input = "rtsp://cam:554/Streaming/Channels/101"
activate_above_kbps = 1800Fields§
§name: StringThe layer’s name, reported in layer messages and the HUD.
input: StringThe stream carrying this encoding, rtsp:// or rtp://.
activate_above_kbps: u32The ABR target at or above which this layer is the right choice. The lowest layer is the base and is used whenever nothing better is affordable, so leaving it at 0 is correct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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