Class PictureFrame

  • All Implemented Interfaces:
    Parcelable, Metadata.Entry

    @Deprecated
    public final class PictureFrame
    extends Object
    implements Metadata.Entry
    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.
    A picture parsed from a Vorbis Comment or a FLAC picture block.
    • Field Detail

      • pictureType

        public final int pictureType
        Deprecated.
        The type of the picture.
      • mimeType

        public final String mimeType
        Deprecated.
        The MIME type of the picture.
      • description

        public final String description
        Deprecated.
        A description of the picture.
      • width

        public final int width
        Deprecated.
        The width of the picture in pixels.
      • height

        public final int height
        Deprecated.
        The height of the picture in pixels.
      • depth

        public final int depth
        Deprecated.
        The color depth of the picture in bits-per-pixel.
      • colors

        public final int colors
        Deprecated.
        For indexed-color pictures (e.g. GIF), the number of colors used. 0 otherwise.
      • pictureData

        public final byte[] pictureData
        Deprecated.
        The encoded picture data.
    • Constructor Detail

      • PictureFrame

        public PictureFrame​(int pictureType,
                            String mimeType,
                            String description,
                            int width,
                            int height,
                            int depth,
                            int colors,
                            byte[] pictureData)
        Deprecated.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • fromPictureBlock

        public static PictureFrame fromPictureBlock​(ParsableByteArray pictureBlock)
        Deprecated.
        Parses a METADATA_BLOCK_PICTURE into a PictureFrame instance.

        pictureBlock may be read directly from a FLAC file, or decoded from the base64 content of a Vorbis Comment.

        Parameters:
        pictureBlock - The data of the METADATA_BLOCK_PICTURE, not including any headers.
        Returns:
        A PictureFrame parsed from pictureBlock.