Class AvcConfig
- java.lang.Object
-
- com.google.android.exoplayer2.video.AvcConfig
-
public final class AvcConfig extends Object
AVC configuration data.
-
-
Field Summary
Fields Modifier and Type Field Description String
codecs
An RFC 6381 codecs string representing the video format, ornull
if not known.int
height
The height of each decoded frame, orFormat.NO_VALUE
if unknown.List<byte[]>
initializationData
List of buffers containing the codec-specific data to be provided to the decoder.int
nalUnitLengthFieldLength
The length of the NAL unit length field in the bitstream's container, in bytes.float
pixelWidthHeightRatio
The pixel width to height ratio.int
width
The width of each decoded frame, orFormat.NO_VALUE
if unknown.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AvcConfig
parse(ParsableByteArray data)
Parses AVC configuration data.
-
-
-
Field Detail
-
initializationData
public final List<byte[]> initializationData
List of buffers containing the codec-specific data to be provided to the decoder.
-
nalUnitLengthFieldLength
public final int nalUnitLengthFieldLength
The length of the NAL unit length field in the bitstream's container, in bytes.
-
width
public final int width
The width of each decoded frame, orFormat.NO_VALUE
if unknown.
-
height
public final int height
The height of each decoded frame, orFormat.NO_VALUE
if unknown.
-
pixelWidthHeightRatio
public final float pixelWidthHeightRatio
The pixel width to height ratio.
-
codecs
@Nullable public final String codecs
An RFC 6381 codecs string representing the video format, ornull
if not known.See
Format.codecs
.
-
-
Method Detail
-
parse
public static AvcConfig parse(ParsableByteArray data) throws ParserException
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.
-
-