Class Layer
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
- Direct Known Subclasses:
H265VideoLayer
,JpgLayer
,PngLayer
,VideoLayer
The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a
layer for each desired resolution. A layer represents the properties for the video or image at a resolution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionheight()
Get the height property: The height of the output video for this layer.label()
Get 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.void
validate()
Validates the instance.width()
Get the width property: The width of the output video for this layer.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.Set the width property: The width of the output video for this layer.
-
Constructor Details
-
Layer
public Layer()Creates an instance of Layer class.
-
-
Method Details
-
width
Get 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.- Returns:
- the width value.
-
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.- Parameters:
width
- the width value to set.- Returns:
- the Layer object itself.
-
height
Get 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.- Returns:
- the height value.
-
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.- Parameters:
height
- the height value to set.- Returns:
- the Layer object itself.
-
label
Get 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.- Returns:
- the label value.
-
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.- Parameters:
label
- the label value to set.- Returns:
- the Layer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-