Overlay: Add javadoc for why we fly overlays vertically.
Otherwise, apps overriding BitmapOverlay.getVertexTransformation may not realize this is being done, and may ask why bitmaps are flipped vertically from what they expect Reference: https://github.com/androidx/media/issues/1128 PiperOrigin-RevId: 621544348
This commit is contained in:
parent
f9b1c82565
commit
60bb24a930
@ -170,6 +170,12 @@ public abstract class BitmapOverlay extends TextureOverlay {
|
||||
return lastTextureId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>Flips the overlay vertically to convert between Android and OpenGL texture coordinate
|
||||
* systems.
|
||||
*/
|
||||
@Override
|
||||
public float[] getVertexTransformation(long presentationTimeUs) {
|
||||
// Whereas the Android system uses the top-left corner as (0,0) of the
|
||||
|
Loading…
x
Reference in New Issue
Block a user