Class JpgLayer
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
com.azure.resourcemanager.mediaservices.models.JpgLayer
Describes the settings to produce a JPEG image from the input video.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionquality()
Get the quality property: The compression quality of the JPEG output.void
validate()
Validates the instance.withHeight
(String height) Set the height property: The height of the output video for this layer.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.withQuality
(Integer quality) Set the quality property: The compression quality of the JPEG output.Set the width property: The width of the output video for this layer.
-
Constructor Details
-
JpgLayer
public JpgLayer()Creates an instance of JpgLayer class.
-
-
Method Details
-
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
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
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. -
withHeight
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 classLayer
- Parameters:
height
- the height value to set.- Returns:
- the Layer object itself.
-
withLabel
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. -
validate
public void validate()Validates the instance.- Overrides:
validate
in classLayer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-