java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
com.azure.resourcemanager.mediaservices.models.JpgLayer

public final class JpgLayer extends Layer
Describes the settings to produce a JPEG image from the input video.
  • Constructor Details

    • JpgLayer

      public JpgLayer()
      Creates an instance of JpgLayer class.
  • Method Details

    • quality

      public Integer quality()
      Get the quality property: The compression quality of the JPEG output. Range is from 0-100 and the default is 70.
      Returns:
      the quality value.
    • withQuality

      public JpgLayer withQuality(Integer quality)
      Set the quality property: The compression quality of the JPEG output. Range is from 0-100 and the default is 70.
      Parameters:
      quality - the quality value to set.
      Returns:
      the JpgLayer object itself.
    • withWidth

      public JpgLayer withWidth(String width)
      Set the width property: The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
      Overrides:
      withWidth in class Layer
      Parameters:
      width - the width value to set.
      Returns:
      the Layer object itself.
    • withHeight

      public JpgLayer withHeight(String height)
      Set the height property: The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
      Overrides:
      withHeight in class Layer
      Parameters:
      height - the height value to set.
      Returns:
      the Layer object itself.
    • withLabel

      public JpgLayer withLabel(String label)
      Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
      Overrides:
      withLabel in class Layer
      Parameters:
      label - the label value to set.
      Returns:
      the Layer object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Layer
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.