mirror of
https://github.com/androidx/media.git
synced 2025-05-17 12:39:52 +08:00
Effect: Clarify that padding is added in ScaleToFitTransformation.
PiperOrigin-RevId: 504796380
This commit is contained in:
parent
0874c1e795
commit
a5d43b2194
@ -23,7 +23,7 @@ import androidx.media3.common.util.UnstableApi;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies a 4x4 transformation {@link Matrix} to apply in the vertex shader for each frame.
|
* Specifies a 4x4 transformation {@link Matrix} to apply in the vertex shader for each input frame.
|
||||||
*
|
*
|
||||||
* <p>The matrix is applied to points given in normalized device coordinates (-1 to 1 on x, y, and z
|
* <p>The matrix is applied to points given in normalized device coordinates (-1 to 1 on x, y, and z
|
||||||
* axes). Transformed pixels that are moved outside of the normal device coordinate range are
|
* axes). Transformed pixels that are moved outside of the normal device coordinate range are
|
||||||
|
@ -74,9 +74,9 @@ public final class ScaleToFitTransformation implements MatrixTransformation {
|
|||||||
*
|
*
|
||||||
* <p>The default value, 0, corresponds to not applying any rotation.
|
* <p>The default value, 0, corresponds to not applying any rotation.
|
||||||
*
|
*
|
||||||
* <p>The output frame's width and height are automatically adjusted to preserve all input
|
* <p>The output frame's width and height are adjusted to preserve all input pixels. The rotated
|
||||||
* pixels. The rotated input frame is fitted inside an enclosing black rectangle if its edges
|
* input frame is fitted inside an enclosing black rectangle if its edges aren't parallel to the
|
||||||
* aren't parallel to the x and y axes.
|
* x and y axes, to form the output frame.
|
||||||
*
|
*
|
||||||
* @param rotationDegrees The counterclockwise rotation, in degrees.
|
* @param rotationDegrees The counterclockwise rotation, in degrees.
|
||||||
* @return This builder.
|
* @return This builder.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user