public enum

GLUtils.InputFormat

extends java.lang.Enum<GLUtils.InputFormat>

 java.lang.Object

↳java.lang.Enum<GLUtils.InputFormat>

↳androidx.camera.core.processing.util.GLUtils.InputFormat

Summary

Enum Constants
DEFAULTInput texture format is the default format.
UNKNOWNInput texture format is unknown.
YUVInput format is explicitly YUV.
Methods
public static GLUtils.InputFormatvalueOf(java.lang.String name)

public static GLUtils.InputFormatvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

UNKNOWN

Input texture format is unknown.

When the input format is unknown, HDR content may require rendering blank frames since we are not sure what type of sampler can be used. For SDR content, it is typically safe to use samplerExternalOES since this can handle both RGB and YUV inputs for SDR content.

DEFAULT

Input texture format is the default format.

The texture format may be RGB or YUV. For SDR content, using samplerExternalOES is safe since it will be able to convert YUV to RGB automatically within the shader. For HDR content, the input is expected to be RGB.

YUV

Input format is explicitly YUV.

This needs to be specified for HDR content. Only __samplerExternal2DY2YEXT should be used for HDR YUV content as samplerExternalOES may not correctly convert to RGB.

Methods

public static GLUtils.InputFormat values()

public static GLUtils.InputFormat valueOf(java.lang.String name)