Class InterlacedSurfaceViewConfig
- java.lang.Object
-
- com.leia.sdk.views.InterlacedSurfaceViewConfig
-
public class InterlacedSurfaceViewConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description floatactCoeffloatactGammaXACT gamma X value.floatactGammaYACT gamma Y value.floatactGammaZACT gamma Z value.floatalphaOpacity of the view.floatbaselineScalingControl the strength of the 3D effect.CalibrationPatterncalibrationPatternCPVM calibration pattern.floatconvergenceDistanceRepresents the distance at which geometry appears exactly on the display in 3D space.floatdOverNbooleanenableDoNCorrectionbooleanenablePhaseCorrectionbooleanenableUserMatrixWhether to use the user matrix.booleaninvertPhaseCorrectionbooleanisGuiVisibleWhether the debug GUI should be visible.booleanisHorizontalViewLayoutWhether views are laid horizontally or vertically.static intLENGTH_UNSETRepresents an unset or unknown length.float[]localMatrixLocal transform matrixfloatnintnumTilesXNumber of tiles in horizontal axis of InputViewsAsset's content.intnumTilesYNumber of tiles in vertical axis of InputViewsAsset's content.floatphcfloatreconvergenceAmountThe value expressed in fraction of image width.ReconvergenceZoomTypereconvergenceZoomThe way output should be zoomed when reconverging.ScaleTypescaleTypeThe way InputViewsAsset's content should be fitted into InterlacedSurfaceView if their aspect ratio does not match.intsingleViewIndexIndex of the view to display in the single view mode.booleansingleViewModeWhether to display a single view.booleansourceMediaIsVideoWhether source media is image (default) or video.floatsourceMediaScaleXHorizontal scale of source mediafloatsourceMediaScaleYVertical scale of source mediaVector2isourceSizeInputViewsAsset's content size.booleansupportsTransparencyWhether InterlacedSurfaceView is configured with transparency support or not.TileLayouttileLayoutTile LayoutbooleanuseAtlasForViewsWhether to use one single texture for all views or a separate texture per view.float[]userMatrixUser transform matrixfloat[]zonePlateZone 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
-
-