Commit 1086e3bf by hschlueter Committed by microkatz

Mention alpha for matrix transformation background color.

PiperOrigin-RevId: 453633920
(cherry picked from commit d5e4faa9)
parent df6c8f1d
...@@ -27,7 +27,8 @@ import java.io.IOException; ...@@ -27,7 +27,8 @@ import java.io.IOException;
* 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
* clipped. * 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.
*/ */
public interface GlMatrixTransformation extends GlEffect { public interface GlMatrixTransformation extends GlEffect {
/** /**
......
...@@ -24,7 +24,8 @@ import android.graphics.Matrix; ...@@ -24,7 +24,8 @@ import android.graphics.Matrix;
* 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
* clipped. * 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.
*/ */
public interface MatrixTransformation extends GlMatrixTransformation { public interface MatrixTransformation extends GlMatrixTransformation {
/** /**
......
...@@ -36,7 +36,7 @@ import java.util.Arrays; ...@@ -36,7 +36,7 @@ import java.util.Arrays;
* Transformed vertices that are moved outside of this range after any of the transformation * Transformed vertices that are moved outside of this range after any of the transformation
* matrices are clipped to the NDC range. * 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).
*/ */
@SuppressWarnings("FunctionalInterfaceClash") // b/228192298 @SuppressWarnings("FunctionalInterfaceClash") // b/228192298
/* package */ final class MatrixTransformationProcessor extends SingleFrameGlTextureProcessor { /* package */ final class MatrixTransformationProcessor extends SingleFrameGlTextureProcessor {
......
...@@ -39,7 +39,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -39,7 +39,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
* *
* <p>Cropping or aspect ratio is applied before setting resolution. * <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.
*/ */
public final class Presentation implements MatrixTransformation { public final class Presentation implements MatrixTransformation {
......
...@@ -31,7 +31,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -31,7 +31,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
* <p>All input frames' pixels will be preserved and copied into an output frame, potentially * <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. * 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.
*/ */
public final class ScaleToFitTransformation implements MatrixTransformation { public final class ScaleToFitTransformation implements MatrixTransformation {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment