Interface StereoVideoSurfaceRenderer
public interface StereoVideoSurfaceRenderer
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get current convergencefloat
getGain()
Get current gainGet current render modeboolean
Get current auto-convergence statevoid
release()
Destructor releases resourcesvoid
Force request rendering might be required to actualize setting or mode change on the screen when video source is on pausevoid
setAutoConvergence(boolean autoConvergence)
Enable or disable auto-convergence for video playbackvoid
setConvergence(float convergence)
Sets rendering convergence.void
Provide callback that will process disparity calculated from stereo frame, could be used for additional visualization, statistics or AR/VR modelling.void
setGain(float gain)
Sets rendering gain.void
setReconvergenceMode(ReconvergenceMode reconvergenceMode)
Set reconvergence mode to be usedvoid
setRenderMode(RenderMode renderMode)
Set rendering modevoid
setRgbFrameDelay(int capacity)
Set delay for RGB frame for RAYCASTING_STEREO renderer that relies on disparity map computation for showing generated novel views, should be 0 for all other modesvoid
setSingleViewMode(boolean mode)
Switch to identical image rendering for 2d interlaced supported by CNSDK
-
Method Details
-
getGain
float getGain()Get current gain -
setGain
void setGain(float gain)Sets rendering gain. Only has effect for RenderMode = RAYCASTING_STEREO valid range is [0..2]- Parameters:
gain
-
-
getConvergence
float getConvergence()Get current convergence -
setConvergence
void setConvergence(float convergence)Sets rendering convergence. valid range is [-0.5 .. 0.5]- Parameters:
convergence
-- Throws:
IllegalArgumentException
- when trying to set convergence when AutoConvergence is ON
-
setReconvergenceMode
Set reconvergence mode to be used- See Also:
ReconvergenceMode
-
setRgbFrameDelay
void setRgbFrameDelay(int capacity)Set delay for RGB frame for RAYCASTING_STEREO renderer that relies on disparity map computation for showing generated novel views, should be 0 for all other modes- Parameters:
capacity
-
-
setDisparityAnalysisCallback
Provide callback that will process disparity calculated from stereo frame, could be used for additional visualization, statistics or AR/VR modelling.- Parameters:
callback
-- See Also:
for details
-
getRenderMode
RenderMode getRenderMode()Get current render mode- Returns:
- RenderMode current rendering mode
- See Also:
RenderMode
-
setRenderMode
Set rendering mode- Parameters:
renderMode
-- See Also:
RenderMode
-
requestRender
void requestRender()Force request rendering might be required to actualize setting or mode change on the screen when video source is on pause -
isAutoConvergence
boolean isAutoConvergence()Get current auto-convergence state- Returns:
-
setAutoConvergence
void setAutoConvergence(boolean autoConvergence)Enable or disable auto-convergence for video playback- Parameters:
autoConvergence
-
-
setSingleViewMode
void setSingleViewMode(boolean mode)Switch to identical image rendering for 2d interlaced supported by CNSDK- Parameters:
mode
-
-
release
void release()Destructor releases resources
-