Class PixelAspectRatio
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.mediaconnect.alpha.PixelAspectRatio
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.192Z")
@Stability(Experimental)
public class PixelAspectRatio
extends software.amazon.jsii.JsiiObject
(experimental) The pixel aspect ratio (PAR) of the video.
Use the predefined constants for standard ratios, or
for
a custom ratio.
invalid reference
PixelAspectRatio.of
Example:
Stack stack;
IRole role;
ISecurityGroup securityGroup;
ISubnet subnet;
VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("efa-interface")
.role(role)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
.networkInterfaceType(NetworkInterface.EFA)
.build());
MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
.mediaStreamId(1)
.mediaStreamName("video")
.videoFormat(MediaVideoFormat.HD_1080P)
.fmtp(FmtpVideo.builder()
.exactFramerate(Framerate.FPS_29_97)
.par(PixelAspectRatio.SQUARE)
.build())
.build());
Flow flow = Flow.Builder.create(stack, "MyCdiFlow")
.flowSize(FlowSize.LARGE_4X) // Required for CDI and JPEG XS
.vpcInterfaces(List.of(efaInterface))
.mediaStreams(List.of(videoStream))
.source(SourceConfiguration.cdi(SourceCdi.builder()
.flowSourceName("cdi-source")
.vpcInterface(efaInterface)
.port(5000)
.maxSyncBuffer(100)
.mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationCdi.builder()
.encoding(Encoding.RAW)
.mediaStream(videoStream)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PixelAspectRatio(experimental) Square pixels (1:1). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPixelAspectRatio(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPixelAspectRatio(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
SQUARE
(experimental) Square pixels (1:1).
-
-
Constructor Details
-
PixelAspectRatio
protected PixelAspectRatio(software.amazon.jsii.JsiiObjectRef objRef) -
PixelAspectRatio
protected PixelAspectRatio(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
@Stability(Experimental) @NotNull public static PixelAspectRatio of(@NotNull Number numerator, @NotNull Number denominator) (experimental) Define a pixel aspect ratio.- Parameters:
numerator- Numerator of the ratio. This parameter is required.denominator- Denominator of the ratio. This parameter is required.
-
toString
(experimental) Returns the string value innumerator:denominatorform.
-