java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.mediaconnect.alpha.ScanMode
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-31T10:49:55.225Z") @Stability(Experimental) public class ScanMode extends software.amazon.jsii.JsiiObject
(experimental) Options for Scan Mode.

Example:

 Stack stack;
 IRole role;
 ISecurityGroup sg1;
 ISecurityGroup sg2;
 ISubnet subnet;
 VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
         .vpcInterfaceName("efa-interface")
         .role(role)
         .securityGroups(List.of(sg1))
         .subnet(subnet)
         .networkInterfaceType(NetworkInterface.EFA)
         .build());
 VpcInterfaceConfig enaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
         .vpcInterfaceName("ena-interface")
         .role(role)
         .securityGroups(List.of(sg2))
         .subnet(subnet)
         .networkInterfaceType(NetworkInterface.ENA)
         .build());
 MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
         .mediaStreamId(1)
         .mediaStreamName("video")
         .videoFormat(MediaVideoFormat.UHD_2160P)
         .fmtp(FmtpVideo.builder()
                 .exactFramerate(Framerate.FPS_59_94)
                 .par(PixelAspectRatio.SQUARE)
                 .colorimetry(Colorimetry.BT2020)
                 .videoRange(VideoRange.FULL)
                 .scanMode(ScanMode.PROGRESSIVE)
                 .tcs(Tcs.PQ)
                 .build())
         .build());
 Flow flow = Flow.Builder.create(stack, "MyJpegXsFlow")
         .flowSize(FlowSize.LARGE_4X) // Required for JPEG XS
         .vpcInterfaces(List.of(efaInterface, enaInterface))
         .mediaStreams(List.of(videoStream))
         .source(SourceConfiguration.jpegXs(SourceJpegXs.builder()
                 .flowSourceName("jpegxs-source")
                 .maxSyncBuffer(100)
                 .mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationJpegXs.builder()
                         .encoding(Encoding.JXSV)
                         .port(5000)
                         .inputInterface(List.of(efaInterface, enaInterface)) // 2 interfaces for redundancy
                         .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

    Fields
    Modifier and Type
    Field
    Description
    static final ScanMode
    (experimental) Option for Interlace.
    static final ScanMode
    (experimental) Option for Progressive.
    static final ScanMode
    (experimental) Option for Progressive Segmented Frame.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ScanMode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ScanMode(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) The scan mode string value.
    static ScanMode
    of(String value)
    (experimental) Use a custom scan mode value.
    (experimental) Returns the string value.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • INTERLACE

      @Stability(Experimental) public static final ScanMode INTERLACE
      (experimental) Option for Interlace.
    • PROGRESSIVE

      @Stability(Experimental) public static final ScanMode PROGRESSIVE
      (experimental) Option for Progressive.
    • PROGRESSIVE_SEGMENTED_FRAME

      @Stability(Experimental) public static final ScanMode PROGRESSIVE_SEGMENTED_FRAME
      (experimental) Option for Progressive Segmented Frame.
  • Constructor Details

    • ScanMode

      protected ScanMode(software.amazon.jsii.JsiiObjectRef objRef)
    • ScanMode

      protected ScanMode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Experimental) @NotNull public static ScanMode of(@NotNull String value)
      (experimental) Use a custom scan mode value.

      Parameters:
      value - This parameter is required.
    • toString

      @Stability(Experimental) @NotNull public String toString()
      (experimental) Returns the string value.
      Overrides:
      toString in class Object
    • getValue

      @Stability(Experimental) @NotNull public String getValue()
      (experimental) The scan mode string value.