media/library/transformer/src/main
claincly 18248733cd Make repetitive decode/draw.
tl;dr:
In the previous transformer, the transcoding flow is

- If a the GL's input surface (from decoder) does not have data, wait 10ms
 (DO_SOME_WORK)
- Else, make the decoder render **ONE** frame to the GL's input surface
  - Wait at least 10ms, until the frame's texture is available
  - Then process the texture

The process is quite slow, so in the new version, we do:
- If a the GL's input surface (from decoder) does not have data, wait 10ms
 (DO_SOME_WORK) **same**
- Else, make the decoder render **as many frames** to the GL's input surface
  - Process **as many** available textures in this DO_SOME_WORK cycle

PiperOrigin-RevId: 415474722
2021-12-10 17:25:53 +00:00
..
assets/shaders Transformer GL: Apply transformation_matrix to vertex position. 2021-12-06 12:25:46 +00:00
java/com/google/android/exoplayer2/transformer Make repetitive decode/draw. 2021-12-10 17:25:53 +00:00
AndroidManifest.xml Add empty sdk-version node to all AndroidManifest.xml files 2021-09-21 14:17:33 +01:00