Struct str0m::media::FormatParams
source · pub struct FormatParams {
pub min_p_time: Option<u8>,
pub use_inband_fec: Option<bool>,
pub level_asymmetry_allowed: Option<bool>,
pub packetization_mode: Option<u8>,
pub profile_level_id: Option<u32>,
pub profile_id: Option<u32>,
}
Expand description
Codec specific format parameters.
Fields§
§min_p_time: Option<u8>
Opus specific parameter.
The minimum duration of media represented by a packet.
use_inband_fec: Option<bool>
Opus specific parameter.
Specifies that the decoder can do Opus in-band FEC
level_asymmetry_allowed: Option<bool>
Whether h264 sending media encoded at a different level in the offerer-to-answerer direction than the level in the answerer-to-offerer direction, is allowed.
packetization_mode: Option<u8>
What h264 packetization mode is used.
- 0 - single nal.
- 1 - STAP-A, FU-A is allowed. Non-interleaved.
profile_level_id: Option<u32>
H264 profile level.
- 42 00 1f - 4200=baseline (B) 1f=level 3.1
- 42 e0 1f - 42e0=constrained baseline (CB) 1f=level 3.1
- 4d 00 1f - 4d00=main (M) 1f=level 3.1
- 64 00 1f - 6400=high (H) 1f=level 3.1
profile_id: Option<u32>
VP9 profile id.
Trait Implementations§
source§impl Clone for FormatParams
impl Clone for FormatParams
source§fn clone(&self) -> FormatParams
fn clone(&self) -> FormatParams
Returns a copy 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 FormatParams
impl Debug for FormatParams
source§impl Default for FormatParams
impl Default for FormatParams
source§fn default() -> FormatParams
fn default() -> FormatParams
Returns the “default value” for a type. Read more