PixelAspectRatio

class aws_cdk.aws_medialive_alpha.PixelAspectRatio(*args: Any, **kwargs)

Bases: object

(experimental) The pixel aspect ratio (PAR) of the video.

Use the predefined constants for standard ratios, or {@link PixelAspectRatio.of} for a custom ratio.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

pixel_aspect_ratio = medialive_alpha.PixelAspectRatio.of(123, 123)

Methods

to_string()

(experimental) Returns the string value in numerator:denominator form.

Stability:

experimental

Return type:

str

Attributes

SQUARE = <aws_cdk.aws_medialive_alpha.PixelAspectRatio object>

Static Methods

classmethod of(numerator, denominator)

(experimental) Define a pixel aspect ratio.

Parameters:
  • numerator (Union[int, float]) – Numerator of the ratio.

  • denominator (Union[int, float]) – Denominator of the ratio.

Stability:

experimental

Return type:

PixelAspectRatio