#[non_exhaustive]pub struct VideoCodecSettings {Show 15 fields
pub av1_settings: Option<Av1Settings>,
pub avc_intra_settings: Option<AvcIntraSettings>,
pub codec: Option<VideoCodec>,
pub frame_capture_settings: Option<FrameCaptureSettings>,
pub gif_settings: Option<GifSettings>,
pub h264_settings: Option<H264Settings>,
pub h265_settings: Option<H265Settings>,
pub mpeg2_settings: Option<Mpeg2Settings>,
pub passthrough_settings: Option<PassthroughSettings>,
pub prores_settings: Option<ProresSettings>,
pub uncompressed_settings: Option<UncompressedSettings>,
pub vc3_settings: Option<Vc3Settings>,
pub vp8_settings: Option<Vp8Settings>,
pub vp9_settings: Option<Vp9Settings>,
pub xavc_settings: Option<XavcSettings>,
}Expand description
Video codec settings contains the group of settings related to video encoding. The settings in this group vary depending on the value that you choose for Video codec. For each codec enum that you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * GIF, GifSettings * H_264, H264Settings * H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * UNCOMPRESSED, UncompressedSettings * VC3, Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings * XAVC, XavcSettings
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.av1_settings: Option<Av1Settings>Required when you set Codec, under VideoDescription>CodecSettings to the value AV1.
avc_intra_settings: Option<AvcIntraSettings>Required when you choose AVC-Intra for your output video codec. For more information about the AVC-Intra settings, see the relevant specification. For detailed information about SD and HD in AVC-Intra, see https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf.
codec: Option<VideoCodec>Specifies the video codec. This must be equal to one of the enum values defined by the object VideoCodec. To passthrough the video stream of your input without any video encoding: Choose Passthrough. More information about passthrough codec support and job settings requirements, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/video-passthrough-feature-restrictions.html
frame_capture_settings: Option<FrameCaptureSettings>Required when you set Codec to the value FRAME_CAPTURE.
gif_settings: Option<GifSettings>Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value GIF
h264_settings: Option<H264Settings>Required when you set Codec to the value H_264.
h265_settings: Option<H265Settings>Settings for H265 codec
mpeg2_settings: Option<Mpeg2Settings>Required when you set Codec to the value MPEG2.
passthrough_settings: Option<PassthroughSettings>Optional settings when you set Codec to the value Passthrough.
prores_settings: Option<ProresSettings>Required when you set Codec to the value PRORES.
uncompressed_settings: Option<UncompressedSettings>Required when you set Codec, under VideoDescription>CodecSettings to the value UNCOMPRESSED.
vc3_settings: Option<Vc3Settings>Required when you set Codec to the value VC3
vp8_settings: Option<Vp8Settings>Required when you set Codec to the value VP8.
vp9_settings: Option<Vp9Settings>Required when you set Codec to the value VP9.
xavc_settings: Option<XavcSettings>Required when you set Codec to the value XAVC.
Implementations§
Source§impl VideoCodecSettings
impl VideoCodecSettings
Sourcepub fn av1_settings(&self) -> Option<&Av1Settings>
pub fn av1_settings(&self) -> Option<&Av1Settings>
Required when you set Codec, under VideoDescription>CodecSettings to the value AV1.
Sourcepub fn avc_intra_settings(&self) -> Option<&AvcIntraSettings>
pub fn avc_intra_settings(&self) -> Option<&AvcIntraSettings>
Required when you choose AVC-Intra for your output video codec. For more information about the AVC-Intra settings, see the relevant specification. For detailed information about SD and HD in AVC-Intra, see https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf.
Sourcepub fn codec(&self) -> Option<&VideoCodec>
pub fn codec(&self) -> Option<&VideoCodec>
Specifies the video codec. This must be equal to one of the enum values defined by the object VideoCodec. To passthrough the video stream of your input without any video encoding: Choose Passthrough. More information about passthrough codec support and job settings requirements, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/video-passthrough-feature-restrictions.html
Sourcepub fn frame_capture_settings(&self) -> Option<&FrameCaptureSettings>
pub fn frame_capture_settings(&self) -> Option<&FrameCaptureSettings>
Required when you set Codec to the value FRAME_CAPTURE.
Sourcepub fn gif_settings(&self) -> Option<&GifSettings>
pub fn gif_settings(&self) -> Option<&GifSettings>
Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value GIF
Sourcepub fn h264_settings(&self) -> Option<&H264Settings>
pub fn h264_settings(&self) -> Option<&H264Settings>
Required when you set Codec to the value H_264.
Sourcepub fn h265_settings(&self) -> Option<&H265Settings>
pub fn h265_settings(&self) -> Option<&H265Settings>
Settings for H265 codec
Sourcepub fn mpeg2_settings(&self) -> Option<&Mpeg2Settings>
pub fn mpeg2_settings(&self) -> Option<&Mpeg2Settings>
Required when you set Codec to the value MPEG2.
Sourcepub fn passthrough_settings(&self) -> Option<&PassthroughSettings>
pub fn passthrough_settings(&self) -> Option<&PassthroughSettings>
Optional settings when you set Codec to the value Passthrough.
Sourcepub fn prores_settings(&self) -> Option<&ProresSettings>
pub fn prores_settings(&self) -> Option<&ProresSettings>
Required when you set Codec to the value PRORES.
Sourcepub fn uncompressed_settings(&self) -> Option<&UncompressedSettings>
pub fn uncompressed_settings(&self) -> Option<&UncompressedSettings>
Required when you set Codec, under VideoDescription>CodecSettings to the value UNCOMPRESSED.
Sourcepub fn vc3_settings(&self) -> Option<&Vc3Settings>
pub fn vc3_settings(&self) -> Option<&Vc3Settings>
Required when you set Codec to the value VC3
Sourcepub fn vp8_settings(&self) -> Option<&Vp8Settings>
pub fn vp8_settings(&self) -> Option<&Vp8Settings>
Required when you set Codec to the value VP8.
Sourcepub fn vp9_settings(&self) -> Option<&Vp9Settings>
pub fn vp9_settings(&self) -> Option<&Vp9Settings>
Required when you set Codec to the value VP9.
Sourcepub fn xavc_settings(&self) -> Option<&XavcSettings>
pub fn xavc_settings(&self) -> Option<&XavcSettings>
Required when you set Codec to the value XAVC.
Source§impl VideoCodecSettings
impl VideoCodecSettings
Sourcepub fn builder() -> VideoCodecSettingsBuilder
pub fn builder() -> VideoCodecSettingsBuilder
Creates a new builder-style object to manufacture VideoCodecSettings.
Trait Implementations§
Source§impl Clone for VideoCodecSettings
impl Clone for VideoCodecSettings
Source§fn clone(&self) -> VideoCodecSettings
fn clone(&self) -> VideoCodecSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VideoCodecSettings
impl Debug for VideoCodecSettings
Source§impl PartialEq for VideoCodecSettings
impl PartialEq for VideoCodecSettings
Source§fn eq(&self, other: &VideoCodecSettings) -> bool
fn eq(&self, other: &VideoCodecSettings) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoCodecSettings
Auto Trait Implementations§
impl Freeze for VideoCodecSettings
impl RefUnwindSafe for VideoCodecSettings
impl Send for VideoCodecSettings
impl Sync for VideoCodecSettings
impl Unpin for VideoCodecSettings
impl UnsafeUnpin for VideoCodecSettings
impl UnwindSafe for VideoCodecSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);