#[repr(i32)]pub enum IngressVideoEncodingPreset {
H264720p30fps3Layers = 0,
H2641080p30fps3Layers = 1,
H264540p25fps2Layers = 2,
H264720p30fps1Layer = 3,
H2641080p30fps1Layer = 4,
H264720p30fps3LayersHighMotion = 5,
H2641080p30fps3LayersHighMotion = 6,
H264540p25fps2LayersHighMotion = 7,
H264720p30fps1LayerHighMotion = 8,
H2641080p30fps1LayerHighMotion = 9,
}
Variants§
H264720p30fps3Layers = 0
1280x720, 30fps, 1900kbps main layer, 3 layers total
H2641080p30fps3Layers = 1
1980x1080, 30fps, 3500kbps main layer, 3 layers total
H264540p25fps2Layers = 2
960x540, 25fps, 1000kbps main layer, 2 layers total
H264720p30fps1Layer = 3
1280x720, 30fps, 1900kbps, no simulcast
H2641080p30fps1Layer = 4
1980x1080, 30fps, 3500kbps, no simulcast
H264720p30fps3LayersHighMotion = 5
1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content
H2641080p30fps3LayersHighMotion = 6
1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content
H264540p25fps2LayersHighMotion = 7
960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content
H264720p30fps1LayerHighMotion = 8
1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content
H2641080p30fps1LayerHighMotion = 9
1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content
Implementations§
Source§impl IngressVideoEncodingPreset
impl IngressVideoEncodingPreset
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of IngressVideoEncodingPreset
.
Sourcepub fn from_i32(value: i32) -> Option<IngressVideoEncodingPreset>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<IngressVideoEncodingPreset>
Converts an i32
to a IngressVideoEncodingPreset
, or None
if value
is not a valid variant.
Source§impl IngressVideoEncodingPreset
impl IngressVideoEncodingPreset
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for IngressVideoEncodingPreset
impl Clone for IngressVideoEncodingPreset
Source§fn clone(&self) -> IngressVideoEncodingPreset
fn clone(&self) -> IngressVideoEncodingPreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more