#[non_exhaustive]pub struct FrameCaptureSettingsBuilder { /* private fields */ }
Expand description
A builder for FrameCaptureSettings
.
Implementations§
source§impl FrameCaptureSettingsBuilder
impl FrameCaptureSettingsBuilder
sourcepub fn framerate_denominator(self, input: i32) -> Self
pub fn framerate_denominator(self, input: i32) -> Self
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture.
sourcepub fn set_framerate_denominator(self, input: Option<i32>) -> Self
pub fn set_framerate_denominator(self, input: Option<i32>) -> Self
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture.
sourcepub fn get_framerate_denominator(&self) -> &Option<i32>
pub fn get_framerate_denominator(&self) -> &Option<i32>
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture.
sourcepub fn framerate_numerator(self, input: i32) -> Self
pub fn framerate_numerator(self, input: i32) -> Self
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places.
sourcepub fn set_framerate_numerator(self, input: Option<i32>) -> Self
pub fn set_framerate_numerator(self, input: Option<i32>) -> Self
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places.
sourcepub fn get_framerate_numerator(&self) -> &Option<i32>
pub fn get_framerate_numerator(&self) -> &Option<i32>
Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places.
sourcepub fn max_captures(self, input: i32) -> Self
pub fn max_captures(self, input: i32) -> Self
Maximum number of captures (encoded jpg output files).
sourcepub fn set_max_captures(self, input: Option<i32>) -> Self
pub fn set_max_captures(self, input: Option<i32>) -> Self
Maximum number of captures (encoded jpg output files).
sourcepub fn get_max_captures(&self) -> &Option<i32>
pub fn get_max_captures(&self) -> &Option<i32>
Maximum number of captures (encoded jpg output files).
sourcepub fn set_quality(self, input: Option<i32>) -> Self
pub fn set_quality(self, input: Option<i32>) -> Self
JPEG Quality - a higher value equals higher quality.
sourcepub fn get_quality(&self) -> &Option<i32>
pub fn get_quality(&self) -> &Option<i32>
JPEG Quality - a higher value equals higher quality.
sourcepub fn build(self) -> FrameCaptureSettings
pub fn build(self) -> FrameCaptureSettings
Consumes the builder and constructs a FrameCaptureSettings
.
Trait Implementations§
source§impl Clone for FrameCaptureSettingsBuilder
impl Clone for FrameCaptureSettingsBuilder
source§fn clone(&self) -> FrameCaptureSettingsBuilder
fn clone(&self) -> FrameCaptureSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FrameCaptureSettingsBuilder
impl Debug for FrameCaptureSettingsBuilder
source§impl Default for FrameCaptureSettingsBuilder
impl Default for FrameCaptureSettingsBuilder
source§fn default() -> FrameCaptureSettingsBuilder
fn default() -> FrameCaptureSettingsBuilder
source§impl PartialEq for FrameCaptureSettingsBuilder
impl PartialEq for FrameCaptureSettingsBuilder
source§fn eq(&self, other: &FrameCaptureSettingsBuilder) -> bool
fn eq(&self, other: &FrameCaptureSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FrameCaptureSettingsBuilder
Auto Trait Implementations§
impl Freeze for FrameCaptureSettingsBuilder
impl RefUnwindSafe for FrameCaptureSettingsBuilder
impl Send for FrameCaptureSettingsBuilder
impl Sync for FrameCaptureSettingsBuilder
impl Unpin for FrameCaptureSettingsBuilder
impl UnwindSafe for FrameCaptureSettingsBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more