Mention alpha for matrix transformation background color.

PiperOrigin-RevId: 453633920
(cherry picked from commit cdb80387828c0087d9c9b96c55f303b978847910)
This commit is contained in:
hschlueter 2022-06-08 09:50:18 +00:00 committed by microkatz
parent dac3878273
commit 8973efd199
5 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,8 @@ import java.io.IOException;
* axes). Transformed pixels that are moved outside of the normal device coordinate range are
* clipped.
*
* <p>Output frame pixels outside of the transformed input frame will be black.
* <p>Output frame pixels outside of the transformed input frame will be black, with alpha = 0 if
* applicable.
*/
@UnstableApi
public interface GlMatrixTransformation extends GlEffect {

View File

@ -25,7 +25,8 @@ import androidx.media3.common.util.UnstableApi;
* axes). Transformed pixels that are moved outside of the normal device coordinate range are
* clipped.
*
* <p>Output frame pixels outside of the transformed input frame will be black.
* <p>Output frame pixels outside of the transformed input frame will be black, with alpha = 0 if
* applicable.
*/
@UnstableApi
public interface MatrixTransformation extends GlMatrixTransformation {

View File

@ -37,7 +37,7 @@ import java.util.Arrays;
* Transformed vertices that are moved outside of this range after any of the transformation
* matrices are clipped to the NDC range.
*
* <p>The background color of the output frame will be black.
* <p>The background color of the output frame will be (r=0, g=0, b=0, a=0).
*/
@UnstableApi
@SuppressWarnings("FunctionalInterfaceClash") // b/228192298

View File

@ -40,7 +40,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
*
* <p>Cropping or aspect ratio is applied before setting resolution.
*
* <p>The background color of the output frame will be black.
* <p>The background color of the output frame will be black, with alpha = 0 if applicable.
*/
@UnstableApi
public final class Presentation implements MatrixTransformation {

View File

@ -32,7 +32,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
* <p>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.
*
* <p>The background color of the output frame will be black.
* <p>The background color of the output frame will be black, with alpha = 0 if applicable.
*/
@UnstableApi
public final class ScaleToFitTransformation implements MatrixTransformation {