File Coverage

blib/lib/Paws/ElasticTranscoder/Thumbnails.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::ElasticTranscoder::Thumbnails;
2 1     1   645 use Moose;
  1         3  
  1         11  
3             has AspectRatio => (is => 'ro', isa => 'Str');
4             has Format => (is => 'ro', isa => 'Str');
5             has Interval => (is => 'ro', isa => 'Str');
6             has MaxHeight => (is => 'ro', isa => 'Str');
7             has MaxWidth => (is => 'ro', isa => 'Str');
8             has PaddingPolicy => (is => 'ro', isa => 'Str');
9             has Resolution => (is => 'ro', isa => 'Str');
10             has SizingPolicy => (is => 'ro', isa => 'Str');
11             1;
12              
13             ### main pod documentation begin ###
14              
15             =head1 NAME
16              
17             Paws::ElasticTranscoder::Thumbnails
18              
19             =head1 USAGE
20              
21             This class represents one of two things:
22              
23             =head3 Arguments in a call to a service
24              
25             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
26             Each attribute should be used as a named argument in the calls that expect this type of object.
27              
28             As an example, if Att1 is expected to be a Paws::ElasticTranscoder::Thumbnails object:
29              
30             $service_obj->Method(Att1 => { AspectRatio => $value, ..., SizingPolicy => $value });
31              
32             =head3 Results returned from an API call
33              
34             Use accessors for each attribute. If Att1 is expected to be an Paws::ElasticTranscoder::Thumbnails object:
35              
36             $result = $service_obj->Method(...);
37             $result->Att1->AspectRatio
38              
39             =head1 DESCRIPTION
40              
41             Thumbnails for videos.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 AspectRatio => Str
47              
48             To better control resolution and aspect ratio of thumbnails, we
49             recommend that you use the values C<MaxWidth>, C<MaxHeight>,
50             C<SizingPolicy>, and C<PaddingPolicy> instead of C<Resolution> and
51             C<AspectRatio>. The two groups of settings are mutually exclusive. Do
52             not use them together.
53              
54             The aspect ratio of thumbnails. Valid values include:
55              
56             C<auto>, C<1:1>, C<4:3>, C<3:2>, C<16:9>
57              
58             If you specify C<auto>, Elastic Transcoder tries to preserve the aspect
59             ratio of the video in the output file.
60              
61              
62             =head2 Format => Str
63              
64             The format of thumbnails, if any. Valid values are C<jpg> and C<png>.
65              
66             You specify whether you want Elastic Transcoder to create thumbnails
67             when you create a job.
68              
69              
70             =head2 Interval => Str
71              
72             The approximate number of seconds between thumbnails. Specify an
73             integer value.
74              
75              
76             =head2 MaxHeight => Str
77              
78             The maximum height of thumbnails in pixels. If you specify auto,
79             Elastic Transcoder uses 1080 (Full HD) as the default value. If you
80             specify a numeric value, enter an even integer between 32 and 3072.
81              
82              
83             =head2 MaxWidth => Str
84              
85             The maximum width of thumbnails in pixels. If you specify auto, Elastic
86             Transcoder uses 1920 (Full HD) as the default value. If you specify a
87             numeric value, enter an even integer between 32 and 4096.
88              
89              
90             =head2 PaddingPolicy => Str
91              
92             When you set C<PaddingPolicy> to C<Pad>, Elastic Transcoder may add
93             black bars to the top and bottom and/or left and right sides of
94             thumbnails to make the total size of the thumbnails match the values
95             that you specified for thumbnail C<MaxWidth> and C<MaxHeight> settings.
96              
97              
98             =head2 Resolution => Str
99              
100             To better control resolution and aspect ratio of thumbnails, we
101             recommend that you use the values C<MaxWidth>, C<MaxHeight>,
102             C<SizingPolicy>, and C<PaddingPolicy> instead of C<Resolution> and
103             C<AspectRatio>. The two groups of settings are mutually exclusive. Do
104             not use them together.
105              
106             The width and height of thumbnail files in pixels. Specify a value in
107             the format C< I<width> > x C< I<height> > where both values are even
108             integers. The values cannot exceed the width and height that you
109             specified in the C<Video:Resolution> object.
110              
111              
112             =head2 SizingPolicy => Str
113              
114             Specify one of the following values to control scaling of thumbnails:
115              
116             =over
117              
118             =item *
119              
120             C<Fit>: Elastic Transcoder scales thumbnails so they match the value
121             that you specified in thumbnail MaxWidth or MaxHeight settings without
122             exceeding the other value.
123              
124             =item *
125              
126             C<Fill>: Elastic Transcoder scales thumbnails so they match the value
127             that you specified in thumbnail C<MaxWidth> or C<MaxHeight> settings
128             and matches or exceeds the other value. Elastic Transcoder centers the
129             image in thumbnails and then crops in the dimension (if any) that
130             exceeds the maximum value.
131              
132             =item *
133              
134             C<Stretch>: Elastic Transcoder stretches thumbnails to match the values
135             that you specified for thumbnail C<MaxWidth> and C<MaxHeight> settings.
136             If the relative proportions of the input video and thumbnails are
137             different, the thumbnails will be distorted.
138              
139             =item *
140              
141             C<Keep>: Elastic Transcoder does not scale thumbnails. If either
142             dimension of the input video exceeds the values that you specified for
143             thumbnail C<MaxWidth> and C<MaxHeight> settings, Elastic Transcoder
144             crops the thumbnails.
145              
146             =item *
147              
148             C<ShrinkToFit>: Elastic Transcoder scales thumbnails down so that their
149             dimensions match the values that you specified for at least one of
150             thumbnail C<MaxWidth> and C<MaxHeight> without exceeding either value.
151             If you specify this option, Elastic Transcoder does not scale
152             thumbnails up.
153              
154             =item *
155              
156             C<ShrinkToFill>: Elastic Transcoder scales thumbnails down so that
157             their dimensions match the values that you specified for at least one
158             of C<MaxWidth> and C<MaxHeight> without dropping below either value. If
159             you specify this option, Elastic Transcoder does not scale thumbnails
160             up.
161              
162             =back
163              
164              
165              
166              
167             =head1 SEE ALSO
168              
169             This class forms part of L<Paws>, describing an object used in L<Paws::ElasticTranscoder>
170              
171             =head1 BUGS and CONTRIBUTIONS
172              
173             The source code is located here: https://github.com/pplu/aws-sdk-perl
174              
175             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
176              
177             =cut
178