JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.demos.av.MovieSBSStereo Class Reference

Side-By-Side (SBS) 3D Movie Player for StereoClientRenderer. More...

Inheritance diagram for com.jogamp.opengl.demos.av.MovieSBSStereo:
Collaboration diagram for com.jogamp.opengl.demos.av.MovieSBSStereo:

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MovieSBSStereo()

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.

Here is the call graph for this function:

Member Function Documentation

◆ display() [1/2]

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ display() [2/2]

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.

Parameters
drawable
flags

Implements com.jogamp.opengl.util.CustomGLEventListener.

Definition at line 745 of file MovieSBSStereo.java.

Here is the call graph for this function:

◆ dispose()

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.

◆ getGLMediaPlayer()

GLMediaPlayer com.jogamp.opengl.demos.av.MovieSBSStereo.getGLMediaPlayer ( )

Definition at line 341 of file MovieSBSStereo.java.

◆ getStereoClientRenderer()

StereoClientRenderer com.jogamp.opengl.demos.av.MovieSBSStereo.getStereoClientRenderer ( )

Definition at line 350 of file MovieSBSStereo.java.

◆ init()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initStream()

void com.jogamp.opengl.demos.av.MovieSBSStereo.initStream ( final Uri  streamLoc,
final int  vid,
final int  aid,
final int  textureCount 
)

Definition at line 336 of file MovieSBSStereo.java.

Here is the call graph for this function:

◆ resetGLState()

void com.jogamp.opengl.demos.av.MovieSBSStereo.resetGLState ( )

Definition at line 352 of file MovieSBSStereo.java.

◆ reshape()

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.

Parameters
drawablethe triggering GLAutoDrawable
xlower left corner of the viewport rectangle in pixel units
ylower left corner of the viewport rectangle in pixel units
widthwidth of the viewport rectangle in pixel units
heightheight of the viewport rectangle in pixel units

Implements com.jogamp.opengl.GLEventListener.

Definition at line 606 of file MovieSBSStereo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reshapeForEye()

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.

Parameters
drawablethe triggering GLAutoDrawable
xviewport x-coord in pixel units
yviewport y-coord in pixel units
widthviewport width in pixel units
heightviewport height in pixel units
eyeParamconstant eye parameter, i.e. FOV and IPD
viewerPosecurrent viewer position and orientation
See also
FloatUtil::makePerspective(float[], int, boolean, com.jogamp.math.FloatUtil.FovHVHalves, float, float)

Implements com.jogamp.opengl.util.stereo.StereoGLEventListener.

Definition at line 650 of file MovieSBSStereo.java.

Here is the call graph for this function:

◆ setScaleOrig()

void com.jogamp.opengl.demos.av.MovieSBSStereo.setScaleOrig ( final boolean  v)

Definition at line 343 of file MovieSBSStereo.java.

◆ setStereoClientRenderer()

void com.jogamp.opengl.demos.av.MovieSBSStereo.setStereoClientRenderer ( final StereoClientRenderer  scr)

Definition at line 347 of file MovieSBSStereo.java.

◆ updateInterleavedVBO()

void com.jogamp.opengl.demos.av.MovieSBSStereo.updateInterleavedVBO ( final GL  gl,
final GLArrayDataServer  iVBO,
final Texture  tex,
final int  eyeNum 
)
protected

Definition at line 551 of file MovieSBSStereo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ defURI

final Uri com.jogamp.opengl.demos.av.MovieSBSStereo.defURI
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.

◆ PLAYER

final String com.jogamp.opengl.demos.av.MovieSBSStereo.PLAYER = "player"
static

Definition at line 99 of file MovieSBSStereo.java.

◆ STEREO_RENDERER_KEY

final String com.jogamp.opengl.demos.av.MovieSBSStereo.STEREO_RENDERER_KEY = "stereo"
static

Definition at line 98 of file MovieSBSStereo.java.

◆ stereoGLMediaEventListener

final StereoGLMediaEventListener com.jogamp.opengl.demos.av.MovieSBSStereo.stereoGLMediaEventListener = new StereoGLMediaEventListener()
static

Definition at line 878 of file MovieSBSStereo.java.

◆ WINDOW_KEY

final String com.jogamp.opengl.demos.av.MovieSBSStereo.WINDOW_KEY = "window"
static

Definition at line 97 of file MovieSBSStereo.java.


The documentation for this class was generated from the following file: