Class InterlacedSurfaceViewConfig
- java.lang.Object
-
- com.leia.sdk.views.InterlacedSurfaceViewConfig
-
public class InterlacedSurfaceViewConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description float
actCoef
float
actGammaX
ACT gamma X value.float
actGammaY
ACT gamma Y value.float
actGammaZ
ACT gamma Z value.float
alpha
Opacity of the view.float
baselineScaling
Control the strength of the 3D effect.CalibrationPattern
calibrationPattern
CPVM calibration pattern.float
convergenceDistance
Represents the distance at which geometry appears exactly on the display in 3D space.float
dOverN
boolean
enableDoNCorrection
boolean
enablePhaseCorrection
boolean
enableUserMatrix
Whether to use the user matrix.boolean
invertPhaseCorrection
boolean
isGuiVisible
Whether the debug GUI should be visible.boolean
isHorizontalViewLayout
Whether views are laid horizontally or vertically.static int
LENGTH_UNSET
Represents an unset or unknown length.float[]
localMatrix
Local transform matrixfloat
n
int
numTilesX
Number of tiles in horizontal axis of InputViewsAsset's content.int
numTilesY
Number of tiles in vertical axis of InputViewsAsset's content.float
phc
float
reconvergenceAmount
The value expressed in fraction of image width.ReconvergenceZoomType
reconvergenceZoom
The way output should be zoomed when reconverging.ScaleType
scaleType
The way InputViewsAsset's content should be fitted into InterlacedSurfaceView if their aspect ratio does not match.int
singleViewIndex
Index of the view to display in the single view mode.boolean
singleViewMode
Whether to display a single view.boolean
sourceMediaIsVideo
Whether source media is image (default) or video.float
sourceMediaScaleX
Horizontal scale of source mediafloat
sourceMediaScaleY
Vertical scale of source mediaVector2i
sourceSize
InputViewsAsset's content size.boolean
supportsTransparency
Whether InterlacedSurfaceView is configured with transparency support or not.TileLayout
tileLayout
Tile Layoutboolean
useAtlasForViews
Whether to use one single texture for all views or a separate texture per view.float[]
userMatrix
User transform matrixfloat[]
zonePlate
Zone Plate
-
-
-
Field Detail
-
LENGTH_UNSET
public static final int LENGTH_UNSET
Represents an unset or unknown length.- See Also:
- Constant Field Values
-
sourceSize
public volatile Vector2i sourceSize
InputViewsAsset's content size.
-
sourceMediaIsVideo
public volatile boolean sourceMediaIsVideo
Whether source media is image (default) or video.
-
sourceMediaScaleX
public volatile float sourceMediaScaleX
Horizontal scale of source media
-
sourceMediaScaleY
public volatile float sourceMediaScaleY
Vertical scale of source media
-
isHorizontalViewLayout
public volatile boolean isHorizontalViewLayout
Whether views are laid horizontally or vertically. Defaults to horizontal layout (SBS).
-
reconvergenceAmount
public volatile float reconvergenceAmount
The value expressed in fraction of image width.
-
reconvergenceZoom
public volatile ReconvergenceZoomType reconvergenceZoom
The way output should be zoomed when reconverging.
-
scaleType
public volatile ScaleType scaleType
The way InputViewsAsset's content should be fitted into InterlacedSurfaceView if their aspect ratio does not match.
-
singleViewMode
public volatile boolean singleViewMode
Whether to display a single view.
-
singleViewIndex
public volatile int singleViewIndex
Index of the view to display in the single view mode.
-
alpha
public volatile float alpha
Opacity of the view.
-
localMatrix
public volatile float[] localMatrix
Local transform matrix
-
enableUserMatrix
public volatile boolean enableUserMatrix
Whether to use the user matrix.
-
userMatrix
public volatile float[] userMatrix
User transform matrix
-
calibrationPattern
public volatile CalibrationPattern calibrationPattern
CPVM calibration pattern.
-
zonePlate
public volatile float[] zonePlate
Zone Plate
-
numTilesX
public volatile int numTilesX
Number of tiles in horizontal axis of InputViewsAsset's content.
-
numTilesY
public volatile int numTilesY
Number of tiles in vertical axis of InputViewsAsset's content.
-
tileLayout
public volatile TileLayout tileLayout
Tile Layout
-
actGammaX
public volatile float actGammaX
ACT gamma X value.
-
actGammaY
public volatile float actGammaY
ACT gamma Y value.
-
actGammaZ
public volatile float actGammaZ
ACT gamma Z value.
-
isGuiVisible
public volatile boolean isGuiVisible
Whether the debug GUI should be visible.
-
baselineScaling
public volatile float baselineScaling
Control the strength of the 3D effect.Baseline scaling is similar to interocular distance in VR. Increasing this value makes the 3D geometry have more depth, while decreasing this value will reduce and flatten the depth effect. Too much baseline scaling will hurt the viewer’s eyes while too little will make the result look 2D. Choosing the best value for baseline scaling is difficult because it depends on the 3D geometry (or stereo image) and the end-user’s personal preference. Ideally a developer would manually tune baseline scaling to their application’s.
-
convergenceDistance
public volatile float convergenceDistance
Represents the distance at which geometry appears exactly on the display in 3D space.Objects in front of the convergence distance will appear to pop out of the display, while objects beyond the convergence distance will appear to be behind the display. Choosing the best value for convergence distance depends on your application’s content. Applications that already use a focal point for effects like depth-of-field or bokeh will be familiar with the concept.
-
useAtlasForViews
public volatile boolean useAtlasForViews
Whether to use one single texture for all views or a separate texture per view.- See Also:
com.leia.sdk.graphics.Interlacer#getRenderTargetForView(int)
-
supportsTransparency
public final boolean supportsTransparency
Whether InterlacedSurfaceView is configured with transparency support or not.
-
phc
public volatile float phc
-
dOverN
public volatile float dOverN
-
n
public volatile float n
-
actCoef
public volatile float actCoef
-
enablePhaseCorrection
public volatile boolean enablePhaseCorrection
-
enableDoNCorrection
public volatile boolean enableDoNCorrection
-
invertPhaseCorrection
public volatile boolean invertPhaseCorrection
-
-