Class ColorInfo

    • Constructor Detail

      • ColorInfo

        public ColorInfo​( int colorSpace,
                int colorRange,
                int colorTransfer,
                         byte[] hdrStaticInfo)
        Constructs the ColorInfo.
        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

        public static 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

        public static 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)
        equals in class Object
      • hashCode

        public int hashCode()
        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