Module webrtc.java

Enum FourCC

  • All Implemented Interfaces:
    Serializable, Comparable<FourCC>

    public enum FourCC
    extends Enum<FourCC>
    "Four character code" (4CC) enumeration mainly used for conversion.
    Author:
    Alex Andres
    • Enum Constant Detail

      • ARGB

        public static final FourCC ARGB
        Uncompressed 32-bit ARGB
      • BGRA

        public static final FourCC BGRA
        Uncompressed 32-bit BGRA
      • ABGR

        public static final FourCC ABGR
        Uncompressed 32-bit ABGR
      • RGBA

        public static final FourCC RGBA
        Uncompressed 32-bit RGBA
      • BG24

        public static final FourCC BG24
        Uncompressed 24-bit BGR
      • I420

        public static final FourCC I420
        Planar 4:2:0 YUV
      • NV21

        public static final FourCC NV21
        Planar 4:2:0 YUV with interleaved VU plane
      • NV12

        public static final FourCC NV12
        Planar 4:2:0 YUV with interleaved UV plane
      • YUY2

        public static final FourCC YUY2
        Packed 4:2:2 YUV
      • UYVY

        public static final FourCC UYVY
        Packed 4:2:2 YUV
    • Method Detail

      • values

        public static FourCC[] 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 (FourCC c : FourCC.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FourCC valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public int value()
        Return the FourCC as integer value.
        Returns:
        FourCC integer.