Struct rusoto_elastictranscoder::Thumbnails
source · [−]pub struct Thumbnails {
pub aspect_ratio: Option<String>,
pub format: Option<String>,
pub interval: Option<String>,
pub max_height: Option<String>,
pub max_width: Option<String>,
pub padding_policy: Option<String>,
pub resolution: Option<String>,
pub sizing_policy: Option<String>,
}
Expand description
Thumbnails for videos.
Fields
aspect_ratio: Option<String>
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth
, MaxHeight
, SizingPolicy
, and PaddingPolicy
instead of Resolution
and AspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.
The aspect ratio of thumbnails. Valid values include:
auto
, 1:1
, 4:3
, 3:2
, 16:9
If you specify auto
, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.
format: Option<String>
The format of thumbnails, if any. Valid values are jpg
and png
.
You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
interval: Option<String>
The approximate number of seconds between thumbnails. Specify an integer value.
max_height: Option<String>
The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.
max_width: Option<String>
The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.
padding_policy: Option<String>
When you set PaddingPolicy
to Pad
, Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth
and MaxHeight
settings.
resolution: Option<String>
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values MaxWidth
, MaxHeight
, SizingPolicy
, and PaddingPolicy
instead of Resolution
and AspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.
The width and height of thumbnail files in pixels. Specify a value in the format width
x height
where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution
object.
sizing_policy: Option<String>
Specify one of the following values to control scaling of thumbnails:
-
Fit
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill
: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidth
orMaxHeight
settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value. -
Stretch
: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidth
andMaxHeight
settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep
: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidth
andMaxHeight
settings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill
: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidth
andMaxHeight
without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
Trait Implementations
sourceimpl Clone for Thumbnails
impl Clone for Thumbnails
sourcefn clone(&self) -> Thumbnails
fn clone(&self) -> Thumbnails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Thumbnails
impl Debug for Thumbnails
sourceimpl Default for Thumbnails
impl Default for Thumbnails
sourcefn default() -> Thumbnails
fn default() -> Thumbnails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Thumbnails
impl<'de> Deserialize<'de> for Thumbnails
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Thumbnails> for Thumbnails
impl PartialEq<Thumbnails> for Thumbnails
sourcefn eq(&self, other: &Thumbnails) -> bool
fn eq(&self, other: &Thumbnails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Thumbnails) -> bool
fn ne(&self, other: &Thumbnails) -> bool
This method tests for !=
.
sourceimpl Serialize for Thumbnails
impl Serialize for Thumbnails
impl StructuralPartialEq for Thumbnails
Auto Trait Implementations
impl RefUnwindSafe for Thumbnails
impl Send for Thumbnails
impl Sync for Thumbnails
impl Unpin for Thumbnails
impl UnwindSafe for Thumbnails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more