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