Class ColorInfo

    • Constructor Detail

      • ColorInfo

        public ColorInfo​(@com.google.android.exoplayer2.C.ColorSpace int colorSpace,
                         @com.google.android.exoplayer2.C.ColorRange int colorRange,
                         @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer,
                         @Nullable
                         byte[] hdrStaticInfo)
        Constructs the ColorInfo.
        Parameters:
        colorSpace - The color space of the video.
        colorRange - The color range of the video.
        colorTransfer - The color transfer characteristics of the video.
        hdrStaticInfo - HdrStaticInfo as defined in CTA-861.3, or null if none specified.
    • Method Detail

      • isoColorPrimariesToColorSpace

        @Pure
        public static @com.google.android.exoplayer2.C.ColorSpace int isoColorPrimariesToColorSpace​(int isoColorPrimaries)
        Returns the C.ColorSpace corresponding to the given ISO color primary code, as per table A.7.21.1 in Rec. ITU-T T.832 (03/2009), or Format.NO_VALUE if no mapping can be made.
      • isoTransferCharacteristicsToColorTransfer

        @Pure
        public static @com.google.android.exoplayer2.C.ColorTransfer int isoTransferCharacteristicsToColorTransfer​(int isoTransferCharacteristics)
        Returns the C.ColorTransfer corresponding to the given ISO transfer characteristics code, as per table A.7.21.2 in Rec. ITU-T T.832 (03/2009), or Format.NO_VALUE if no mapping can be made.
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toBundle

        public Bundle toBundle()
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable