Struct H264QuantizationParameters
pub struct H264QuantizationParameters {
pub i_base: Option<u32>,
pub i_min: Option<u32>,
pub i_max: Option<u32>,
pub p_base: Option<u32>,
pub p_min: Option<u32>,
pub p_max: Option<u32>,
/* private fields */
}
Expand description
Customization of h264 encoder parameters for macroblock quantization. The values can range from 0 to 51, with lower numbers indicating higher quality/bitrate. While encoders should support these fields if feasible, some encoders may ignore these fields. It’s ok to not set this table, or not set some of the fields in this table, as encoders can determine their own defaults. If the targeted bitrate can’t be achieved with the specified values, then the user should expect the resulting encoded stream bitrate to differ from the requested bitrate.
Fields§
§i_base: Option<u32>
Starting value for quantization of key frames.
i_min: Option<u32>
Smallest allowed value for quantization of key frames.
i_max: Option<u32>
Largest allowed value for quantization of key frames.
p_base: Option<u32>
Starting value for quantization of predicted frames.
p_min: Option<u32>
Smallest allowed value for quantization of predicted frames.
p_max: Option<u32>
Largest allowed value for quantization of predicted frames.
Trait Implementations§
§impl Clone for H264QuantizationParameters
impl Clone for H264QuantizationParameters
§fn clone(&self) -> H264QuantizationParameters
fn clone(&self) -> H264QuantizationParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for H264QuantizationParameters
impl Debug for H264QuantizationParameters
§impl<D> Decode<H264QuantizationParameters, D> for H264QuantizationParameterswhere
D: ResourceDialect,
impl<D> Decode<H264QuantizationParameters, D> for H264QuantizationParameterswhere
D: ResourceDialect,
§fn new_empty() -> H264QuantizationParameters
fn new_empty() -> H264QuantizationParameters
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for H264QuantizationParameters
impl Default for H264QuantizationParameters
§fn default() -> H264QuantizationParameters
fn default() -> H264QuantizationParameters
§impl<D> Encode<H264QuantizationParameters, D> for &H264QuantizationParameterswhere
D: ResourceDialect,
impl<D> Encode<H264QuantizationParameters, D> for &H264QuantizationParameterswhere
D: ResourceDialect,
§impl PartialEq for H264QuantizationParameters
impl PartialEq for H264QuantizationParameters
§impl TypeMarker for H264QuantizationParameters
impl TypeMarker for H264QuantizationParameters
§type Owned = H264QuantizationParameters
type Owned = H264QuantizationParameters
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for H264QuantizationParameters
impl ValueTypeMarker for H264QuantizationParameters
§type Borrowed<'a> = &'a H264QuantizationParameters
type Borrowed<'a> = &'a H264QuantizationParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<H264QuantizationParameters as TypeMarker>::Owned,
) -> <H264QuantizationParameters as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<H264QuantizationParameters as TypeMarker>::Owned, ) -> <H264QuantizationParameters as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.