@Generated(value="software.amazon.awssdk:codegen") public final class Thumbnails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Thumbnails.Builder,Thumbnails>
Thumbnails for videos.
Modifier and Type | Class and Description |
---|---|
static interface |
Thumbnails.Builder |
Modifier and Type | Method and Description |
---|---|
String |
aspectRatio()
|
static Thumbnails.Builder |
builder() |
boolean |
equals(Object obj) |
String |
format()
The format of thumbnails, if any.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
interval()
The approximate number of seconds between thumbnails.
|
String |
maxHeight()
The maximum height of thumbnails in pixels.
|
String |
maxWidth()
The maximum width of thumbnails in pixels.
|
String |
paddingPolicy()
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. |
String |
resolution()
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Thumbnails.Builder> |
serializableBuilderClass() |
String |
sizingPolicy()
Specify one of the following values to control scaling of thumbnails:
|
Thumbnails.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String format()
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.
jpg
and png
.
You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
public String interval()
The approximate number of seconds between thumbnails. Specify an integer value.
public String resolution()
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.
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.
public String aspectRatio()
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.
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.
public String maxWidth()
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.
public String maxHeight()
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.
public String sizingPolicy()
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 thumbnail
MaxWidth
or MaxHeight
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
thumbnail MaxWidth
and MaxHeight
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 thumbnail MaxWidth
and MaxHeight
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 thumbnail MaxWidth
and MaxHeight
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 of MaxWidth
and MaxHeight
without dropping below
either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
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
thumbnail MaxWidth
or MaxHeight
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
thumbnail MaxWidth
and MaxHeight
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 thumbnail MaxWidth
and MaxHeight
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 thumbnail MaxWidth
and MaxHeight
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 of MaxWidth
and MaxHeight
without
dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
public String paddingPolicy()
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.
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.public Thumbnails.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Thumbnails.Builder,Thumbnails>
public static Thumbnails.Builder builder()
public static Class<? extends Thumbnails.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.