public static interface DvbSubDestinationSettings.Builder extends CopyableBuilder<DvbSubDestinationSettings.Builder,DvbSubDestinationSettings>
Modifier and Type | Method and Description |
---|---|
DvbSubDestinationSettings.Builder |
alignment(DvbSubDestinationAlignment alignment)
If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at
the bottom center of the output.
|
DvbSubDestinationSettings.Builder |
alignment(String alignment)
If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at
the bottom center of the output.
|
DvbSubDestinationSettings.Builder |
backgroundColor(DvbSubDestinationBackgroundColor backgroundColor)
Specifies the color of the rectangle behind the captions.
|
DvbSubDestinationSettings.Builder |
backgroundColor(String backgroundColor)
Specifies the color of the rectangle behind the captions.
|
DvbSubDestinationSettings.Builder |
backgroundOpacity(Integer backgroundOpacity)
Specifies the opacity of the background rectangle.
|
default DvbSubDestinationSettings.Builder |
font(Consumer<InputLocation.Builder> font)
External font file used for caption burn-in.
|
DvbSubDestinationSettings.Builder |
font(InputLocation font)
External font file used for caption burn-in.
|
DvbSubDestinationSettings.Builder |
fontColor(DvbSubDestinationFontColor fontColor)
Specifies the color of the burned-in captions.
|
DvbSubDestinationSettings.Builder |
fontColor(String fontColor)
Specifies the color of the burned-in captions.
|
DvbSubDestinationSettings.Builder |
fontOpacity(Integer fontOpacity)
Specifies the opacity of the burned-in captions.
|
DvbSubDestinationSettings.Builder |
fontResolution(Integer fontResolution)
Font resolution in DPI (dots per inch); default is 96 dpi.
|
DvbSubDestinationSettings.Builder |
fontSize(String fontSize)
When set to auto fontSize will scale depending on the size of the output.
|
DvbSubDestinationSettings.Builder |
outlineColor(DvbSubDestinationOutlineColor outlineColor)
Specifies font outline color.
|
DvbSubDestinationSettings.Builder |
outlineColor(String outlineColor)
Specifies font outline color.
|
DvbSubDestinationSettings.Builder |
outlineSize(Integer outlineSize)
Specifies font outline size in pixels.
|
DvbSubDestinationSettings.Builder |
shadowColor(DvbSubDestinationShadowColor shadowColor)
Specifies the color of the shadow cast by the captions.
|
DvbSubDestinationSettings.Builder |
shadowColor(String shadowColor)
Specifies the color of the shadow cast by the captions.
|
DvbSubDestinationSettings.Builder |
shadowOpacity(Integer shadowOpacity)
Specifies the opacity of the shadow.
|
DvbSubDestinationSettings.Builder |
shadowXOffset(Integer shadowXOffset)
Specifies the horizontal offset of the shadow relative to the captions in pixels.
|
DvbSubDestinationSettings.Builder |
shadowYOffset(Integer shadowYOffset)
Specifies the vertical offset of the shadow relative to the captions in pixels.
|
DvbSubDestinationSettings.Builder |
teletextGridControl(DvbSubDestinationTeletextGridControl teletextGridControl)
Controls whether a fixed grid size will be used to generate the output subtitles bitmap.
|
DvbSubDestinationSettings.Builder |
teletextGridControl(String teletextGridControl)
Controls whether a fixed grid size will be used to generate the output subtitles bitmap.
|
DvbSubDestinationSettings.Builder |
xPosition(Integer xPosition)
Specifies the horizontal position of the caption relative to the left side of the output in pixels.
|
DvbSubDestinationSettings.Builder |
yPosition(Integer yPosition)
Specifies the vertical position of the caption relative to the top of the output in pixels.
|
copy
applyMutation, build
DvbSubDestinationSettings.Builder alignment(String alignment)
alignment
- If no explicit xPosition or yPosition is provided, setting alignment to centered will place the
captions at the bottom center of the output. Similarly, setting a left alignment will align captions
to the bottom left of the output. If x and y positions are given in conjunction with the alignment
parameter, the font will be justified (either left or centered) relative to those coordinates.
Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded
subtitles. This option is not valid for source captions that are STL or 608/embedded. These source
settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationAlignment
,
DvbSubDestinationAlignment
DvbSubDestinationSettings.Builder alignment(DvbSubDestinationAlignment alignment)
alignment
- If no explicit xPosition or yPosition is provided, setting alignment to centered will place the
captions at the bottom center of the output. Similarly, setting a left alignment will align captions
to the bottom left of the output. If x and y positions are given in conjunction with the alignment
parameter, the font will be justified (either left or centered) relative to those coordinates.
Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded
subtitles. This option is not valid for source captions that are STL or 608/embedded. These source
settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationAlignment
,
DvbSubDestinationAlignment
DvbSubDestinationSettings.Builder backgroundColor(String backgroundColor)
backgroundColor
- Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationBackgroundColor
,
DvbSubDestinationBackgroundColor
DvbSubDestinationSettings.Builder backgroundColor(DvbSubDestinationBackgroundColor backgroundColor)
backgroundColor
- Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationBackgroundColor
,
DvbSubDestinationBackgroundColor
DvbSubDestinationSettings.Builder backgroundOpacity(Integer backgroundOpacity)
backgroundOpacity
- Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this
parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings
must match.DvbSubDestinationSettings.Builder font(InputLocation font)
font
- External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user
can select output fonts for many different types of input captions, embedded, STL and teletext sources
use a strict grid system. Using external fonts with these caption sources could cause unexpected
display of proportional fonts. All burn-in and DVB-Sub font settings must match.default DvbSubDestinationSettings.Builder font(Consumer<InputLocation.Builder> font)
InputLocation.Builder
avoiding the need to create one manually via
InputLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to font(InputLocation)
.font
- a consumer that will call methods on InputLocation.Builder
font(InputLocation)
DvbSubDestinationSettings.Builder fontColor(String fontColor)
fontColor
- Specifies the color of the burned-in captions. This option is not valid for source captions that are
STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream.
All burn-in and DVB-Sub font settings must match.DvbSubDestinationFontColor
,
DvbSubDestinationFontColor
DvbSubDestinationSettings.Builder fontColor(DvbSubDestinationFontColor fontColor)
fontColor
- Specifies the color of the burned-in captions. This option is not valid for source captions that are
STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream.
All burn-in and DVB-Sub font settings must match.DvbSubDestinationFontColor
,
DvbSubDestinationFontColor
DvbSubDestinationSettings.Builder fontOpacity(Integer fontOpacity)
fontOpacity
- Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and
DVB-Sub font settings must match.DvbSubDestinationSettings.Builder fontResolution(Integer fontResolution)
fontResolution
- Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationSettings.Builder fontSize(String fontSize)
fontSize
- When set to auto fontSize will scale depending on the size of the output. Giving a positive integer
will specify the exact font size in points. All burn-in and DVB-Sub font settings must match.DvbSubDestinationSettings.Builder outlineColor(String outlineColor)
outlineColor
- Specifies font outline color. This option is not valid for source captions that are either
608/embedded or teletext. These source settings are already pre-defined by the caption stream. All
burn-in and DVB-Sub font settings must match.DvbSubDestinationOutlineColor
,
DvbSubDestinationOutlineColor
DvbSubDestinationSettings.Builder outlineColor(DvbSubDestinationOutlineColor outlineColor)
outlineColor
- Specifies font outline color. This option is not valid for source captions that are either
608/embedded or teletext. These source settings are already pre-defined by the caption stream. All
burn-in and DVB-Sub font settings must match.DvbSubDestinationOutlineColor
,
DvbSubDestinationOutlineColor
DvbSubDestinationSettings.Builder outlineSize(Integer outlineSize)
outlineSize
- Specifies font outline size in pixels. This option is not valid for source captions that are either
608/embedded or teletext. These source settings are already pre-defined by the caption stream. All
burn-in and DVB-Sub font settings must match.DvbSubDestinationSettings.Builder shadowColor(String shadowColor)
shadowColor
- Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationShadowColor
,
DvbSubDestinationShadowColor
DvbSubDestinationSettings.Builder shadowColor(DvbSubDestinationShadowColor shadowColor)
shadowColor
- Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must
match.DvbSubDestinationShadowColor
,
DvbSubDestinationShadowColor
DvbSubDestinationSettings.Builder shadowOpacity(Integer shadowOpacity)
shadowOpacity
- Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is
equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.DvbSubDestinationSettings.Builder shadowXOffset(Integer shadowXOffset)
shadowXOffset
- Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would
result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match.DvbSubDestinationSettings.Builder shadowYOffset(Integer shadowYOffset)
shadowYOffset
- Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would
result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match.DvbSubDestinationSettings.Builder teletextGridControl(String teletextGridControl)
teletextGridControl
- Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only
applicable for Teletext inputs and DVB-Sub/Burn-in outputs.DvbSubDestinationTeletextGridControl
,
DvbSubDestinationTeletextGridControl
DvbSubDestinationSettings.Builder teletextGridControl(DvbSubDestinationTeletextGridControl teletextGridControl)
teletextGridControl
- Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only
applicable for Teletext inputs and DVB-Sub/Burn-in outputs.DvbSubDestinationTeletextGridControl
,
DvbSubDestinationTeletextGridControl
DvbSubDestinationSettings.Builder xPosition(Integer xPosition)
xPosition
- Specifies the horizontal position of the caption relative to the left side of the output in pixels. A
value of 10 would result in the captions starting 10 pixels from the left of the output. If no
explicit xPosition is provided, the horizontal caption position will be determined by the alignment
parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These
source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings
must match.DvbSubDestinationSettings.Builder yPosition(Integer yPosition)
yPosition
- Specifies the vertical position of the caption relative to the top of the output in pixels. A value of
10 would result in the captions starting 10 pixels from the top of the output. If no explicit
yPosition is provided, the caption will be positioned towards the bottom of the output. This option is
not valid for source captions that are STL, 608/embedded or teletext. These source settings are
already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.