mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Mention alpha for matrix transformation background color.
PiperOrigin-RevId: 453633920 (cherry picked from commit cdb80387828c0087d9c9b96c55f303b978847910)
This commit is contained in:
parent
dac3878273
commit
8973efd199
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user