docs/doc/reference/com/google/android/exoplayer2/metadata/flac/PictureFrame.html
Package com.google.android.exoplayer2.metadata.flac
All Implemented Interfaces:Parcelable, Metadata.Entry
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classPictureFrameextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Metadata.Entry](../Metadata.Entry.html "interface in com.google.android.exoplayer2.metadata")
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.
-
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | colors |
Deprecated.
For indexed-color pictures (e.g.
|
| static Parcelable.Creator<PictureFrame> | CREATOR |
Deprecated.
|
| int | depth |
Deprecated.
The color depth of the picture in bits-per-pixel.
|
| String | description |
Deprecated.
A description of the picture.
|
| int | height |
Deprecated.
The height of the picture in pixels.
|
| String | mimeType |
Deprecated.
The MIME type of the picture.
|
| byte[] | pictureData |
Deprecated.
The encoded picture data.
|
| int | pictureType |
Deprecated.
The type of the picture.
|
| int | width |
Deprecated.
The width of the picture in pixels. |
-
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructors | Constructor | Description |
| --- | --- |
| PictureFrame(int pictureType, String mimeType, String description, int width, int height, int depth, int colors, byte[] pictureData) |
Deprecated.
|
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | describeContents() |
Deprecated.
|
| boolean | equals(Object obj) |
Deprecated.
|
| static PictureFrame | fromPictureBlock(ParsableByteArray pictureBlock) |
Deprecated.
Parses a METADATA_BLOCK_PICTURE into a PictureFrame instance.
|
| int | hashCode() |
Deprecated.
|
| void | populateMediaMetadata(MediaMetadata.Builder builder) |
Deprecated.
Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.
|
| String | toString() |
Deprecated.
|
| void | writeToParcel(Parcel dest, int flags) |
Deprecated.
|
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
getWrappedMetadataBytes, getWrappedMetadataFormat
-
public final int pictureType
Deprecated.
The type of the picture.
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")mimeType
Deprecated.
The MIME type of the picture.
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")description
Deprecated.
A description of the picture.
-
public final int width
Deprecated.
The width of the picture in pixels.
-
public final int height
Deprecated.
The height of the picture in pixels.
-
public final int depth
Deprecated.
The color depth of the picture in bits-per-pixel.
-
public final int colors
Deprecated.
For indexed-color pictures (e.g. GIF), the number of colors used. 0 otherwise.
-
public final byte[] pictureData
Deprecated.
The encoded picture data.
-
public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[PictureFrame](PictureFrame.html "class in com.google.android.exoplayer2.metadata.flac")> CREATOR
Deprecated.
-
public PictureFrame(int pictureType,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")mimeType,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")description,
int width,
int height,
int depth,
int colors,
byte[] pictureData)
Deprecated.
-
public void populateMediaMetadata([MediaMetadata.Builder](../../MediaMetadata.Builder.html "class in com.google.android.exoplayer2")builder)
Deprecated.
Description copied from interface: Metadata.Entry
Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.
Specified by:populateMediaMetadata in interface Metadata.EntryParameters:builder - The builder to be updated.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()
Deprecated.
Overrides:toString in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public void writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
int flags)
Deprecated.
Specified by:writeToParcel in interface Parcelable
-
public int describeContents()
Deprecated.
Specified by:describeContents in interface Parcelable
-
public static[PictureFrame](PictureFrame.html "class in com.google.android.exoplayer2.metadata.flac")fromPictureBlock([ParsableByteArray](../../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")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.