diff --git a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java index c1cb4fd8ea6..01acf020707 100644 --- a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java +++ b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java @@ -27,7 +27,8 @@ * axes). Transformed pixels that are moved outside of the normal device coordinate range are * clipped. * - *

Output frame pixels outside of the transformed input frame will be black. + *

Output frame pixels outside of the transformed input frame will be black, with alpha = 0 if + * applicable. */ public interface GlMatrixTransformation extends GlEffect { /** diff --git a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java index eb7ea0c5af9..c1b8e94bb33 100644 --- a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java +++ b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java @@ -24,7 +24,8 @@ * axes). Transformed pixels that are moved outside of the normal device coordinate range are * clipped. * - *

Output frame pixels outside of the transformed input frame will be black. + *

Output frame pixels outside of the transformed input frame will be black, with alpha = 0 if + * applicable. */ public interface MatrixTransformation extends GlMatrixTransformation { /** diff --git a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java index 1800369c8fb..338cef18734 100644 --- a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java +++ b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java @@ -36,7 +36,7 @@ * Transformed vertices that are moved outside of this range after any of the transformation * matrices are clipped to the NDC range. * - *

The background color of the output frame will be black. + *

The background color of the output frame will be (r=0, g=0, b=0, a=0). */ @SuppressWarnings("FunctionalInterfaceClash") // b/228192298 /* package */ final class MatrixTransformationProcessor extends SingleFrameGlTextureProcessor { diff --git a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java index a6397c8c711..67f5a565a18 100644 --- a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java +++ b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java @@ -39,7 +39,7 @@ * *

Cropping or aspect ratio is applied before setting resolution. * - *

The background color of the output frame will be black. + *

The background color of the output frame will be black, with alpha = 0 if applicable. */ public final class Presentation implements MatrixTransformation { diff --git a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java index b7f758e13bc..f59bca16d93 100644 --- a/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java +++ b/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java @@ -31,7 +31,7 @@ *

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. + *

The background color of the output frame will be black, with alpha = 0 if applicable. */ public final class ScaleToFitTransformation implements MatrixTransformation {