Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d5e4faa9
authored
Jun 08, 2022
by
hschlueter
Committed by
Marc Baechinger
Jun 09, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Mention alpha for matrix transformation background color.
PiperOrigin-RevId: 453633920
parent
0b37d860
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/GlMatrixTransformation.java
View file @
d5e4faa9
...
...
@@ -27,7 +27,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.
*/
public
interface
GlMatrixTransformation
extends
GlEffect
{
/**
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformation.java
View file @
d5e4faa9
...
...
@@ -24,7 +24,8 @@ import android.graphics.Matrix;
* 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
{
/**
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MatrixTransformationProcessor.java
View file @
d5e4faa9
...
...
@@ -36,7 +36,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)
.
*/
@SuppressWarnings
(
"FunctionalInterfaceClash"
)
// b/228192298
/* package */
final
class
MatrixTransformationProcessor
extends
SingleFrameGlTextureProcessor
{
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Presentation.java
View file @
d5e4faa9
...
...
@@ -39,7 +39,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
.
*/
public
final
class
Presentation
implements
MatrixTransformation
{
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/ScaleToFitTransformation.java
View file @
d5e4faa9
...
...
@@ -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
* 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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment