Class 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 Detail

      • initializationData

        public final List<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 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 parse​(ParsableByteArray data)
                               throws ParserException
        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.