Class ColorInfo
- java.lang.Object
-
- com.google.android.exoplayer2.video.ColorInfo
-
- All Implemented Interfaces:
Bundleable
@Deprecated public final class ColorInfo extends Object implements Bundleable
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Stores color info.When a
nullColorInfoinstance is used, this often represents a genericSDR_BT709_LIMITEDinstance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColorInfo.BuilderDeprecated.BuildsColorInfoinstances.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description @com.google.android.exoplayer2.C.ColorRange intcolorRangeDeprecated.TheC.ColorRange.@com.google.android.exoplayer2.C.ColorSpace intcolorSpaceDeprecated.TheC.ColorSpace.@com.google.android.exoplayer2.C.ColorTransfer intcolorTransferDeprecated.TheC.ColorTransfer.static Bundleable.Creator<ColorInfo>CREATORDeprecated.byte[]hdrStaticInfoDeprecated.HdrStaticInfo as defined in CTA-861.3, or null if none specified.static ColorInfoSDR_BT709_LIMITEDDeprecated.Color info representing SDR BT.709 limited range, which is a common SDR video color format.static ColorInfoSRGB_BT709_FULLDeprecated.Color info representing SDR sRGB in accordance withDataSpace.DATASPACE_SRGB, which is a common SDR image color format.
-
Constructor Summary
Constructors Constructor Description 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, byte[] hdrStaticInfo)Deprecated.UseColorInfo.Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ColorInfo.BuilderbuildUpon()Deprecated.Returns aColorInfo.Builderinitialized with the values of this instance.booleanequals(Object obj)Deprecated.inthashCode()Deprecated.static @com.google.android.exoplayer2.C.ColorSpace intisoColorPrimariesToColorSpace(int isoColorPrimaries)Deprecated.Returns theC.ColorSpacecorresponding to the given ISO color primary code, as per table A.7.21.1 in Rec.static @com.google.android.exoplayer2.C.ColorTransfer intisoTransferCharacteristicsToColorTransfer(int isoTransferCharacteristics)Deprecated.Returns theC.ColorTransfercorresponding to the given ISO transfer characteristics code, as per table A.7.21.2 in Rec.static booleanisTransferHdr(ColorInfo colorInfo)Deprecated.Returns whether theColorInfouses an HDRC.ColorTransfer.booleanisValid()Deprecated.Returns whether this instance is valid.BundletoBundle()Deprecated.Returns aBundlerepresenting the information stored in this object.StringtoLogString()Deprecated.Returns a prettierStringthantoString(), intended for logging.StringtoString()Deprecated.
-
-
-
Field Detail
-
SDR_BT709_LIMITED
public static final ColorInfo SDR_BT709_LIMITED
Deprecated.Color info representing SDR BT.709 limited range, which is a common SDR video color format.
-
SRGB_BT709_FULL
public static final ColorInfo SRGB_BT709_FULL
Deprecated.Color info representing SDR sRGB in accordance withDataSpace.DATASPACE_SRGB, which is a common SDR image color format.
-
colorSpace
public final @com.google.android.exoplayer2.C.ColorSpace int colorSpace
Deprecated.TheC.ColorSpace.
-
colorRange
public final @com.google.android.exoplayer2.C.ColorRange int colorRange
Deprecated.TheC.ColorRange.
-
colorTransfer
public final @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer
Deprecated.TheC.ColorTransfer.
-
hdrStaticInfo
@Nullable public final byte[] hdrStaticInfo
Deprecated.HdrStaticInfo as defined in CTA-861.3, or null if none specified.
-
CREATOR
public static final Bundleable.Creator<ColorInfo> CREATOR
Deprecated.
-
-
Constructor Detail
-
ColorInfo
@Deprecated 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)
Deprecated.UseColorInfo.Builder.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)
Deprecated.Returns theC.ColorSpacecorresponding to the given ISO color primary code, as per table A.7.21.1 in Rec. ITU-T T.832 (03/2009), orFormat.NO_VALUEif no mapping can be made.
-
isoTransferCharacteristicsToColorTransfer
@Pure public static @com.google.android.exoplayer2.C.ColorTransfer int isoTransferCharacteristicsToColorTransfer(int isoTransferCharacteristics)
Deprecated.Returns theC.ColorTransfercorresponding to the given ISO transfer characteristics code, as per table A.7.21.2 in Rec. ITU-T T.832 (03/2009), orFormat.NO_VALUEif no mapping can be made.
-
isTransferHdr
public static boolean isTransferHdr(@Nullable ColorInfo colorInfo)Deprecated.Returns whether theColorInfouses an HDRC.ColorTransfer.C.COLOR_TRANSFER_LINEARis not considered to be an HDRC.ColorTransfer, because it may represent either SDR or HDR contents.
-
buildUpon
public ColorInfo.Builder buildUpon()
Deprecated.Returns aColorInfo.Builderinitialized with the values of this instance.
-
isValid
public boolean isValid()
Deprecated.Returns whether this instance is valid.This instance is valid if no members are
Format.NO_VALUE.
-
toLogString
public String toLogString()
Deprecated.Returns a prettierStringthantoString(), intended for logging.- See Also:
Format.toLogString(Format)
-
toBundle
public Bundle toBundle()
Deprecated.Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.- Specified by:
toBundlein interfaceBundleable
-
-