diff options
author | Sven Göthel <sgothel@jausoft.com> | 2024-02-01 15:37:03 +0100 |
---|---|---|
committer | Sven Göthel <sgothel@jausoft.com> | 2024-02-01 15:37:03 +0100 |
commit | 9ff736464e0d2762c424bab66bc6d03ccc6e6d11 (patch) | |
tree | 14e1a383a86bca406608841c7e3acf5d44cbee11 /src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | |
parent | ca846bc67e6a074a182e97f29b3c34b90a12cac3 (diff) |
Bug 805: Graph/GraphUI TextureSequence Scale: Move Region.COLORTEXTURE_LETTERBOX_RENDERING_BIT to TextureSequence and add enabling/disabling of aratio adjustment + letter-box back-color
TextureSequence color-texture params fetched from Graph VBORegion* and fed into shader.
This allows more flexibility in aspect-ratio adjustment as well as setting a clipping background color for
the added letter-box space.
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java index 987031b6b..2767ea7ef 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java +++ b/src/jogl/classes/com/jogamp/opengl/util/av/GLMediaPlayer.java @@ -456,6 +456,48 @@ public interface GLMediaPlayer extends TextureSequence { public void setTextureWrapST(int[] wrapST); /** + * {@inheritDoc} + * <p> + * Defaults to {@code true} and toggling not supported. + * </p> + */ + @Override + public boolean useARatioAdjustment(); + + /** + * {@inheritDoc} + * <p> + * Defaults to {@code true} and toggling is not supported. + * </p> + */ + @Override + public void setARatioAdjustment(final boolean v); + + /** + * {@inheritDoc} + * <p> + * Defaults to {@code false} and toggling is supported via {@link #setARatioLetterbox(boolean, Vec4f)} + * </p> + */ + @Override + public boolean useARatioLetterbox(); + + /** + * {@inheritDoc} + */ + @Override + public Vec4f getARatioLetterboxBackColor(); + + /** + * {@inheritDoc} + * <p> + * Defaults to {@code false}. + * </p> + */ + @Override + public void setARatioLetterbox(final boolean v, Vec4f backColor); + + /** * Limit maximum supported audio channels by user. * <p> * Must be set before {@link #playStream(Uri, int, int, int, int)} |