pub struct H264EncoderSettings {
pub bit_rate: Option<u32>,
pub frame_rate: Option<u32>,
pub gop_size: Option<u32>,
pub variable_frame_rate: Option<bool>,
pub min_frame_rate: Option<u32>,
pub force_key_frame: Option<bool>,
pub quantization_params: Option<H264QuantizationParameters>,
/* private fields */
}
Expand description
Settings for H264 Encoders.
Fields§
§bit_rate: Option<u32>
Target bits per second for encoded stream. If omitted, interpreted as 200,000.
frame_rate: Option<u32>
Target frames per second for encoded stream. If omitted, interpreted as 30.
gop_size: Option<u32>
Number of pictures per keyframe. Setting to 0 will disable key frame encoding, except for if force_key_frame is set to true. If omitted, interpreted as 8.
variable_frame_rate: Option<bool>
Whether to enable frame rate adjustments in order to meet target bitrate. If omitted, interpreted as false.
min_frame_rate: Option<u32>
Lowest frame rate allowed if variable_frame_rate
is enabled. If
omitted, interpreted as 10.
force_key_frame: Option<bool>
If true, next frame encoded will be a key frame. If omitted, interpreted as false.
quantization_params: Option<H264QuantizationParameters>
Allow customization of quantization parameters for encoding. Each frame submitted after setting this will use the new values. If omitted, no change from encoder defaults is made.
Trait Implementations§
Source§impl Clone for H264EncoderSettings
impl Clone for H264EncoderSettings
Source§fn clone(&self) -> H264EncoderSettings
fn clone(&self) -> H264EncoderSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for H264EncoderSettings
impl Debug for H264EncoderSettings
Source§impl<D: ResourceDialect> Decode<H264EncoderSettings, D> for H264EncoderSettings
impl<D: ResourceDialect> Decode<H264EncoderSettings, D> for H264EncoderSettings
Source§impl Default for H264EncoderSettings
impl Default for H264EncoderSettings
Source§fn default() -> H264EncoderSettings
fn default() -> H264EncoderSettings
Source§impl<D: ResourceDialect> Encode<H264EncoderSettings, D> for &H264EncoderSettings
impl<D: ResourceDialect> Encode<H264EncoderSettings, D> for &H264EncoderSettings
Source§impl PartialEq for H264EncoderSettings
impl PartialEq for H264EncoderSettings
Source§impl TypeMarker for H264EncoderSettings
impl TypeMarker for H264EncoderSettings
Source§type Owned = H264EncoderSettings
type Owned = H264EncoderSettings
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for H264EncoderSettings
impl ValueTypeMarker for H264EncoderSettings
Source§type Borrowed<'a> = &'a H264EncoderSettings
type Borrowed<'a> = &'a H264EncoderSettings
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for H264EncoderSettings
impl StructuralPartialEq for H264EncoderSettings
Auto Trait Implementations§
impl Freeze for H264EncoderSettings
impl RefUnwindSafe for H264EncoderSettings
impl Send for H264EncoderSettings
impl Sync for H264EncoderSettings
impl Unpin for H264EncoderSettings
impl UnwindSafe for H264EncoderSettings
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)