Skip to content

Commit

Permalink
Mention alpha for matrix transformation background color.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 453633920
  • Loading branch information
hmsch authored and marcbaechinger committed Jun 9, 2022
1 parent 0b37d86 commit d5e4faa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Expand Up @@ -27,7 +27,8 @@
* 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.
*/
public interface GlMatrixTransformation extends GlEffect {
/**
Expand Down
Expand Up @@ -24,7 +24,8 @@
* 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.
*/
public interface MatrixTransformation extends GlMatrixTransformation {
/**
Expand Down
Expand Up @@ -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.
*
* <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
/* package */ final class MatrixTransformationProcessor extends SingleFrameGlTextureProcessor {
Expand Down
Expand Up @@ -39,7 +39,7 @@
*
* <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 {

Expand Down
Expand Up @@ -31,7 +31,7 @@
* <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.
*/
public final class ScaleToFitTransformation implements MatrixTransformation {

Expand Down

0 comments on commit d5e4faa

Please sign in to comment.