STEREO_COMPOSITION_MONO
: final int |
Stereo composition mode for mono (non-stereo) rendering.
When used with setStereoComposition(SurfaceControl, Transaction, int), standard single-view buffers are allocated. This is the default mode.
Signature
final int horizonos.view.SurfaceControlExt.STEREO_COMPOSITION_MONO |
STEREO_COMPOSITION_SIDE_BY_SIDE
: final int |
Stereo composition mode for side-by-side stereo layout.
When used with setStereoComposition(SurfaceControl, Transaction, int), buffers with 2x width are allocated. The left half of the buffer contains the left eye content and the right half contains the right eye content.
Signature
final int horizonos.view.SurfaceControlExt.STEREO_COMPOSITION_SIDE_BY_SIDE |
STEREO_COMPOSITION_TOP_BOTTOM
: final int |
Stereo composition mode for top/bottom stereo layout.
When used with setStereoComposition(SurfaceControl, Transaction, int), buffers with 2x height are allocated. The left eye content should be rendered in the top half of the buffer, and the right eye content should be rendered in the bottom half. This format is commonly used for pre-rendered stereoscopic video content encoded at double height.
Signature
final int horizonos.view.SurfaceControlExt.STEREO_COMPOSITION_TOP_BOTTOM |
setStereoComposition
(
surfaceControl
, transaction
, stereoComposition
)
|
Set the SurfaceControl to render a single buffer with stereo composition.
If there's a Surface created from the requested SurfaceControl, the Surface will respect the stereo composition mode and allocate appropriately sized buffers. This API should not be used with a SurfaceControl obtained from a SurfaceView. Instead, use SurfaceViewExt.setStereoComposition(SurfaceView, int).
Signature
static void horizonos.view.SurfaceControlExt.setStereoComposition(SurfaceControl surfaceControl, Transaction transaction, int stereoComposition) Parameters surfaceControl: SurfaceControl
The
transaction: Transaction
The
stereoComposition: int
One of the supported stereo composition modes:
Returns void |