#[non_exhaustive]pub struct BurninDestinationSettingsBuilder { /* private fields */ }
Expand description
A builder for BurninDestinationSettings
.
Implementations§
source§impl BurninDestinationSettingsBuilder
impl BurninDestinationSettingsBuilder
sourcepub fn alignment(self, input: BurninSubtitleAlignment) -> Self
pub fn alignment(self, input: BurninSubtitleAlignment) -> Self
Specify the alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign 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.
sourcepub fn set_alignment(self, input: Option<BurninSubtitleAlignment>) -> Self
pub fn set_alignment(self, input: Option<BurninSubtitleAlignment>) -> Self
Specify the alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign 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.
sourcepub fn get_alignment(&self) -> &Option<BurninSubtitleAlignment>
pub fn get_alignment(&self) -> &Option<BurninSubtitleAlignment>
Specify the alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign 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.
sourcepub fn apply_font_color(self, input: BurninSubtitleApplyFontColor) -> Self
pub fn apply_font_color(self, input: BurninSubtitleApplyFontColor) -> Self
Ignore this setting unless Style passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, your font color setting only applies to white text in your input captions. For example, if your font color setting is Yellow, and your input captions have red and white text, your output captions will have red and yellow text. When you choose ALL_TEXT, your font color setting applies to all of your output captions text.
sourcepub fn set_apply_font_color(
self,
input: Option<BurninSubtitleApplyFontColor>
) -> Self
pub fn set_apply_font_color( self, input: Option<BurninSubtitleApplyFontColor> ) -> Self
Ignore this setting unless Style passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, your font color setting only applies to white text in your input captions. For example, if your font color setting is Yellow, and your input captions have red and white text, your output captions will have red and yellow text. When you choose ALL_TEXT, your font color setting applies to all of your output captions text.
sourcepub fn get_apply_font_color(&self) -> &Option<BurninSubtitleApplyFontColor>
pub fn get_apply_font_color(&self) -> &Option<BurninSubtitleApplyFontColor>
Ignore this setting unless Style passthrough is set to Enabled and Font color set to Black, Yellow, Red, Green, Blue, or Hex. Use Apply font color for additional font color controls. When you choose White text only, or leave blank, your font color setting only applies to white text in your input captions. For example, if your font color setting is Yellow, and your input captions have red and white text, your output captions will have red and yellow text. When you choose ALL_TEXT, your font color setting applies to all of your output captions text.
sourcepub fn background_color(self, input: BurninSubtitleBackgroundColor) -> Self
pub fn background_color(self, input: BurninSubtitleBackgroundColor) -> Self
Specify the color of the rectangle behind the captions. Leave background color blank and set Style passthrough to enabled to use the background color data from your input captions, if present.
sourcepub fn set_background_color(
self,
input: Option<BurninSubtitleBackgroundColor>
) -> Self
pub fn set_background_color( self, input: Option<BurninSubtitleBackgroundColor> ) -> Self
Specify the color of the rectangle behind the captions. Leave background color blank and set Style passthrough to enabled to use the background color data from your input captions, if present.
sourcepub fn get_background_color(&self) -> &Option<BurninSubtitleBackgroundColor>
pub fn get_background_color(&self) -> &Option<BurninSubtitleBackgroundColor>
Specify the color of the rectangle behind the captions. Leave background color blank and set Style passthrough to enabled to use the background color data from your input captions, if present.
sourcepub fn background_opacity(self, input: i32) -> Self
pub fn background_opacity(self, input: i32) -> Self
Specify the opacity of the background rectangle. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to enabled, leave blank to pass through the background style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all backgrounds from your output captions.
sourcepub fn set_background_opacity(self, input: Option<i32>) -> Self
pub fn set_background_opacity(self, input: Option<i32>) -> Self
Specify the opacity of the background rectangle. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to enabled, leave blank to pass through the background style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all backgrounds from your output captions.
sourcepub fn get_background_opacity(&self) -> &Option<i32>
pub fn get_background_opacity(&self) -> &Option<i32>
Specify the opacity of the background rectangle. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to enabled, leave blank to pass through the background style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all backgrounds from your output captions.
sourcepub fn fallback_font(self, input: BurninSubtitleFallbackFont) -> Self
pub fn fallback_font(self, input: BurninSubtitleFallbackFont) -> Self
Specify the font that you want the service to use for your burn in captions when your input captions specify a font that MediaConvert doesn’t support. When you set Fallback font to best match, or leave blank, MediaConvert uses a supported font that most closely matches the font that your input captions specify. When there are multiple unsupported fonts in your input captions, MediaConvert matches each font with the supported font that matches best. When you explicitly choose a replacement font, MediaConvert uses that font to replace all unsupported fonts from your input.
sourcepub fn set_fallback_font(
self,
input: Option<BurninSubtitleFallbackFont>
) -> Self
pub fn set_fallback_font( self, input: Option<BurninSubtitleFallbackFont> ) -> Self
Specify the font that you want the service to use for your burn in captions when your input captions specify a font that MediaConvert doesn’t support. When you set Fallback font to best match, or leave blank, MediaConvert uses a supported font that most closely matches the font that your input captions specify. When there are multiple unsupported fonts in your input captions, MediaConvert matches each font with the supported font that matches best. When you explicitly choose a replacement font, MediaConvert uses that font to replace all unsupported fonts from your input.
sourcepub fn get_fallback_font(&self) -> &Option<BurninSubtitleFallbackFont>
pub fn get_fallback_font(&self) -> &Option<BurninSubtitleFallbackFont>
Specify the font that you want the service to use for your burn in captions when your input captions specify a font that MediaConvert doesn’t support. When you set Fallback font to best match, or leave blank, MediaConvert uses a supported font that most closely matches the font that your input captions specify. When there are multiple unsupported fonts in your input captions, MediaConvert matches each font with the supported font that matches best. When you explicitly choose a replacement font, MediaConvert uses that font to replace all unsupported fonts from your input.
sourcepub fn font_color(self, input: BurninSubtitleFontColor) -> Self
pub fn font_color(self, input: BurninSubtitleFontColor) -> Self
Specify the color of the burned-in captions text. Leave Font color blank and set Style passthrough to enabled to use the font color data from your input captions, if present.
sourcepub fn set_font_color(self, input: Option<BurninSubtitleFontColor>) -> Self
pub fn set_font_color(self, input: Option<BurninSubtitleFontColor>) -> Self
Specify the color of the burned-in captions text. Leave Font color blank and set Style passthrough to enabled to use the font color data from your input captions, if present.
sourcepub fn get_font_color(&self) -> &Option<BurninSubtitleFontColor>
pub fn get_font_color(&self) -> &Option<BurninSubtitleFontColor>
Specify the color of the burned-in captions text. Leave Font color blank and set Style passthrough to enabled to use the font color data from your input captions, if present.
sourcepub fn font_file_bold(self, input: impl Into<String>) -> Self
pub fn font_file_bold(self, input: impl Into<String>) -> Self
Specify a bold TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, an italic, and a bold italic font file.
sourcepub fn set_font_file_bold(self, input: Option<String>) -> Self
pub fn set_font_file_bold(self, input: Option<String>) -> Self
Specify a bold TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, an italic, and a bold italic font file.
sourcepub fn get_font_file_bold(&self) -> &Option<String>
pub fn get_font_file_bold(&self) -> &Option<String>
Specify a bold TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, an italic, and a bold italic font file.
sourcepub fn font_file_bold_italic(self, input: impl Into<String>) -> Self
pub fn font_file_bold_italic(self, input: impl Into<String>) -> Self
Specify a bold italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and an italic font file.
sourcepub fn set_font_file_bold_italic(self, input: Option<String>) -> Self
pub fn set_font_file_bold_italic(self, input: Option<String>) -> Self
Specify a bold italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and an italic font file.
sourcepub fn get_font_file_bold_italic(&self) -> &Option<String>
pub fn get_font_file_bold_italic(&self) -> &Option<String>
Specify a bold italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and an italic font file.
sourcepub fn font_file_italic(self, input: impl Into<String>) -> Self
pub fn font_file_italic(self, input: impl Into<String>) -> Self
Specify an italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and a bold italic font file.
sourcepub fn set_font_file_italic(self, input: Option<String>) -> Self
pub fn set_font_file_italic(self, input: Option<String>) -> Self
Specify an italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and a bold italic font file.
sourcepub fn get_font_file_italic(&self) -> &Option<String>
pub fn get_font_file_italic(&self) -> &Option<String>
Specify an italic TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a regular, a bold, and a bold italic font file.
sourcepub fn font_file_regular(self, input: impl Into<String>) -> Self
pub fn font_file_regular(self, input: impl Into<String>) -> Self
Specify a regular TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a bold, an italic, and a bold italic font file.
sourcepub fn set_font_file_regular(self, input: Option<String>) -> Self
pub fn set_font_file_regular(self, input: Option<String>) -> Self
Specify a regular TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a bold, an italic, and a bold italic font file.
sourcepub fn get_font_file_regular(&self) -> &Option<String>
pub fn get_font_file_regular(&self) -> &Option<String>
Specify a regular TrueType font file to use when rendering your output captions. Enter an S3, HTTP, or HTTPS URL. When you do, you must also separately specify a bold, an italic, and a bold italic font file.
sourcepub fn font_opacity(self, input: i32) -> Self
pub fn font_opacity(self, input: i32) -> Self
Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
sourcepub fn set_font_opacity(self, input: Option<i32>) -> Self
pub fn set_font_opacity(self, input: Option<i32>) -> Self
Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
sourcepub fn get_font_opacity(&self) -> &Option<i32>
pub fn get_font_opacity(&self) -> &Option<i32>
Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent.
sourcepub fn font_resolution(self, input: i32) -> Self
pub fn font_resolution(self, input: i32) -> Self
Specify the Font resolution in DPI (dots per inch).
sourcepub fn set_font_resolution(self, input: Option<i32>) -> Self
pub fn set_font_resolution(self, input: Option<i32>) -> Self
Specify the Font resolution in DPI (dots per inch).
sourcepub fn get_font_resolution(&self) -> &Option<i32>
pub fn get_font_resolution(&self) -> &Option<i32>
Specify the Font resolution in DPI (dots per inch).
sourcepub fn font_script(self, input: FontScript) -> Self
pub fn font_script(self, input: FontScript) -> Self
Set Font script to Automatically determined, or leave blank, to automatically determine the font script in your input captions. Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if your input font script uses Simplified or Traditional Chinese.
sourcepub fn set_font_script(self, input: Option<FontScript>) -> Self
pub fn set_font_script(self, input: Option<FontScript>) -> Self
Set Font script to Automatically determined, or leave blank, to automatically determine the font script in your input captions. Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if your input font script uses Simplified or Traditional Chinese.
sourcepub fn get_font_script(&self) -> &Option<FontScript>
pub fn get_font_script(&self) -> &Option<FontScript>
Set Font script to Automatically determined, or leave blank, to automatically determine the font script in your input captions. Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if your input font script uses Simplified or Traditional Chinese.
sourcepub fn font_size(self, input: i32) -> Self
pub fn font_size(self, input: i32) -> Self
Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave blank, for automatic font size.
sourcepub fn set_font_size(self, input: Option<i32>) -> Self
pub fn set_font_size(self, input: Option<i32>) -> Self
Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave blank, for automatic font size.
sourcepub fn get_font_size(&self) -> &Option<i32>
pub fn get_font_size(&self) -> &Option<i32>
Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave blank, for automatic font size.
sourcepub fn hex_font_color(self, input: impl Into<String>) -> Self
pub fn hex_font_color(self, input: impl Into<String>) -> Self
Ignore this setting unless your Font color is set to Hex. Enter either six or eight hexidecimal digits, representing red, green, and blue, with two optional extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB.
sourcepub fn set_hex_font_color(self, input: Option<String>) -> Self
pub fn set_hex_font_color(self, input: Option<String>) -> Self
Ignore this setting unless your Font color is set to Hex. Enter either six or eight hexidecimal digits, representing red, green, and blue, with two optional extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB.
sourcepub fn get_hex_font_color(&self) -> &Option<String>
pub fn get_hex_font_color(&self) -> &Option<String>
Ignore this setting unless your Font color is set to Hex. Enter either six or eight hexidecimal digits, representing red, green, and blue, with two optional extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB.
sourcepub fn outline_color(self, input: BurninSubtitleOutlineColor) -> Self
pub fn outline_color(self, input: BurninSubtitleOutlineColor) -> Self
Specify font outline color. Leave Outline color blank and set Style passthrough to enabled to use the font outline color data from your input captions, if present.
sourcepub fn set_outline_color(
self,
input: Option<BurninSubtitleOutlineColor>
) -> Self
pub fn set_outline_color( self, input: Option<BurninSubtitleOutlineColor> ) -> Self
Specify font outline color. Leave Outline color blank and set Style passthrough to enabled to use the font outline color data from your input captions, if present.
sourcepub fn get_outline_color(&self) -> &Option<BurninSubtitleOutlineColor>
pub fn get_outline_color(&self) -> &Option<BurninSubtitleOutlineColor>
Specify font outline color. Leave Outline color blank and set Style passthrough to enabled to use the font outline color data from your input captions, if present.
sourcepub fn outline_size(self, input: i32) -> Self
pub fn outline_size(self, input: i32) -> Self
Specify the Outline size of the caption text, in pixels. Leave Outline size blank and set Style passthrough to enabled to use the outline size data from your input captions, if present.
sourcepub fn set_outline_size(self, input: Option<i32>) -> Self
pub fn set_outline_size(self, input: Option<i32>) -> Self
Specify the Outline size of the caption text, in pixels. Leave Outline size blank and set Style passthrough to enabled to use the outline size data from your input captions, if present.
sourcepub fn get_outline_size(&self) -> &Option<i32>
pub fn get_outline_size(&self) -> &Option<i32>
Specify the Outline size of the caption text, in pixels. Leave Outline size blank and set Style passthrough to enabled to use the outline size data from your input captions, if present.
sourcepub fn shadow_color(self, input: BurninSubtitleShadowColor) -> Self
pub fn shadow_color(self, input: BurninSubtitleShadowColor) -> Self
Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled to use the shadow color data from your input captions, if present.
sourcepub fn set_shadow_color(self, input: Option<BurninSubtitleShadowColor>) -> Self
pub fn set_shadow_color(self, input: Option<BurninSubtitleShadowColor>) -> Self
Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled to use the shadow color data from your input captions, if present.
sourcepub fn get_shadow_color(&self) -> &Option<BurninSubtitleShadowColor>
pub fn get_shadow_color(&self) -> &Option<BurninSubtitleShadowColor>
Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled to use the shadow color data from your input captions, if present.
sourcepub fn shadow_opacity(self, input: i32) -> Self
pub fn shadow_opacity(self, input: i32) -> Self
Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to Enabled, leave Shadow opacity blank to pass through the shadow style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all shadows from your output captions.
sourcepub fn set_shadow_opacity(self, input: Option<i32>) -> Self
pub fn set_shadow_opacity(self, input: Option<i32>) -> Self
Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to Enabled, leave Shadow opacity blank to pass through the shadow style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all shadows from your output captions.
sourcepub fn get_shadow_opacity(&self) -> &Option<i32>
pub fn get_shadow_opacity(&self) -> &Option<i32>
Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is transparent and 255 is opaque. If Style passthrough is set to Enabled, leave Shadow opacity blank to pass through the shadow style information in your input captions to your output captions. If Style passthrough is set to disabled, leave blank to use a value of 0 and remove all shadows from your output captions.
sourcepub fn shadow_x_offset(self, input: i32) -> Self
pub fn shadow_x_offset(self, input: i32) -> Self
Specify 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.
sourcepub fn set_shadow_x_offset(self, input: Option<i32>) -> Self
pub fn set_shadow_x_offset(self, input: Option<i32>) -> Self
Specify 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.
sourcepub fn get_shadow_x_offset(&self) -> &Option<i32>
pub fn get_shadow_x_offset(&self) -> &Option<i32>
Specify 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.
sourcepub fn shadow_y_offset(self, input: i32) -> Self
pub fn shadow_y_offset(self, input: i32) -> Self
Specify 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. Leave Shadow y-offset blank and set Style passthrough to enabled to use the shadow y-offset data from your input captions, if present.
sourcepub fn set_shadow_y_offset(self, input: Option<i32>) -> Self
pub fn set_shadow_y_offset(self, input: Option<i32>) -> Self
Specify 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. Leave Shadow y-offset blank and set Style passthrough to enabled to use the shadow y-offset data from your input captions, if present.
sourcepub fn get_shadow_y_offset(&self) -> &Option<i32>
pub fn get_shadow_y_offset(&self) -> &Option<i32>
Specify 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. Leave Shadow y-offset blank and set Style passthrough to enabled to use the shadow y-offset data from your input captions, if present.
sourcepub fn style_passthrough(self, input: BurnInSubtitleStylePassthrough) -> Self
pub fn style_passthrough(self, input: BurnInSubtitleStylePassthrough) -> Self
To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. Note that MediaConvert uses default settings for any missing style or position information in your input captions To ignore the style and position information from your input captions and use default settings: Leave blank or keep the default value, Disabled. Default settings include white text with black outlining, bottom-center positioning, and automatic sizing. Whether you set Style passthrough to enabled or not, you can also choose to manually override any of the individual style and position settings. You can also override any fonts by manually specifying custom font files.
sourcepub fn set_style_passthrough(
self,
input: Option<BurnInSubtitleStylePassthrough>
) -> Self
pub fn set_style_passthrough( self, input: Option<BurnInSubtitleStylePassthrough> ) -> Self
To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. Note that MediaConvert uses default settings for any missing style or position information in your input captions To ignore the style and position information from your input captions and use default settings: Leave blank or keep the default value, Disabled. Default settings include white text with black outlining, bottom-center positioning, and automatic sizing. Whether you set Style passthrough to enabled or not, you can also choose to manually override any of the individual style and position settings. You can also override any fonts by manually specifying custom font files.
sourcepub fn get_style_passthrough(&self) -> &Option<BurnInSubtitleStylePassthrough>
pub fn get_style_passthrough(&self) -> &Option<BurnInSubtitleStylePassthrough>
To use the available style, color, and position information from your input captions: Set Style passthrough to Enabled. Note that MediaConvert uses default settings for any missing style or position information in your input captions To ignore the style and position information from your input captions and use default settings: Leave blank or keep the default value, Disabled. Default settings include white text with black outlining, bottom-center positioning, and automatic sizing. Whether you set Style passthrough to enabled or not, you can also choose to manually override any of the individual style and position settings. You can also override any fonts by manually specifying custom font files.
sourcepub fn teletext_spacing(self, input: BurninSubtitleTeletextSpacing) -> Self
pub fn teletext_spacing(self, input: BurninSubtitleTeletextSpacing) -> Self
Specify whether the text spacing in your captions is set by the captions grid, or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read for closed captions.
sourcepub fn set_teletext_spacing(
self,
input: Option<BurninSubtitleTeletextSpacing>
) -> Self
pub fn set_teletext_spacing( self, input: Option<BurninSubtitleTeletextSpacing> ) -> Self
Specify whether the text spacing in your captions is set by the captions grid, or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read for closed captions.
sourcepub fn get_teletext_spacing(&self) -> &Option<BurninSubtitleTeletextSpacing>
pub fn get_teletext_spacing(&self) -> &Option<BurninSubtitleTeletextSpacing>
Specify whether the text spacing in your captions is set by the captions grid, or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read for closed captions.
sourcepub fn x_position(self, input: i32) -> Self
pub fn x_position(self, input: i32) -> Self
Specify the horizontal position of the captions, 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 x_position is provided, the horizontal caption position will be determined by the alignment parameter.
sourcepub fn set_x_position(self, input: Option<i32>) -> Self
pub fn set_x_position(self, input: Option<i32>) -> Self
Specify the horizontal position of the captions, 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 x_position is provided, the horizontal caption position will be determined by the alignment parameter.
sourcepub fn get_x_position(&self) -> &Option<i32>
pub fn get_x_position(&self) -> &Option<i32>
Specify the horizontal position of the captions, 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 x_position is provided, the horizontal caption position will be determined by the alignment parameter.
sourcepub fn y_position(self, input: i32) -> Self
pub fn y_position(self, input: i32) -> Self
Specify the vertical position of the captions, 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 y_position is provided, the caption will be positioned towards the bottom of the output.
sourcepub fn set_y_position(self, input: Option<i32>) -> Self
pub fn set_y_position(self, input: Option<i32>) -> Self
Specify the vertical position of the captions, 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 y_position is provided, the caption will be positioned towards the bottom of the output.
sourcepub fn get_y_position(&self) -> &Option<i32>
pub fn get_y_position(&self) -> &Option<i32>
Specify the vertical position of the captions, 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 y_position is provided, the caption will be positioned towards the bottom of the output.
sourcepub fn build(self) -> BurninDestinationSettings
pub fn build(self) -> BurninDestinationSettings
Consumes the builder and constructs a BurninDestinationSettings
.
Trait Implementations§
source§impl Clone for BurninDestinationSettingsBuilder
impl Clone for BurninDestinationSettingsBuilder
source§fn clone(&self) -> BurninDestinationSettingsBuilder
fn clone(&self) -> BurninDestinationSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BurninDestinationSettingsBuilder
impl Default for BurninDestinationSettingsBuilder
source§fn default() -> BurninDestinationSettingsBuilder
fn default() -> BurninDestinationSettingsBuilder
source§impl PartialEq for BurninDestinationSettingsBuilder
impl PartialEq for BurninDestinationSettingsBuilder
source§fn eq(&self, other: &BurninDestinationSettingsBuilder) -> bool
fn eq(&self, other: &BurninDestinationSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BurninDestinationSettingsBuilder
Auto Trait Implementations§
impl Freeze for BurninDestinationSettingsBuilder
impl RefUnwindSafe for BurninDestinationSettingsBuilder
impl Send for BurninDestinationSettingsBuilder
impl Sync for BurninDestinationSettingsBuilder
impl Unpin for BurninDestinationSettingsBuilder
impl UnwindSafe for BurninDestinationSettingsBuilder
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> 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 more