Commit 9224a36a by tofunmi Committed by microkatz

Update CompositeAssetLoader to override queueInputBitmap

PiperOrigin-RevId: 507515587
parent a50ea945
...@@ -21,6 +21,7 @@ import static androidx.media3.common.util.Assertions.checkStateNotNull; ...@@ -21,6 +21,7 @@ import static androidx.media3.common.util.Assertions.checkStateNotNull;
import static androidx.media3.transformer.Transformer.PROGRESS_STATE_AVAILABLE; import static androidx.media3.transformer.Transformer.PROGRESS_STATE_AVAILABLE;
import static androidx.media3.transformer.Transformer.PROGRESS_STATE_NOT_STARTED; import static androidx.media3.transformer.Transformer.PROGRESS_STATE_NOT_STARTED;
import android.graphics.Bitmap;
import android.os.Looper; import android.os.Looper;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
...@@ -258,6 +259,13 @@ import java.util.concurrent.atomic.AtomicLong; ...@@ -258,6 +259,13 @@ import java.util.concurrent.atomic.AtomicLong;
sampleConsumer.queueInputBuffer(); 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 @Override
public Surface getInputSurface() { public Surface getInputSurface() {
return sampleConsumer.getInputSurface(); return sampleConsumer.getInputSurface();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment