Interface StereoVideoSurfaceRenderer


public interface StereoVideoSurfaceRenderer
  • 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

      void setReconvergenceMode(ReconvergenceMode reconvergenceMode)
      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

      void setDisparityAnalysisCallback(StereoVideoSurfaceRenderer.DisparityAnalysisCallback callback)
      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

      void setRenderMode(RenderMode renderMode)
      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