Package ai.deepar.ar
Enum Class DeepARPixelFormat
- All Implemented Interfaces:
Serializable
,Comparable<DeepARPixelFormat>
,Constable
Pixel format used to specify the pixel output format of the Image
frame of
frameAvailable
callback method.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DeepARPixelFormat
fromString
(String formatName) Gets DeepAR pixel format from string.int
Gets DeepAR pixel format.static DeepARPixelFormat
Returns the enum constant of this class with the specified name.static DeepARPixelFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RGBA_8888
RGBA (8-bit per channel) pixel format. -
BGRA_8888
BGRA (8-bit per channel) pixel format. -
ARGB_8888
ARGB (8-bit per channel) pixel format. Used for OpenTok since this is equivalent to BGRA in little-endian order. -
ABGR_8888
ABGR (8-bit per channel) pixel format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()Gets DeepAR pixel format.- Returns:
- DeepAR pixel format.
-
fromString
Gets DeepAR pixel format from string.- Parameters:
formatName
- DeepAR pixel format string.- Returns:
- DeepAR pixel format.
-