Back to Exoplayer

AvcConfig (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/video/AvcConfig.html

latest5.9 KB
Original Source

Package com.google.android.exoplayer2.video

Class AvcConfig


[@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.

Field Summary

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. |

Method Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static AvcConfig | parse​(ParsableByteArray data) | Deprecated.

Parses AVC configuration data. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

initializationData

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.

- 

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, or Format.NO_VALUE if unknown.

- 

height

public final int height

Deprecated.

The height of each decoded frame, or Format.NO_VALUE if unknown.

- 

colorSpace

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.

- 

colorRange

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.

- 

colorTransfer

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.

- 

pixelWidthHeightRatio

public final float pixelWidthHeightRatio

Deprecated.

The pixel width to height ratio.

- 

codecs

@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.

Method Detail

- 

parse

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.