ScaleAndRotateTransformation
@UnstableApi
class ScaleAndRotateTransformation : MatrixTransformation
Specifies a simple rotation and/or scale to apply in the vertex shader.
All input frames' pixels will be preserved and copied into an output frame, potentially changing the width and height of the frame by scaling dimensions to fit.
The background color of the output frame will be black, with alpha = 0 if applicable.
Summary
Nested types |
|---|
|
A builder for |
Public functions |
|
|---|---|
Size! |
Configures the input and output dimensions. |
Matrix! |
Returns the 3x3 transformation |
Boolean |
Returns whether a |
Public properties |
|
|---|---|
Float |
The counterclockwise rotation, in degrees. |
Float |
The multiplier by which the frame will scale horizontally, along the x-axis. |
Float |
The multiplier by which the frame will scale vertically, along the y-axis. |
Inherited functions |
||||
|---|---|---|---|---|
|
||||
|
||||
|
||||
|
Public functions
configure
fun configure(inputWidth: Int, inputHeight: Int): Size!
Configures the input and output dimensions.
Must be called before getGlMatrixArray.
| Parameters | |
|---|---|
inputWidth: Int |
The input frame width, in pixels. |
inputHeight: Int |
The input frame height, in pixels. |
| Returns | |
|---|---|
Size! |
The output frame width and height, in pixels. |
Public properties
rotationDegrees
val rotationDegrees: Float
The counterclockwise rotation, in degrees. The value should always be between 0 (included) and 360 degrees (excluded).