This extension adds the capability to define and apply RGB to RGB(A) color look-up tables (LUTs) to passthrough layers created using XR_FB_passthrough.
Color LUTs are 3-dimensional arrays which map each input color to a different output color. When applied to a Passthrough layer, the runtime must transform Passthrough camera images according to this map before display. Color LUTs may be used to achieve effects such as color grading, level control, color filtering, or chroma keying.
Color LUTs must be created using CreatePassthroughColorLutMETA before they can be applied to a Passthrough layer in a call to PassthroughLayerSetStyleFB (as a part of XrPassthroughColorMapLutMETA or XrPassthroughColorMapInterpolatedLutMETA). A color LUT may be applied to multiple Passthrough layers simultaneously.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META
Extends |
| public static final String | XR_META_PASSTHROUGH_COLOR_LUT_EXTENSION_NAME
The extension name. |
| public static final int | XR_META_passthrough_color_lut_SPEC_VERSION
The extension specification version. |
| public static final int | XR_OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META
Extends |
| public static final int | XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META
XrPassthroughColorLutChannelsMETA - Color channels See Also
|
| public static final int | XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META
XrPassthroughColorLutChannelsMETA - Color channels See Also
|
| public static final int | XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META
Extends |
| public static final int | XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META
Extends |
| public static final int | XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META
Extends |
| public static final int | XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META
Extends |
| public static final int | XR_TYPE_SYSTEM_PASSTHROUGH_COLOR_LUT_PROPERTIES_META
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, long createInfo, long colorLut)
Unsafe version of: |
| public static int | nxrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, long updateInfo)
Unsafe version of: |
| public static int | xrCreatePassthroughColorLutMETA(XrPassthroughFB
the passthrough, XrPassthroughColorLutCreateInfoMETA createInfo, PointerBuffer XrPassthroughFB this color LUT is created for.the resulting colorLut)XrPassthroughColorLutMETA.Create a passthrough color LUT. |
| public static int | xrDestroyPassthroughColorLutMETA(XrPassthroughColorLutMETA
the colorLut)XrPassthroughColorLutMETA to be destroyed.Destroy a passthrough color LUT. |
| public static int | xrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA
the colorLut, XrPassthroughColorLutUpdateInfoMETA updateInfo)XrPassthroughColorLutMETA to be updated.Update a passthrough color LUT. |
| XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META | back to summary |
|---|---|
| public static final int XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META Extends | |
| XR_META_PASSTHROUGH_COLOR_LUT_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_META_PASSTHROUGH_COLOR_LUT_EXTENSION_NAME The extension name. | |
| XR_META_passthrough_color_lut_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_META_passthrough_color_lut_SPEC_VERSION The extension specification version. | |
| XR_OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META | back to summary |
|---|---|
| public static final int XR_OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META Extends | |
| XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META | back to summary |
|---|---|
| public static final int XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META XrPassthroughColorLutChannelsMETA - Color channels See Also
Enum values: | |
| XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META | back to summary |
|---|---|
| public static final int XR_PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META XrPassthroughColorLutChannelsMETA - Color channels See Also
Enum values: | |
| XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META | back to summary |
|---|---|
| public static final int XR_TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META Extends Enum values: | |
| XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META | back to summary |
|---|---|
| public static final int XR_TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META Extends Enum values: | |
| XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META | back to summary |
|---|---|
| public static final int XR_TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META Extends Enum values: | |
| XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META | back to summary |
|---|---|
| public static final int XR_TYPE_PASSTHROUGH_COLOR_MAP_LUT_META Extends Enum values: | |
| XR_TYPE_SYSTEM_PASSTHROUGH_COLOR_LUT_PROPERTIES_META | back to summary |
|---|---|
| public static final int XR_TYPE_SYSTEM_PASSTHROUGH_COLOR_LUT_PROPERTIES_META Extends Enum values: | |
| METAPassthroughColorLut | back to summary |
|---|---|
| protected METAPassthroughColorLut() | |
| nxrCreatePassthroughColorLutMETA | back to summary |
|---|---|
| public static int nxrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, long createInfo, long colorLut) Unsafe version of: | |
| nxrUpdatePassthroughColorLutMETA | back to summary |
|---|---|
| public static int nxrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, long updateInfo) Unsafe version of: | |
| xrCreatePassthroughColorLutMETA | back to summary |
|---|---|
| public static int xrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, XrPassthroughColorLutCreateInfoMETA createInfo, PointerBuffer colorLut) Create a passthrough color LUT. C SpecificationThe
DescriptionCreates a passthrough color LUT. The resulting Valid Usage (Implicit)
Return Codes
See Also
| |
| xrDestroyPassthroughColorLutMETA | back to summary |
|---|---|
| public static int xrDestroyPassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut) Destroy a passthrough color LUT. C SpecificationThe
DescriptionDestroys a passthrough color LUT. If the color LUT is still in use (i.e. if for at least one passthrough layer, Valid Usage (Implicit)
Thread Safety
Return Codes
| |
| xrUpdatePassthroughColorLutMETA | back to summary |
|---|---|
| public static int xrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, XrPassthroughColorLutUpdateInfoMETA updateInfo) Update a passthrough color LUT. C SpecificationThe
DescriptionUpdates the LUT data of a passthrough color LUT. The data type of the color LUT (resolution and channels) is immutable. The provided data in this call must therefore match the data type specified at creation time. Specifically, The runtime must reflect changes to color LUT data on all Passthrough layers the color LUT is currently applied to. Valid Usage (Implicit)
Return Codes
See Also
| |