#[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 moresource§impl Debug for IngressVideoEncodingPreset
impl Debug for IngressVideoEncodingPreset
source§impl Default for IngressVideoEncodingPreset
impl Default for IngressVideoEncodingPreset
source§fn default() -> IngressVideoEncodingPreset
fn default() -> IngressVideoEncodingPreset
§impl<'de> Deserialize<'de> for IngressVideoEncodingPreset
impl<'de> Deserialize<'de> for IngressVideoEncodingPreset
§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>,
source§impl From<IngressVideoEncodingPreset> for i32
impl From<IngressVideoEncodingPreset> for i32
source§fn from(value: IngressVideoEncodingPreset) -> i32
fn from(value: IngressVideoEncodingPreset) -> i32
source§impl Hash for IngressVideoEncodingPreset
impl Hash for IngressVideoEncodingPreset
source§impl Ord for IngressVideoEncodingPreset
impl Ord for IngressVideoEncodingPreset
source§fn cmp(&self, other: &IngressVideoEncodingPreset) -> Ordering
fn cmp(&self, other: &IngressVideoEncodingPreset) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for IngressVideoEncodingPreset
impl PartialEq for IngressVideoEncodingPreset
source§fn eq(&self, other: &IngressVideoEncodingPreset) -> bool
fn eq(&self, other: &IngressVideoEncodingPreset) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for IngressVideoEncodingPreset
impl PartialOrd for IngressVideoEncodingPreset
source§fn partial_cmp(&self, other: &IngressVideoEncodingPreset) -> Option<Ordering>
fn partial_cmp(&self, other: &IngressVideoEncodingPreset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more§impl Serialize for IngressVideoEncodingPreset
impl Serialize for IngressVideoEncodingPreset
source§impl TryFrom<i32> for IngressVideoEncodingPreset
impl TryFrom<i32> for IngressVideoEncodingPreset
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<IngressVideoEncodingPreset, DecodeError>
fn try_from(value: i32) -> Result<IngressVideoEncodingPreset, DecodeError>
impl Copy for IngressVideoEncodingPreset
impl Eq for IngressVideoEncodingPreset
impl StructuralPartialEq for IngressVideoEncodingPreset
Auto Trait Implementations§
impl Freeze for IngressVideoEncodingPreset
impl RefUnwindSafe for IngressVideoEncodingPreset
impl Send for IngressVideoEncodingPreset
impl Sync for IngressVideoEncodingPreset
impl Unpin for IngressVideoEncodingPreset
impl UnwindSafe for IngressVideoEncodingPreset
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)