docs/doc/reference/com/google/android/exoplayer2/video/AvcConfig.html
Package com.google.android.exoplayer2.video
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classAvcConfigextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
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.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| String | codecs |
Deprecated.
An RFC 6381 codecs string representing the video format, or null if not known.
|
| @com.google.android.exoplayer2.C.ColorRange int | colorRange |
Deprecated.
The C.ColorRange of the video, or Format.NO_VALUE if unknown or not applicable.
|
| @com.google.android.exoplayer2.C.ColorSpace int | colorSpace |
Deprecated.
The C.ColorSpace of the video, or Format.NO_VALUE if unknown or not applicable.
|
| @com.google.android.exoplayer2.C.ColorTransfer int | colorTransfer |
Deprecated.
The C.ColorTransfer of the video, or Format.NO_VALUE if unknown or not applicable.
|
| int | height |
Deprecated.
The height of each decoded frame, or Format.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, or Format.NO_VALUE if unknown.
|
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static AvcConfig | parse(ParsableByteArray data) |
Deprecated.
Parses AVC configuration data. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<byte[]> initializationData
Deprecated.
List of buffers containing the codec-specific data to be provided to the decoder.
See Format.initializationData.
-
public final int nalUnitLengthFieldLength
Deprecated.
The length of the NAL unit length field in the bitstream's container, in bytes.
-
public final int width
Deprecated.
The width of each decoded frame, or Format.NO_VALUE if unknown.
-
public final int height
Deprecated.
The height of each decoded frame, or Format.NO_VALUE if unknown.
-
public final @com.google.android.exoplayer2.C.ColorSpace int colorSpace
Deprecated.
The C.ColorSpace of the video, or Format.NO_VALUE if unknown or not applicable.
-
public final @com.google.android.exoplayer2.C.ColorRange int colorRange
Deprecated.
The C.ColorRange of the video, or Format.NO_VALUE if unknown or not applicable.
-
public final @com.google.android.exoplayer2.C.ColorTransfer int colorTransfer
Deprecated.
The C.ColorTransfer of the video, or Format.NO_VALUE if unknown or not applicable.
-
public final float pixelWidthHeightRatio
Deprecated.
The pixel width to height ratio.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")codecs
Deprecated.
An RFC 6381 codecs string representing the video format, or null if not known.
See Format.codecs.
-
public static[AvcConfig](AvcConfig.html "class in com.google.android.exoplayer2.video")parse([ParsableByteArray](../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")data)
throws[ParserException](../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Parses AVC configuration data.
Parameters:data - A ParsableByteArray, 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.