diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index ed03278b9..219cfb3e5 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -118,6 +118,8 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { private final int[] texMinMagFilter = { GL.GL_NEAREST, GL.GL_NEAREST }; private final int[] texWrapST = { GL.GL_CLAMP_TO_EDGE, GL.GL_CLAMP_TO_EDGE }; + private boolean aRatioLbox = false; + private final Vec4f aRatioLboxBackColor = new Vec4f(); /** User requested URI stream location. */ private Uri streamLoc; @@ -1032,6 +1034,26 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { } @Override + public final boolean useARatioAdjustment() { return true; } + + @Override + public void setARatioAdjustment(final boolean v) { } // intentionally not supported + + @Override + public final boolean useARatioLetterbox() { return aRatioLbox; } + + @Override + public Vec4f getARatioLetterboxBackColor() { return aRatioLboxBackColor; } + + @Override + public void setARatioLetterbox(final boolean v, final Vec4f backColor) { + aRatioLbox = v; + if( null != backColor ) { + aRatioLboxBackColor.set(backColor); + } + }; + + @Override public final boolean isTextureAvailable() { return null != lastFrame; // Note: lastFrame is test-texture if using initGL() pre stream ready } |