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
daa08535
authored
Dec 09, 2021
by
huangdarwin
Committed by
Oliver Woodman
Dec 10, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
GL: Misc refactoring for clarity.
PiperOrigin-RevId: 415279434
parent
0744989d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/FrameEditor.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/FrameEditor.java
View file @
daa08535
...
@@ -48,8 +48,7 @@ import java.io.IOException;
...
@@ -48,8 +48,7 @@ import java.io.IOException;
* @param outputHeight The output height in pixels.
* @param outputHeight The output height in pixels.
* @param transformationMatrix The transformation matrix to apply to each frame.
* @param transformationMatrix The transformation matrix to apply to each frame.
* @param outputSurface The {@link Surface}.
* @param outputSurface The {@link Surface}.
* @param debugViewProvider Provider for optional debug views to show intermediate output, for
* @param debugViewProvider Provider for optional debug views to show intermediate output.
* debugging.
* @return A configured {@code FrameEditor}.
* @return A configured {@code FrameEditor}.
*/
*/
public
static
FrameEditor
create
(
public
static
FrameEditor
create
(
...
@@ -259,12 +258,10 @@ import java.io.IOException;
...
@@ -259,12 +258,10 @@ import java.io.IOException;
inputSurface
.
release
();
inputSurface
.
release
();
}
}
/**
/** Focuses the specified surface with the specified width and height, then draws a quad. */
* Focuses the specified surface with the specified width and height, then draws a four-vertex
* triangle strip (which is a quadrilateral).
*/
private
void
focusAndDrawQuad
(
EGLSurface
eglSurface
,
int
width
,
int
height
)
{
private
void
focusAndDrawQuad
(
EGLSurface
eglSurface
,
int
width
,
int
height
)
{
GlUtil
.
focusSurface
(
eglDisplay
,
eglContext
,
eglSurface
,
width
,
height
);
GlUtil
.
focusSurface
(
eglDisplay
,
eglContext
,
eglSurface
,
width
,
height
);
// The four-vertex triangle strip forms a quad.
GLES20
.
glDrawArrays
(
GLES20
.
GL_TRIANGLE_STRIP
,
/* first= */
0
,
/* count= */
4
);
GLES20
.
glDrawArrays
(
GLES20
.
GL_TRIANGLE_STRIP
,
/* first= */
0
,
/* count= */
4
);
}
}
}
}
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