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
af259054
authored
Feb 06, 2023
by
tofunmi
Committed by
microkatz
Feb 08, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update CompositeAssetLoader to override queueInputBitmap
PiperOrigin-RevId: 507515587
parent
80dbaca0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/CompositeAssetLoader.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/CompositeAssetLoader.java
View file @
af259054
...
...
@@ -21,6 +21,7 @@ import static com.google.android.exoplayer2.util.Assertions.checkArgument;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkStateNotNull
;
import
android.graphics.Bitmap
;
import
android.os.Looper
;
import
android.view.Surface
;
import
androidx.annotation.Nullable
;
...
...
@@ -258,6 +259,13 @@ import java.util.concurrent.atomic.AtomicLong;
sampleConsumer
.
queueInputBuffer
();
}
// TODO(262693274): Test that concatenate 2 images or an image and a video works as expected
// once Image Asset Loader Implementation is complete.
@Override
public
void
queueInputBitmap
(
Bitmap
inputBitmap
,
long
durationUs
,
int
frameRate
)
{
sampleConsumer
.
queueInputBitmap
(
inputBitmap
,
durationUs
,
frameRate
);
}
@Override
public
Surface
getInputSurface
()
{
return
sampleConsumer
.
getInputSurface
();
...
...
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