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>,
}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).
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.
Trait Implementations§
Source§impl Clone for DisplayVideoConfig
impl Clone for DisplayVideoConfig
Source§fn clone(&self) -> DisplayVideoConfig
fn clone(&self) -> DisplayVideoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for DisplayVideoConfig
impl PartialEq for DisplayVideoConfig
Source§fn eq(&self, other: &DisplayVideoConfig) -> bool
fn eq(&self, other: &DisplayVideoConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisplayVideoConfig
Auto Trait Implementations§
impl Freeze for DisplayVideoConfig
impl RefUnwindSafe for DisplayVideoConfig
impl Send for DisplayVideoConfig
impl Sync for DisplayVideoConfig
impl Unpin for DisplayVideoConfig
impl UnsafeUnpin for DisplayVideoConfig
impl UnwindSafe for DisplayVideoConfig
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
Mutably borrows from an owned value. Read more