public final class ColorInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
int |
colorRange
The color range of the video.
|
int |
colorSpace
The color space of the video.
|
int |
colorTransfer
The color transfer characteristicks of the video.
|
static Parcelable.Creator<ColorInfo> |
CREATOR |
byte[] |
hdrStaticInfo
HdrStaticInfo as defined in CTA-861.3, or null if none specified.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ColorInfo(int colorSpace,
int colorRange,
int colorTransfer,
byte[] hdrStaticInfo)
Constructs the ColorInfo.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
@C.ColorSpace public final int colorSpace
C.COLOR_SPACE_BT601
, C.COLOR_SPACE_BT709
, C.COLOR_SPACE_BT2020
or Format.NO_VALUE
if unknown.@C.ColorRange public final int colorRange
C.COLOR_RANGE_LIMITED
, C.COLOR_RANGE_FULL
or Format.NO_VALUE
if unknown.@C.ColorTransfer public final int colorTransfer
C.COLOR_TRANSFER_HLG
, C.COLOR_TRANSFER_ST2084
, C.COLOR_TRANSFER_SDR
or Format.NO_VALUE
if unknown.@Nullable public final byte[] hdrStaticInfo
public static final Parcelable.Creator<ColorInfo> CREATOR
public ColorInfo(@C.ColorSpace int colorSpace, @C.ColorRange int colorRange, @C.ColorTransfer int colorTransfer, @Nullable byte[] hdrStaticInfo)
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.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable