Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Colorimetry Class
Option for Colorimetry.
Example
ts
declare const stack: Stack;
declare const role: iam.IRole;
declare const sg1: ec2.ISecurityGroup;
declare const sg2: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;
const efaInterface = VpcInterface.define({
vpcInterfaceName: 'efa-interface',
role: role,
securityGroups: [sg1],
subnet: subnet,
networkInterfaceType: NetworkInterface.EFA,
});
const enaInterface = VpcInterface.define({
vpcInterfaceName: 'ena-interface',
role: role,
securityGroups: [sg2],
subnet: subnet,
networkInterfaceType: NetworkInterface.ENA,
});
const videoStream = MediaStream.video({
mediaStreamId: 1,
mediaStreamName: 'video',
videoFormat: MediaVideoFormat.UHD_2160P,
fmtp: {
exactFramerate: Framerate.FPS_59_94,
par: PixelAspectRatio.SQUARE,
colorimetry: Colorimetry.BT2020,
videoRange: VideoRange.FULL,
scanMode: ScanMode.PROGRESSIVE,
tcs: Tcs.PQ,
},
});
const flow = new Flow(stack, 'MyJpegXsFlow', {
flowSize: FlowSize.LARGE_4X, // Required for JPEG XS
vpcInterfaces: [efaInterface, enaInterface],
mediaStreams: [videoStream],
source: SourceConfiguration.jpegXs({
flowSourceName: 'jpegxs-source',
maxSyncBuffer: 100,
mediaStreamSourceConfigurations: [{
encoding: Encoding.JXSV,
port: 5000,
inputInterface: [efaInterface, enaInterface], // 2 interfaces for redundancy
mediaStream: videoStream,
}],
}),
});
Properties
BT2020Colorimetrybt2020ColorimetryBT2020ColorimetryBT2020ColorimetryBT2020Colorimetryrequiredstatic#Option for BT2020.
BT2100Colorimetrybt2100ColorimetryBT2100ColorimetryBT2100ColorimetryBT2100Colorimetryrequiredstatic#Option for BT2100.
Option for BT601.
Option for BT709.
ST2065_1Colorimetryst2065_1ColorimetryST2065_1ColorimetryST2065_1ColorimetryST2065_1Colorimetryrequiredstatic#Option for ST2065-1.
ST2065_3Colorimetryst2065_3ColorimetryST2065_3ColorimetryST2065_3ColorimetryST2065_3Colorimetryrequiredstatic#Option for ST2065-3.
The colorimetry string value.
Option for XYZ.
Methods
of(value: string): Colorimetry // chainable@staticmethod def of(value: str) -> Colorimetrypublic static Colorimetry of(String value)public static Colorimetry Of(string value)func Of(Value *string) Colorimetrystatic#Use a custom colorimetry value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#Returns the string value.