Struct aws_sdk_mediaconvert::types::FrameCaptureSettings
source · #[non_exhaustive]pub struct FrameCaptureSettings {
pub framerate_denominator: Option<i32>,
pub framerate_numerator: Option<i32>,
pub max_captures: Option<i32>,
pub quality: Option<i32>,
}
Expand description
Required when you set Codec to the value FRAME_CAPTURE.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.framerate_denominator: 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.
framerate_numerator: 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.
max_captures: Option<i32>
Maximum number of captures (encoded jpg output files).
quality: Option<i32>
JPEG Quality - a higher value equals higher quality.
Implementations§
source§impl FrameCaptureSettings
impl FrameCaptureSettings
sourcepub fn framerate_denominator(&self) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn max_captures(&self) -> Option<i32>
Maximum number of captures (encoded jpg output files).
source§impl FrameCaptureSettings
impl FrameCaptureSettings
sourcepub fn builder() -> FrameCaptureSettingsBuilder
pub fn builder() -> FrameCaptureSettingsBuilder
Creates a new builder-style object to manufacture FrameCaptureSettings
.
Trait Implementations§
source§impl Clone for FrameCaptureSettings
impl Clone for FrameCaptureSettings
source§fn clone(&self) -> FrameCaptureSettings
fn clone(&self) -> FrameCaptureSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FrameCaptureSettings
impl Debug for FrameCaptureSettings
source§impl PartialEq for FrameCaptureSettings
impl PartialEq for FrameCaptureSettings
source§fn eq(&self, other: &FrameCaptureSettings) -> bool
fn eq(&self, other: &FrameCaptureSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FrameCaptureSettings
Auto Trait Implementations§
impl Freeze for FrameCaptureSettings
impl RefUnwindSafe for FrameCaptureSettings
impl Send for FrameCaptureSettings
impl Sync for FrameCaptureSettings
impl Unpin for FrameCaptureSettings
impl UnwindSafe for FrameCaptureSettings
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