#[repr(i32)]pub enum EncodingOptionsPreset {
H264720p30 = 0,
H264720p60 = 1,
H2641080p30 = 2,
H2641080p60 = 3,
PortraitH264720p30 = 4,
PortraitH264720p60 = 5,
PortraitH2641080p30 = 6,
PortraitH2641080p60 = 7,
}
Variants§
H264720p30 = 0
1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS
H264720p60 = 1
1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS
H2641080p30 = 2
1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS
H2641080p60 = 3
1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS
PortraitH264720p30 = 4
720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS
PortraitH264720p60 = 5
720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS
PortraitH2641080p30 = 6
1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS
PortraitH2641080p60 = 7
1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS
Implementations§
Source§impl EncodingOptionsPreset
impl EncodingOptionsPreset
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of EncodingOptionsPreset
.
Sourcepub fn from_i32(value: i32) -> Option<EncodingOptionsPreset>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<EncodingOptionsPreset>
Converts an i32
to a EncodingOptionsPreset
, or None
if value
is not a valid variant.
Source§impl EncodingOptionsPreset
impl EncodingOptionsPreset
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 EncodingOptionsPreset
impl Clone for EncodingOptionsPreset
Source§fn clone(&self) -> EncodingOptionsPreset
fn clone(&self) -> EncodingOptionsPreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more