eu.id3.document

## Enum PixelFormat

- java.lang.Object
- - java.lang.Enum<PixelFormat>
  - - eu.id3.document.PixelFormat

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PixelFormat>

      public enum PixelFormat
      extends java.lang.Enum<PixelFormat>

  Enumerates supported pixel formats.

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `BGR_24_BITS` 24 bits BGR.
    `BGRA` 32 bits BGRA.
    `GRAYSCALE_16_BITS` 16-bits grayscale.
    `GRAYSCALE_8_BITS` 8-bits grayscale.
    `GRAYSCALE_FLOAT` Floating point grayscale.
    `I420` I420 (YUV packed format).
    `NV12` NV12 (YUV semi-planar format).
    `RGB_24_BITS` 24 bits RGB.
    `RGBA` 32 bits RGBA.
    `UNDEFINED` Undefined.
    `YUY2` YUY2 (YUV packed format).
    `YV12` YV12 (YUV packed format).

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static PixelFormat` | `fromValue(int value)` Creates an enumeration value from int.
    `int` | `getValue()` Gets the enumeration value as int.
    `static PixelFormat` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
    `static PixelFormat[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### UNDEFINED

          public static final PixelFormat UNDEFINED

      Undefined.

    - #### GRAYSCALE_8_BITS

          public static final PixelFormat GRAYSCALE_8_BITS

      8-bits grayscale.

    - #### GRAYSCALE_16_BITS

          public static final PixelFormat GRAYSCALE_16_BITS

      16-bits grayscale.

    - #### GRAYSCALE_FLOAT

          public static final PixelFormat GRAYSCALE_FLOAT

      Floating point grayscale.

    - #### BGR_24_BITS

          public static final PixelFormat BGR_24_BITS

      24 bits BGR.

    - #### RGB_24_BITS

          public static final PixelFormat RGB_24_BITS

      24 bits RGB.

    - #### BGRA

          public static final PixelFormat BGRA

      32 bits BGRA.

    - #### RGBA

          public static final PixelFormat RGBA

      32 bits RGBA.

    - #### NV12

          public static final PixelFormat NV12

      NV12 (YUV semi-planar format).

    - #### I420

          public static final PixelFormat I420

      I420 (YUV packed format).

    - #### YUY2

          public static final PixelFormat YUY2

      YUY2 (YUV packed format).

    - #### YV12

          public static final PixelFormat YV12

      YV12 (YUV packed format).

  - ### Method Detail

    - #### values

          public static PixelFormat[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (PixelFormat c : PixelFormat.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static PixelFormat valueOf(java.lang.String name)

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
        `java.lang.NullPointerException` - if the argument is null

    - #### getValue

          public int getValue()

      Gets the enumeration value as int.
      Returns:
        The value.

    - #### fromValue

          public static PixelFormat fromValue(int value)

      Creates an enumeration value from int.
      Parameters:
        `value` - The int value.
      Returns:
        The created PixelFormat.

Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document