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 457f446 commit cdb8038
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Expand Up @@ -28,7 +28,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.
*/
@UnstableApi
public interface GlMatrixTransformation extends GlEffect {
Expand Down
Expand Up @@ -25,7 +25,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.
*/
@UnstableApi
public interface MatrixTransformation extends GlMatrixTransformation {
Expand Down
Expand Up @@ -37,7 +37,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).
*/
@UnstableApi
@SuppressWarnings("FunctionalInterfaceClash") // b/228192298
Expand Down
Expand Up @@ -40,7 +40,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.
*/
@UnstableApi
public final class Presentation implements MatrixTransformation {
Expand Down
Expand Up @@ -32,7 +32,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.
*/
@UnstableApi
public final class ScaleToFitTransformation implements MatrixTransformation {
Expand Down

0 comments on commit cdb8038

Please sign in to comment.