Commit 17d2f5a0 by kimvde Committed by Oliver Woodman

Transformer: avoid retrieving the video decoded bytes

Decoded video frames can be large and there is no need to retrieve the
corresponding ByteBuffer as we render the decoded frames on a surface
for better performance.

PiperOrigin-RevId: 405364950
parent 1f3f22a7
...@@ -305,7 +305,7 @@ import java.nio.ByteBuffer; ...@@ -305,7 +305,7 @@ import java.nio.ByteBuffer;
if (!isDecoderSurfacePopulated) { if (!isDecoderSurfacePopulated) {
if (!waitingForPopulatedDecoderSurface) { if (!waitingForPopulatedDecoderSurface) {
if (decoder.getOutputBuffer() != null) { if (decoder.getOutputBufferInfo() != null) {
decoder.releaseOutputBuffer(/* render= */ true); decoder.releaseOutputBuffer(/* render= */ true);
waitingForPopulatedDecoderSurface = true; waitingForPopulatedDecoderSurface = true;
} }
......
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