Class HevcConfig
- java.lang.Object
-
- com.google.android.exoplayer2.video.HevcConfig
-
@Deprecated public final class HevcConfig extends Object
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.HEVC configuration data.
-
-
Field Summary
Fields Modifier and Type Field Description String
codecs
Deprecated.An RFC 6381 codecs string representing the video format, ornull
if not known.@com.google.android.exoplayer2.C.ColorRange int
colorRange
Deprecated.TheC.ColorRange
of the video orFormat.NO_VALUE
if unknown or not applicable.@com.google.android.exoplayer2.C.ColorSpace int
colorSpace
Deprecated.TheC.ColorSpace
of the video orFormat.NO_VALUE
if unknown or not applicable.@com.google.android.exoplayer2.C.ColorTransfer int
colorTransfer
Deprecated.TheC.ColorTransfer
of the video orFormat.NO_VALUE
if unknown or not applicable.int
height
Deprecated.The height of each decoded frame, orFormat.NO_VALUE
if unknown.List<byte[]>
initializationData
Deprecated.List of buffers containing the codec-specific data to be provided to the decoder.int
nalUnitLengthFieldLength
Deprecated.The length of the NAL unit length field in the bitstream's container, in bytes.float
pixelWidthHeightRatio
Deprecated.The pixel width to height ratio.int
width
Deprecated.The width of each decoded frame, orFormat.NO_VALUE
if unknown.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HevcConfig
parse(ParsableByteArray data)
Deprecated.Parses HEVC configuration data.
-
-
-
Field Detail
-
initializationData
public final List<byte[]> initializationData
Deprecated.List of buffers containing the codec-specific data to be provided to the decoder.
-
nalUnitLengthFieldLength
public final int nalUnitLengthFieldLength
Deprecated.The length of the NAL unit length field in the bitstream's container, in bytes.
-
width
public final int width
Deprecated.The width of each decoded frame, orFormat.NO_VALUE
if unknown.
-
height
public final int height
Deprecated.The height of each decoded frame, orFormat.NO_VALUE
if unknown.
-
colorSpace
public final @com.google.android.exoplayer2.C.ColorSpace int colorSpace
Deprecated.TheC.ColorSpace
of the video orFormat.NO_VALUE
if unknown or not applicable.
-
colorRange
public final @com.google.android.exoplayer2.C.ColorRange int colorRange
Deprecated.TheC.ColorRange
of the video orFormat.NO_VALUE
if unknown or not applicable.
-
colorTransfer
public final @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer
Deprecated.TheC.ColorTransfer
of the video orFormat.NO_VALUE
if unknown or not applicable.
-
pixelWidthHeightRatio
public final float pixelWidthHeightRatio
Deprecated.The pixel width to height ratio.
-
codecs
@Nullable public final String codecs
Deprecated.An RFC 6381 codecs string representing the video format, ornull
if not known.See
Format.codecs
.
-
-
Method Detail
-
parse
public static HevcConfig parse(ParsableByteArray data) throws ParserException
Deprecated.Parses HEVC configuration data.- Parameters:
data
- AParsableByteArray
, whose position is set to the start of the HEVC configuration data to parse.- Returns:
- A parsed representation of the HEVC configuration data.
- Throws:
ParserException
- If an error occurred parsing the data.
-
-