|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Side-By-Side (SBS) 3D Movie Player for StereoClientRenderer.
More...
Classes | |
| class | StereoGLMediaEventListener |
Public Member Functions | |
| MovieSBSStereo () throws IllegalStateException | |
user needs to issue playStream(URI, int, int, int, int) afterwards. More... | |
| void | initStream (final Uri streamLoc, final int vid, final int aid, final int textureCount) |
| GLMediaPlayer | getGLMediaPlayer () |
| void | setScaleOrig (final boolean v) |
| void | setStereoClientRenderer (final StereoClientRenderer scr) |
| StereoClientRenderer | getStereoClientRenderer () |
| void | resetGLState () |
| void | init (final GLAutoDrawable drawable) |
| Called by the drawable immediately after the OpenGL context is initialized. More... | |
| void | reshape (final GLAutoDrawable drawable, final int x, final int y, final int width, final int height) |
| Called by the drawable during the first repaint after the component has been resized. More... | |
| void | reshapeForEye (final GLAutoDrawable drawable, final int x, final int y, final int width, final int height, final EyeParameter eyeParam, final ViewerPose viewerPose) |
Stereo capable specialization of reshape(GLAutoDrawable, int, int, int, int) for one StereoDeviceRenderer.Eye. More... | |
| void | dispose (final GLAutoDrawable drawable) |
| Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More... | |
| void | display (final GLAutoDrawable drawable) |
| Called by the drawable to initiate OpenGL rendering by the client. More... | |
| void | display (final GLAutoDrawable drawable, final int flags) |
Extended display method, allowing to pass a display flag, e.g. More... | |
| void | reshapeForEye (final GLAutoDrawable drawable, final int x, final int y, final int width, final int height, final EyeParameter eyeParam, final ViewerPose viewerPose) |
Stereo capable specialization of reshape(GLAutoDrawable, int, int, int, int) for one StereoDeviceRenderer.Eye. More... | |
| void | display (final GLAutoDrawable drawable, final int flags) |
Extended display method, allowing to pass a display flag, e.g. More... | |
| void | init (GLAutoDrawable drawable) |
| Called by the drawable immediately after the OpenGL context is initialized. More... | |
| void | dispose (GLAutoDrawable drawable) |
| Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs. More... | |
| void | display (GLAutoDrawable drawable) |
| Called by the drawable to initiate OpenGL rendering by the client. More... | |
| void | reshape (GLAutoDrawable drawable, int x, int y, int width, int height) |
| Called by the drawable during the first repaint after the component has been resized. More... | |
Static Public Attributes | |
| static final String | WINDOW_KEY = "window" |
| static final String | STEREO_RENDERER_KEY = "stereo" |
| static final String | PLAYER = "player" |
| static final Uri | defURI |
| Blender's Big Buck Bunny: 24f 416p H.264, AAC 48000 Hz, 2 ch, mpeg stream. More... | |
| static final StereoGLMediaEventListener | stereoGLMediaEventListener = new StereoGLMediaEventListener() |
Static Public Attributes inherited from com.jogamp.opengl.util.CustomGLEventListener | |
| static final int | DISPLAY_REPEAT = 1 << 0 |
display flag: Repeat last produced image. More... | |
| static final int | DISPLAY_DONTCLEAR = 1 << 1 |
display flag: Do not clear any target buffer, e.g. More... | |
Protected Member Functions | |
| void | updateInterleavedVBO (final GL gl, final GLArrayDataServer iVBO, final Texture tex, final int eyeNum) |
Side-By-Side (SBS) 3D Movie Player for StereoClientRenderer.
The movie is assumed to be symmetrical SBS, the left-eye receives the left-part of the texture and the right-eye the right-part.
Definition at line 96 of file MovieSBSStereo.java.
| com.jogamp.opengl.demos.av.MovieSBSStereo.MovieSBSStereo | ( | ) | throws IllegalStateException |
user needs to issue playStream(URI, int, int, int, int) afterwards.
Definition at line 329 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.display | ( | final GLAutoDrawable | drawable | ) |
Called by the drawable to initiate OpenGL rendering by the client.
After all GLEventListeners have been notified of a display event, the drawable will swap its buffers if setAutoSwapBufferMode is enabled.
Implements com.jogamp.opengl.GLEventListener.
Definition at line 740 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.display | ( | final GLAutoDrawable | drawable, |
| final int | flags | ||
| ) |
Extended display method, allowing to pass a display flag, e.g.
DISPLAY_REPEAT or DISPLAY_DONTCLEAR.
Method is usually called by a custom rendering loop, e.g. for manual stereo rendering or the like.
| drawable | |
| flags |
Implements com.jogamp.opengl.util.CustomGLEventListener.
Definition at line 745 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.dispose | ( | final GLAutoDrawable | drawable | ) |
Notifies the listener to perform the release of all OpenGL resources per GLContext, such as memory buffers and GLSL programs.
Called by the drawable before the OpenGL context is destroyed by an external event, like a reconfiguration of the GLAutoDrawable closing an attached window, but also manually by calling destroy.
Note that this event does not imply the end of life of the application. It could be produced with a followup call to init(GLAutoDrawable) in case the GLContext has been recreated, e.g. due to a pixel configuration change in a multihead environment.
Implements com.jogamp.opengl.GLEventListener.
Definition at line 702 of file MovieSBSStereo.java.
| GLMediaPlayer com.jogamp.opengl.demos.av.MovieSBSStereo.getGLMediaPlayer | ( | ) |
Definition at line 341 of file MovieSBSStereo.java.
| StereoClientRenderer com.jogamp.opengl.demos.av.MovieSBSStereo.getStereoClientRenderer | ( | ) |
Definition at line 350 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.init | ( | final GLAutoDrawable | drawable | ) |
Called by the drawable immediately after the OpenGL context is initialized.
Can be used to perform one-time OpenGL initialization per GLContext, such as setup of lights and display lists.
Note that this method may be called more than once if the underlying OpenGL context for the GLAutoDrawable is destroyed and recreated, for example if a GLCanvas is removed from the widget hierarchy and later added again.
Implements com.jogamp.opengl.GLEventListener.
Definition at line 404 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.initStream | ( | final Uri | streamLoc, |
| final int | vid, | ||
| final int | aid, | ||
| final int | textureCount | ||
| ) |
| void com.jogamp.opengl.demos.av.MovieSBSStereo.resetGLState | ( | ) |
Definition at line 352 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.reshape | ( | final GLAutoDrawable | drawable, |
| final int | x, | ||
| final int | y, | ||
| final int | width, | ||
| final int | height | ||
| ) |
Called by the drawable during the first repaint after the component has been resized.
The client can update it's viewport associated data and view volume of the window appropriately.
For efficiency the GL viewport has already been updated via glViewport(x, y, width, height) when this method is called.
| drawable | the triggering GLAutoDrawable |
| x | lower left corner of the viewport rectangle in pixel units |
| y | lower left corner of the viewport rectangle in pixel units |
| width | width of the viewport rectangle in pixel units |
| height | height of the viewport rectangle in pixel units |
Implements com.jogamp.opengl.GLEventListener.
Definition at line 606 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.reshapeForEye | ( | final GLAutoDrawable | drawable, |
| final int | x, | ||
| final int | y, | ||
| final int | width, | ||
| final int | height, | ||
| final EyeParameter | eyeParam, | ||
| final ViewerPose | viewerPose | ||
| ) |
Stereo capable specialization of reshape(GLAutoDrawable, int, int, int, int) for one StereoDeviceRenderer.Eye.
Called by the stereo renderer before each display(GLAutoDrawable) or display(GLAutoDrawable, int) call.
The client can update it's viewport associated data and view volume of the window appropriately.
The client shall also update it's projection- and modelview matrices according to the given EyeParameter and ViewerPose.
For efficiency the GL viewport has already been updated via glViewport(x, y, width, height) when this method is called.
| drawable | the triggering GLAutoDrawable |
| x | viewport x-coord in pixel units |
| y | viewport y-coord in pixel units |
| width | viewport width in pixel units |
| height | viewport height in pixel units |
| eyeParam | constant eye parameter, i.e. FOV and IPD |
| viewerPose | current viewer position and orientation |
Implements com.jogamp.opengl.util.stereo.StereoGLEventListener.
Definition at line 650 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.setScaleOrig | ( | final boolean | v | ) |
Definition at line 343 of file MovieSBSStereo.java.
| void com.jogamp.opengl.demos.av.MovieSBSStereo.setStereoClientRenderer | ( | final StereoClientRenderer | scr | ) |
Definition at line 347 of file MovieSBSStereo.java.
|
protected |
Definition at line 551 of file MovieSBSStereo.java.
|
static |
Blender's Big Buck Bunny: 24f 416p H.264, AAC 48000 Hz, 2 ch, mpeg stream.
Definition at line 126 of file MovieSBSStereo.java.
|
static |
Definition at line 99 of file MovieSBSStereo.java.
|
static |
Definition at line 98 of file MovieSBSStereo.java.
|
static |
Definition at line 878 of file MovieSBSStereo.java.
|
static |
Definition at line 97 of file MovieSBSStereo.java.