pub struct DisplayVideoConfig {
pub scale: Option<f32>,
pub format: Option<i32>,
pub key_frame_interval_secs: Option<u32>,
pub max_stream_size_bytes: Option<u64>,
pub bitrate_bps: Option<u32>,
}Expand description
Config for the “android.display.video” data source. Unset/0 fields use the producer’s default.
Fields§
§scale: Option<f32>Scale applied to each display’s resolution before capture (0.25 = quarter size).
format: Option<i32>§key_frame_interval_secs: Option<u32>Keyframe interval in seconds. Smaller = snappier seeking, larger trace.
max_stream_size_bytes: Option<u64>Per-display cap on emitted bytes. On reaching it the stream is torn down with a VideoFrameError (SIZE_CAP_HIT).
bitrate_bps: Option<u32>Target video encoder bitrate in bits per second. Controls quality vs
trace size at a fixed resolution (unlike scale, which changes the
resolution). Unset lets the producer pick a default from the (scaled)
resolution and frame rate. Maps to MediaFormat.KEY_BIT_RATE.
Implementations§
Source§impl DisplayVideoConfig
impl DisplayVideoConfig
Sourcepub fn format(&self) -> Format
pub fn format(&self) -> Format
Returns the enum value of format, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_format(&mut self, value: Format)
pub fn set_format(&mut self, value: Format)
Sets format to the provided enum value.
Sourcepub fn key_frame_interval_secs(&self) -> u32
pub fn key_frame_interval_secs(&self) -> u32
Returns the value of key_frame_interval_secs, or the default value if key_frame_interval_secs is unset.
Sourcepub fn max_stream_size_bytes(&self) -> u64
pub fn max_stream_size_bytes(&self) -> u64
Returns the value of max_stream_size_bytes, or the default value if max_stream_size_bytes is unset.
Sourcepub fn bitrate_bps(&self) -> u32
pub fn bitrate_bps(&self) -> u32
Returns the value of bitrate_bps, or the default value if bitrate_bps is unset.
Trait Implementations§
Source§impl Clone for DisplayVideoConfig
impl Clone for DisplayVideoConfig
Source§fn clone(&self) -> DisplayVideoConfig
fn clone(&self) -> DisplayVideoConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DisplayVideoConfig
Source§impl Debug for DisplayVideoConfig
impl Debug for DisplayVideoConfig
Source§impl Default for DisplayVideoConfig
impl Default for DisplayVideoConfig
Source§impl Message for DisplayVideoConfig
impl Message for DisplayVideoConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for DisplayVideoConfig
impl PartialEq for DisplayVideoConfig
Source§fn eq(&self, other: &DisplayVideoConfig) -> bool
fn eq(&self, other: &DisplayVideoConfig) -> bool
self and other values to be equal, and is used by ==.