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
acbd340e
authored
Apr 20, 2023
by
claincly
Committed by
Rohit Singh
Apr 24, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename INPUT_TYPE_TEXID, and cleanup.
PiperOrigin-RevId: 525761936
parent
d7983f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
libraries/common/src/main/java/androidx/media3/common/VideoFrameProcessor.java
libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoFrameProcessor.java
libraries/common/src/main/java/androidx/media3/common/VideoFrameProcessor.java
View file @
acbd340e
...
...
@@ -48,22 +48,22 @@ public interface VideoFrameProcessor {
// TODO(b/243036513): Allow effects to be replaced.
/**
* Specifies how the input frames are made available to the {@link VideoFrameProcessor}. One of
* {@link #INPUT_TYPE_SURFACE}, {@link #INPUT_TYPE_BITMAP} or {@link #INPUT_TYPE_TEXID}.
* {@link #INPUT_TYPE_SURFACE}, {@link #INPUT_TYPE_BITMAP} or {@link #INPUT_TYPE_TEX
TURE_
ID}.
*/
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@Target
(
TYPE_USE
)
@IntDef
({
INPUT_TYPE_SURFACE
,
INPUT_TYPE_BITMAP
,
INPUT_TYPE_TEXID
})
public
@interface
InputType
{}
@IntDef
({
INPUT_TYPE_SURFACE
,
INPUT_TYPE_BITMAP
,
INPUT_TYPE_TEX
TURE_
ID
})
@interface
InputType
{}
/** Input frames come from a {@link #getInputSurface surface}. */
public
static
final
int
INPUT_TYPE_SURFACE
=
1
;
int
INPUT_TYPE_SURFACE
=
1
;
/** Input frames come from a {@link Bitmap}. */
public
static
final
int
INPUT_TYPE_BITMAP
=
2
;
int
INPUT_TYPE_BITMAP
=
2
;
/**
* Input frames come from a {@linkplain android.opengl.GLES10#GL_TEXTURE_2D traditional GLES
* texture}.
*/
public
static
final
int
INPUT_TYPE_TEX
ID
=
3
;
int
INPUT_TYPE_TEXTURE_
ID
=
3
;
/** A factory for {@link VideoFrameProcessor} instances. */
interface
Factory
{
...
...
libraries/effect/src/main/java/androidx/media3/effect/DefaultVideoFrameProcessor.java
View file @
acbd340e
...
...
@@ -288,7 +288,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
new
BitmapTextureManager
(
inputShaderProgram
,
videoFrameProcessingTaskExecutor
);
inputShaderProgram
.
setInputListener
(
inputBitmapTextureManager
);
break
;
case
VideoFrameProcessor
.
INPUT_TYPE_TEXID
:
// fall through
case
VideoFrameProcessor
.
INPUT_TYPE_TEX
TURE_
ID
:
// fall through
default
:
throw
new
VideoFrameProcessingException
(
"Input type not supported yet"
);
}
...
...
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