class ScanMode
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.ScanMode |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#ScanMode |
Java | software.amazon.awscdk.services.mediaconnect.alpha.ScanMode |
Python | aws_cdk.aws_mediaconnect_alpha.ScanMode |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป ScanMode |
Options for Scan Mode.
Example
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
| Name | Type | Description |
|---|---|---|
| value | string | The scan mode string value. |
| static INTERLACE | Scan | Option for Interlace. |
| static PROGRESSIVE | Scan | Option for Progressive. |
| static PROGRESSIVE_SEGMENTED_FRAME | Scan | Option for Progressive Segmented Frame. |
value
Type:
string
The scan mode string value.
static INTERLACE
Type:
Scan
Option for Interlace.
static PROGRESSIVE
Type:
Scan
Option for Progressive.
static PROGRESSIVE_SEGMENTED_FRAME
Type:
Scan
Option for Progressive Segmented Frame.
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(value) | Use a custom scan mode value. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(value)
public static of(value: string): ScanMode
Parameters
- value
string
Returns
Use a custom scan mode value.

.NET
Go
Java
Python
TypeScript (