Class PictureFrame
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.flac.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description intcolorsDeprecated.For indexed-color pictures (e.g.static Parcelable.Creator<PictureFrame>CREATORDeprecated.intdepthDeprecated.The color depth of the picture in bits-per-pixel.StringdescriptionDeprecated.A description of the picture.intheightDeprecated.The height of the picture in pixels.StringmimeTypeDeprecated.The MIME type of the picture.byte[]pictureDataDeprecated.The encoded picture data.intpictureTypeDeprecated.The type of the picture.intwidthDeprecated.The width of the picture in pixels.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description PictureFrame(int pictureType, String mimeType, String description, int width, int height, int depth, int colors, byte[] pictureData)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdescribeContents()Deprecated.booleanequals(Object obj)Deprecated.static PictureFramefromPictureBlock(ParsableByteArray pictureBlock)Deprecated.Parses aMETADATA_BLOCK_PICTUREinto aPictureFrameinstance.inthashCode()Deprecated.voidpopulateMediaMetadata(MediaMetadata.Builder builder)Deprecated.Updates theMediaMetadata.Builderwith the type-specific values stored in thisEntry.StringtoString()Deprecated.voidwriteToParcel(Parcel dest, int flags)Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.android.exoplayer2.metadata.Metadata.Entry
getWrappedMetadataBytes, getWrappedMetadataFormat
-
-
-
-
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.
-
CREATOR
public static final Parcelable.Creator<PictureFrame> CREATOR
Deprecated.
-
-
Method Detail
-
populateMediaMetadata
public void populateMediaMetadata(MediaMetadata.Builder builder)
Deprecated.Description copied from interface:Metadata.EntryUpdates theMediaMetadata.Builderwith the type-specific values stored in thisEntry.- Specified by:
populateMediaMetadatain interfaceMetadata.Entry- Parameters:
builder- The builder to be updated.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Deprecated.- Specified by:
writeToParcelin interfaceParcelable
-
describeContents
public int describeContents()
Deprecated.- Specified by:
describeContentsin interfaceParcelable
-
fromPictureBlock
public static PictureFrame fromPictureBlock(ParsableByteArray pictureBlock)
Deprecated.Parses aMETADATA_BLOCK_PICTUREinto aPictureFrameinstance.pictureBlockmay be read directly from a FLAC file, or decoded from the base64 content of a Vorbis Comment.- Parameters:
pictureBlock- The data of theMETADATA_BLOCK_PICTURE, not including any headers.- Returns:
- A
PictureFrameparsed frompictureBlock.
-
-