Package ai.deepar.ar

Enum Class DeepARPixelFormat

java.lang.Object
java.lang.Enum<DeepARPixelFormat>
ai.deepar.ar.DeepARPixelFormat
All Implemented Interfaces:
Serializable, Comparable<DeepARPixelFormat>, Constable

public enum DeepARPixelFormat extends Enum<DeepARPixelFormat>
Pixel format used to specify the pixel output format of the Image frame of frameAvailable callback method.
  • Enum Constant Details

    • RGBA_8888

      public static final DeepARPixelFormat RGBA_8888
      RGBA (8-bit per channel) pixel format.
    • BGRA_8888

      public static final DeepARPixelFormat BGRA_8888
      BGRA (8-bit per channel) pixel format.
    • ARGB_8888

      public static final DeepARPixelFormat ARGB_8888
      ARGB (8-bit per channel) pixel format. Used for OpenTok since this is equivalent to BGRA in little-endian order.
    • ABGR_8888

      public static final DeepARPixelFormat ABGR_8888
      ABGR (8-bit per channel) pixel format.
  • Method Details

    • values

      public static DeepARPixelFormat[] 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

      public static DeepARPixelFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
      Gets DeepAR pixel format.
      Returns:
      DeepAR pixel format.
    • fromString

      public static DeepARPixelFormat fromString(String formatName)
      Gets DeepAR pixel format from string.
      Parameters:
      formatName - DeepAR pixel format string.
      Returns:
      DeepAR pixel format.